CFx SDK Documentation  2020SP3
DbCamera.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef __OD_DB_CAMERA__
25 #define __OD_DB_CAMERA__
26 
27 #include "DbEntity.h"
28 
29 #include "TD_PackPush.h"
30 
33 
39 {
40 public:
42 
44 
45  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
46  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
47  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
48  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
49 
50  virtual OdResult subErase(bool erasing);
51  virtual void subClose();
52 
53  OdDbObjectId view() const;
54  void setView(const OdDbObjectId &viewId);
55 
56  // Some helpful methods for NDBRO editing (required for grip points implementation for example)
57  // For internal use
59  // For internal use
60  void updateView();
61 
62 protected:
63 
64  virtual OdResult subTransformBy(const OdGeMatrix3d& xfm);
65 
66  virtual OdUInt32 subSetAttributes(OdGiDrawableTraits* pTraits) const;
67  virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
68  virtual void subViewportDraw(OdGiViewportDraw* pVd) const;
69 
70  virtual OdResult subGetClassID(void* pClsid) const;
71 
72  virtual OdResult subGetGeomExtents(OdGeExtents3d& extents) const;
73 
74  virtual OdDbObjectPtr subDeepClone(OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
75  virtual OdDbObjectPtr subWblockClone(OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
76 
77  virtual void subHighlight(bool bDoIt = true, const OdDbFullSubentPath* pSubId = 0, bool highlightAll = false) const;
78 };
79 
81 
82 #include "TD_PackPop.h"
83 
84 #endif // __OD_DB_CAMERA__
OdResult
OdResult
Definition: OdResult.h:29
OdDbCamera::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbObjectId
Definition: DbObjectId.h:99
OdDbCameraPtr
OdSmartPtr< OdDbCamera > OdDbCameraPtr
Definition: DbCamera.h:80
OdDbViewTableRecord
Definition: DbViewTableRecord.h:43
OdDbFullSubentPath
Definition: DbSubentId.h:49
OdDbCamera::subWblockClone
virtual OdDbObjectPtr subWblockClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
OdDbCamera::subDeepClone
virtual OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
TD_PackPop.h
OdDbViewTableRecordPtr
OdSmartPtr< OdDbViewTableRecord > OdDbViewTableRecordPtr
Definition: DbCamera.h:31
OdDbCamera::subClose
virtual void subClose()
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbCamera
Definition: DbCamera.h:39
OdDb::kForRead
@ kForRead
Definition: DbObjectId.h:56
OdDbCamera::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbCamera::subGetGeomExtents
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
OdDbCamera::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbCamera::subErase
virtual OdResult subErase(bool erasing)
OdSmartPtr
Definition: SmartPtr.h:58
DbEntity.h
OdDbCamera::OdDbCamera
OdDbCamera()
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbCamera::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
TD_PackPush.h
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbEntity
Definition: DbEntity.h:90
OdDb::OpenMode
OpenMode
Definition: DbObjectId.h:54
OdDbCamera::subHighlight
virtual void subHighlight(bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const
OdGiDrawableTraits
Definition: Gi.h:71
OdDbCamera::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdGeExtents3d
Definition: GeExtents3d.h:45
OdDbCamera::view
OdDbObjectId view() const
OdDbCamera::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbCamera)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbCamera::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdDbCamera::setView
void setView(const OdDbObjectId &viewId)
OdDbCamera::updateView
void updateView()
OdDbCamera::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbCamera::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdDbCamera::openView
OdDbViewTableRecordPtr openView(OdDb::OpenMode openMode=OdDb::kForRead) const
OdDbIdMapping
Definition: DbIdMapping.h:238
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdGiViewportDraw
Definition: GiViewportDraw.h:50
OdDbCamera::subViewportDraw
virtual void subViewportDraw(OdGiViewportDraw *pVd) const