CFx SDK Documentation  2020SP3
FxBIMEntityReference.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "FxBIM.h"
4 
5 #include <DbEntity.h>
6 
9 
10 class OdDbDwgFiler;
11 
13 {
14 public:
16 
18 
19  virtual const OdGeMatrix3d& Transform() const;
20  virtual void SetTransform( const OdGeMatrix3d& transform );
21 
22  virtual OdDbObjectId DatabaseReference() const; //CFxBIMDatabaseReference
23  virtual OdDbObjectId Entity() const; //CFxBIMEntity
24 
25 public:
26  OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
27  void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
28 
29  OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
30  void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
31 
32  OdUInt32 subSetAttributes( OdGiDrawableTraits* traits ) const override;
33  bool subWorldDraw( OdGiWorldDraw* wd ) const override;
34  void subViewportDraw( OdGiViewportDraw* vd ) const override;
35 
36  void subGripStatus( const OdDb::GripStat status ) override;
37 
39  OdDb::OsnapMode osnapMode,
40  OdGsMarker gsSelectionMark,
41  const OdGePoint3d& pickPoint,
42  const OdGePoint3d& lastPoint,
43  const OdGeMatrix3d& xWorldToEye,
44  OdGePoint3dArray& snapPoints ) const override;
45 
47  OdDb::OsnapMode osnapMode,
48  OdGsMarker gsSelectionMark,
49  const OdGePoint3d& pickPoint,
50  const OdGePoint3d& lastPoint,
51  const OdGeMatrix3d& xWorldToEye,
52  OdGePoint3dArray& snapPoints,
53  const OdGeMatrix3d& insertionMat ) const override;
54 
55  bool subIsContentSnappable() const override;
56 
57  OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const override;
58  OdResult subMoveGripPointsAt( const OdIntArray& indices, const OdGeVector3d& offset ) override;
60  OdDbGripDataPtrArray& grips,
61  const double curViewUnitSize,
62  const int gripSize,
63  const OdGeVector3d& curViewDir,
64  const int bitFlags ) const override;
66  const OdDbVoidPtrArray& grips,
67  const OdGeVector3d& offset,
68  int bitFlags ) override;
69  OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const override;
71  const OdIntArray& indices,
72  const OdGeVector3d& offset ) override;
73 
74  OdResult subErase( bool erasing ) override;
75  OdDbObjectPtr subWblockClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
76  OdDbObjectPtr subDeepClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
77 
78  OdResult subTransformBy( const OdGeMatrix3d& xfm ) override;
79  OdResult subGetTransformedCopy( const OdGeMatrix3d& xfm, OdDbEntityPtr& pCopy ) const override;
80 
81  OdResult subGetGeomExtents( OdGeExtents3d& extents ) const override;
82 
83 protected:
85 };
OdResult
OdResult
Definition: OdResult.h:29
CFxBIMEntityReference::Transform
virtual const OdGeMatrix3d & Transform() const
OdGeVector3d
Definition: GeVector3d.h:54
CFxBIMEntityReference::subGetGripPoints
OdResult subGetGripPoints(OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const override
CFxBIMEntityReference::CFxBIMEntityReference
CFxBIMEntityReference()
CFxBIMEntityReference::subGetOsnapPoints
OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const override
CFxBIMEntityReference::subMoveGripPointsAt
OdResult subMoveGripPointsAt(const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) override
OdDbObjectId
Definition: DbObjectId.h:99
CFxBIMEntityReference::Entity
virtual OdDbObjectId Entity() const
CFxBIMEntityReference::subGetGeomExtents
OdResult subGetGeomExtents(OdGeExtents3d &extents) const override
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > >
CFxBIMEntityReference::subWblockClone
OdDbObjectPtr subWblockClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
CFxBIMEntityReference::dxfOutFields
void dxfOutFields(OdDbDxfFiler *pFiler) const override
OdGsMarker
ptrdiff_t OdGsMarker
Definition: OdPlatformSettings.h:889
CFxBIMEntityReference::subTransformBy
OdResult subTransformBy(const OdGeMatrix3d &xfm) override
FXBIM_API
#define FXBIM_API
Definition: FxBIM.h:4
CFxBIMEntityReference
Definition: FxBIMEntityReference.h:13
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
CFxBIMEntityReference::DatabaseReference
virtual OdDbObjectId DatabaseReference() const
CFxBIMEntityReference::subDeepClone
OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
CFxBIMEntityReference::subGetGripPoints
OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const override
CFxBIMEntityReference::subIsContentSnappable
bool subIsContentSnappable() const override
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
offset
GLintptr offset
Definition: gles2_ext.h:183
CFxBIMEntityReference::subMoveGripPointsAt
OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
CFxBIMEntityReference::dwgInFields
OdResult dwgInFields(OdDbDwgFiler *pFiler) override
OdDb::GripStat
GripStat
Definition: DbGrip.h:80
OdDb::OsnapMode
OsnapMode
Definition: OdaDefs.h:478
CFxBIMEntityReference::subGetStretchPoints
OdResult subGetStretchPoints(OdGePoint3dArray &stretchPoints) const override
CFxBIMEntityReference::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(CFxBIMEntityReference)
OdDbDxfFiler
Definition: DbFiler.h:194
CFxBIMEntityReference::subSetAttributes
OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const override
CFxBIMEntityReference::subGetOsnapPoints
OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const override
OdGiWorldDraw
Definition: GiWorldDraw.h:44
CFxBIMEntityReference::~CFxBIMEntityReference
virtual ~CFxBIMEntityReference()
OdDbEntity
Definition: DbEntity.h:90
CFxBIMEntityReference::SetTransform
virtual void SetTransform(const OdGeMatrix3d &transform)
OdGiDrawableTraits
Definition: Gi.h:71
FxBIM.h
CFxBIMEntityReferencePtr
OdSmartPtr< CFxBIMEntityReference > CFxBIMEntityReferencePtr
Definition: FxBIMEntityReference.h:7
CFxBIMEntityReference::subWorldDraw
bool subWorldDraw(OdGiWorldDraw *wd) const override
CFxBIMEntityReference::subErase
OdResult subErase(bool erasing) override
OdGeExtents3d
Definition: GeExtents3d.h:45
CFxBIMEntityReference::subViewportDraw
void subViewportDraw(OdGiViewportDraw *vd) const override
CFxBIMEntityReference::subGripStatus
void subGripStatus(const OdDb::GripStat status) override
CFxBIMEntityReference::dxfInFields
OdResult dxfInFields(OdDbDxfFiler *pFiler) override
CFxBIMEntityReference::subMoveStretchPointsAt
OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
CFxBIMEntityReference::dwgOutFields
void dwgOutFields(OdDbDwgFiler *pFiler) const override
CFxBIMEntityReference::subGetTransformedCopy
OdResult subGetTransformedCopy(const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const override
OdDbIdMapping
Definition: DbIdMapping.h:238
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdGiViewportDraw
Definition: GiViewportDraw.h:50