CFx SDK Documentation  2020SP3
FxBIMDatabaseReference.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "FxBIM.h"
4 
5 #include <DbObject.h>
6 
9 
10 class CFxBIMDatabase;
12 
14 class OdDbDwgFiler;
15 
17 {
18 public:
20 
22 
23  virtual const OdString& BimFileName() const;
24  virtual const OdString& BimViewName() const;
26 
27  virtual Error CreateEntityRefs( OdDbObjectId idOwner, const OdGeMatrix3d& trf );
29 
30  virtual Error Load();
31  virtual Error Unload();
32 
33  virtual bool IsUnloaded();
34 
35  virtual const OdGeMatrix3d& Transform() const;
36  virtual void SetTransform( const OdGeMatrix3d& transform );
37 
38  virtual size_t EntityRefCount() const;
39  virtual OdDbObjectId EntityRef( size_t index ) const; //CFxBIMEntityReference
40 
41  virtual bool IsLocked() const;
42  virtual Error Lock();
43  virtual Error Unlock();
44 
45  virtual bool IsOn() const;
46  virtual Error On();
47  virtual Error Off();
48 
49  virtual Error Insert();
50 
51  virtual Error Remove();
53 
54 public:
55  OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
56  void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
57 
58  OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
59  void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
60 
61  void subClose() override;
62 
63  void applyPartialUndo( OdDbDwgFiler* pFiler, OdRxClass* pClass ) override;
64 
65  void subHandOverTo( OdDbObject* pNewObject ) override;
66 
67 protected:
69 };
OdResult
OdResult
Definition: OdResult.h:29
OdString
Definition: OdString.h:95
Error
Error
Definition: FxBIM.h:18
CFxBIMDatabaseReference::Load
virtual Error Load()
DbObject.h
OdDbObjectId
Definition: DbObjectId.h:99
CFxBIMDatabaseReference::Insert
virtual Error Insert()
CFxBIMDatabaseReference::applyPartialUndo
void applyPartialUndo(OdDbDwgFiler *pFiler, OdRxClass *pClass) override
CFxBIMDatabaseReference::On
virtual Error On()
CFxBIMDatabaseReference::dxfOutFields
void dxfOutFields(OdDbDxfFiler *pFiler) const override
CFxBIMDatabaseReference::EntityRefCount
virtual size_t EntityRefCount() const
CFxBIMDatabaseReference::CFxBIMDatabaseReference
CFxBIMDatabaseReference()
CFxBIMDatabaseReference::Off
virtual Error Off()
FXBIM_API
#define FXBIM_API
Definition: FxBIM.h:4
CFxBIMDatabaseReference::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(CFxBIMDatabaseReference)
OdGeMatrix3d
Definition: GeMatrix3d.h:73
CFxBIMDatabaseReference::ReloadFrom
virtual Error ReloadFrom(CFxBIMDatabaseReferencePtr pNew, OdDbObjectId idOwner, const OdGeMatrix3d &trf)
index
GLuint index
Definition: gles2_ext.h:265
CFxBIMDatabase
Definition: FxBIMDatabase.h:40
CFxBIMDatabaseReference::Lock
virtual Error Lock()
CFxBIMDatabaseReference::Transform
virtual const OdGeMatrix3d & Transform() const
CFxBIMDatabaseReference::DestroyEntityRefs
virtual Error DestroyEntityRefs()
CFxBIMDatabaseReference::dwgOutFields
void dwgOutFields(OdDbDwgFiler *pFiler) const override
OdRxClass
Definition: RxObject.h:865
OdSmartPtr
Definition: SmartPtr.h:58
CFxBIMDatabaseReference::Unlock
virtual Error Unlock()
CFxBIMDatabaseReference::dwgInFields
OdResult dwgInFields(OdDbDwgFiler *pFiler) override
OdDbDxfFiler
Definition: DbFiler.h:194
CFxBIMDatabaseReference::BimDatabase
virtual CFxBIMDatabasePtr BimDatabase(OdDb::OpenMode openMode)
OdDbHostAppServices
Definition: DbHostAppServices.h:65
CFxBIMDatabaseReference::dxfInFields
OdResult dxfInFields(OdDbDxfFiler *pFiler) override
CFxBIMDatabaseReference::IsOn
virtual bool IsOn() const
CFxBIMDatabaseReference
Definition: FxBIMDatabaseReference.h:17
CFxBIMDatabaseReference::subHandOverTo
void subHandOverTo(OdDbObject *pNewObject) override
OdDb::OpenMode
OpenMode
Definition: DbObjectId.h:54
CFxBIMDatabaseReference::IsUnloaded
virtual bool IsUnloaded()
FxBIM.h
CFxBIMDatabaseReference::SetTransform
virtual void SetTransform(const OdGeMatrix3d &transform)
CFxBIMDatabaseReference::Unload
virtual Error Unload()
CFxBIMDatabaseReference::BimViewName
virtual const OdString & BimViewName() const
CFxBIMDatabaseReferencePtr
OdSmartPtr< CFxBIMDatabaseReference > CFxBIMDatabaseReferencePtr
Definition: FxBIMDatabaseReference.h:7
CFxBIMDatabaseReference::Remove
virtual Error Remove()
CFxBIMDatabaseReference::BimFileName
virtual const OdString & BimFileName() const
CFxBIMDatabaseReference::~CFxBIMDatabaseReference
virtual ~CFxBIMDatabaseReference()
CFxBIMDatabaseReference::IsLocked
virtual bool IsLocked() const
CFxBIMDatabasePtr
OdSmartPtr< CFxBIMDatabase > CFxBIMDatabasePtr
Definition: FxBIMDatabaseReference.h:10
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
CFxBIMDatabaseReference::subClose
void subClose() override
CFxBIMDatabaseReference::CreateEntityRefs
virtual Error CreateEntityRefs(OdDbObjectId idOwner, const OdGeMatrix3d &trf)
CFxBIMDatabaseReference::EntityRef
virtual OdDbObjectId EntityRef(size_t index) const