CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbCamera.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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#undef DBCAMERA_EXPORT
28#ifdef DBCAMERA_EXPORTS
29# define DBCAMERA_EXPORT OD_TOOLKIT_EXPORT
30#else
31# define DBCAMERA_EXPORT OD_TOOLKIT_IMPORT
32#endif
33
34#include "DbEntity.h"
35#include "DynamicLinker.h"
36
37#include "TD_PackPush.h"
38
44
51{
52public:
54
56
58 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
60 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
61
62 virtual OdResult subErase(bool erasing);
63 virtual void subClose();
64
66 void setView(const OdDbObjectId &viewId);
67
68 // Some helpful methods for NDBRO editing (required for grip points implementation for example)
69 // For internal use
71 // For internal use
72 void updateView();
73
74protected:
75
77
79 virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
80 virtual void subViewportDraw(OdGiViewportDraw* pVd) const;
81
82 virtual OdResult subGetClassID(void* pClsid) const;
83
84 virtual OdResult subGetGeomExtents(OdGeExtents3d& extents) const;
85
86 virtual OdDbObjectPtr subDeepClone(OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
87 virtual OdDbObjectPtr subWblockClone(OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
88
89 virtual void subHighlight(bool bDoIt = true, const OdDbFullSubentPath* pSubId = 0, bool highlightAll = false) const;
90};
91
93
97class CameraModule : public OdRxModule {
98protected:
99 virtual void initApp();
100 virtual void uninitApp();
101public:
104};
105
107
109 CameraModulePtr cammod(::odrxLoadApp("ACCAMERA"));
110 if(cammod.get())
111 cammod->UpdateViewTableRecordCamera(pVTR);
112
113}
114
116 CameraModulePtr cammod(::odrxLoadApp("ACCAMERA"));
117 if(cammod.get())
118 cammod->InitialUpdateViewTableRecordCameras(pDb);
119}
120
121#include "TD_PackPop.h"
122
123#endif // __OD_DB_CAMERA__
void oddbInitialUpdateViewTableRecordCameras(OdDbDatabase *pDb)
Definition: DbCamera.h:115
void oddbUpdateViewTableRecordCamera(OdDbViewTableRecord *pVTR)
Definition: DbCamera.h:108
OdSmartPtr< OdDbViewTableRecord > OdDbViewTableRecordPtr
Definition: DbCamera.h:43
OdSmartPtr< CameraModule > CameraModulePtr
Definition: DbCamera.h:106
#define DBCAMERA_EXPORT
Definition: DbCamera.h:31
OdSmartPtr< OdDbCamera > OdDbCameraPtr
Definition: DbCamera.h:92
OdRxModulePtr odrxLoadApp(const OdString &applicationName)
unsigned int OdUInt32
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual void uninitApp()
virtual void UpdateViewTableRecordCamera(OdDbViewTableRecord *pVTR)
virtual void InitialUpdateViewTableRecordCameras(OdDbDatabase *pDb)
virtual void initApp()
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()
const T * get() const
Definition: SmartPtr.h:339
OpenMode
Definition: DbObjectId.h:54
@ kForRead
Definition: DbObjectId.h:56