CFx SDK Documentation  2022 SP0
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__
OdSmartPtr< OdDbViewTableRecord > OdDbViewTableRecordPtr
Definition: DbCamera.h:31
OdSmartPtr< OdDbCamera > OdDbCameraPtr
Definition: DbCamera.h:80
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
unsigned int OdUInt32
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setView(const OdDbObjectId &viewId)
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
virtual OdDbObjectPtr subWblockClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdResult subGetClassID(void *pClsid) const
virtual void subClose()
OdDbViewTableRecordPtr openView(OdDb::OpenMode openMode=OdDb::kForRead) const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
virtual OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
ODDB_DECLARE_MEMBERS(OdDbCamera)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult subErase(bool erasing)
virtual void subHighlight(bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const
OdDbObjectId view() const
void updateView()
OpenMode
Definition: DbObjectId.h:54
@ kForRead
Definition: DbObjectId.h:56