CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxBIMEntityReference.h
Go to the documentation of this file.
1//
2// (C) Copyright 2020-2023 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "FxBIM.h"
20
21#include <DbEntity.h>
22
25
26class OdDbDwgFiler;
27
29{
30public:
32
34
35 virtual const OdGeMatrix3d& Transform() const;
36 virtual void SetTransform( const OdGeMatrix3d& transform );
37
38 virtual OdDbObjectId DatabaseReference() const; //CFxBIMDatabaseReference
39 virtual OdDbObjectId Entity() const; //CFxBIMEntity
40
42
43 virtual void SetTempFiltered( bool bValue );
44 virtual bool IsTempFiltered() const;
45
46 // Without filter
47 virtual void SetTempPureVisible( OdDb::Visibility eValue );
49
50 virtual void AddSectionId( const OdDbObjectId& id );
51 virtual void RemoveSectionId( const OdDbObjectId& id );
53
54 virtual bool IsVisibleToSections() const;
55 virtual void SetVisibleToSections( const bool bVisible );
56
57public:
58 OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
59 void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
60
61 OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
62 void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
63
64 OdUInt32 subSetAttributes( OdGiDrawableTraits* traits ) const override;
65 bool subWorldDraw( OdGiWorldDraw* wd ) const override;
66 void subViewportDraw( OdGiViewportDraw* vd ) const override;
67
68 void subGripStatus( const OdDb::GripStat status ) override;
69
71 OdDb::OsnapMode osnapMode,
72 OdGsMarker gsSelectionMark,
73 const OdGePoint3d& pickPoint,
74 const OdGePoint3d& lastPoint,
75 const OdGeMatrix3d& xWorldToEye,
76 OdGePoint3dArray& snapPoints ) const override;
77
79 OdDb::OsnapMode osnapMode,
80 OdGsMarker gsSelectionMark,
81 const OdGePoint3d& pickPoint,
82 const OdGePoint3d& lastPoint,
83 const OdGeMatrix3d& xWorldToEye,
84 OdGePoint3dArray& snapPoints,
85 const OdGeMatrix3d& insertionMat ) const override;
86
87 bool subIsContentSnappable() const override;
88
89 OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const override;
90 OdResult subMoveGripPointsAt( const OdIntArray& indices, const OdGeVector3d& offset ) override;
93 const double curViewUnitSize,
94 const int gripSize,
95 const OdGeVector3d& curViewDir,
96 const int bitFlags ) const override;
98 const OdDbVoidPtrArray& grips,
99 const OdGeVector3d& offset,
100 int bitFlags ) override;
101 OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const override;
103 const OdIntArray& indices,
104 const OdGeVector3d& offset ) override;
105
106 OdResult subExplode( OdRxObjectPtrArray& entitySet ) const override;
107
108 OdResult subErase( bool erasing ) override;
109 OdDbObjectPtr subWblockClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
110 OdDbObjectPtr subDeepClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
111
112 OdResult subTransformBy( const OdGeMatrix3d& xfm ) override;
113 OdResult subGetTransformedCopy( const OdGeMatrix3d& xfm, OdDbEntityPtr& pCopy ) const override;
114
115 OdResult subGetGeomExtents( OdGeExtents3d& extents ) const override;
116
117 void applyPartialUndo( OdDbDwgFiler* pFiler, OdRxClass* pClass ) override;
118
120
121protected:
123};
#define FXBIM_API
Definition: FxBIM.h:20
OdSmartPtr< CFxBIMEntityReference > CFxBIMEntityReferencePtr
ptrdiff_t OdGsMarker
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
OdResult subGetStretchPoints(OdGePoint3dArray &stretchPoints) const override
void subGripStatus(const OdDb::GripStat status) override
virtual const OdGeMatrix3d & Transform() const
OdResult dxfInFields(OdDbDxfFiler *pFiler) override
OdResult subGetTransformedCopy(const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const override
OdResult dwgInFields(OdDbDwgFiler *pFiler) override
OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
virtual void SetTransform(const OdGeMatrix3d &transform)
virtual OdDbObjectId Entity() const
void dwgOutFields(OdDbDwgFiler *pFiler) const override
OdResult subGetGripPoints(OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const override
virtual void SetVisibleToSections(const bool bVisible)
OdResult subGetCompoundObjectTransform(OdGeMatrix3d &xM) const override
OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const override
ODDB_DECLARE_MEMBERS(CFxBIMEntityReference)
void subViewportDraw(OdGiViewportDraw *vd) const override
virtual OdDb::Visibility IsTempPureVisible() const
OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const override
void dxfOutFields(OdDbDxfFiler *pFiler) const override
OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const override
OdResult subMoveGripPointsAt(const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) override
virtual void AddSectionId(const OdDbObjectId &id)
virtual bool IsTempFiltered() const
virtual bool IsVisibleToSections() const
bool subIsContentSnappable() const override
OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
OdResult subExplode(OdRxObjectPtrArray &entitySet) const override
virtual void SetTempFiltered(bool bValue)
virtual void SetTempPureVisible(OdDb::Visibility eValue)
OdResult subErase(bool erasing) override
OdDbObjectPtr subWblockClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
OdResult subTransformBy(const OdGeMatrix3d &xfm) override
OdResult subGetGeomExtents(OdGeExtents3d &extents) const override
OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
bool subWorldDraw(OdGiWorldDraw *wd) const override
void applyPartialUndo(OdDbDwgFiler *pFiler, OdRxClass *pClass) override
virtual void InvalidateHashedSections()
virtual OdDbObjectId DatabaseReference() const
virtual void RemoveSectionId(const OdDbObjectId &id)
OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const override
virtual ~CFxBIMEntityReference()
GLintptr offset
Definition: gles2_ext.h:183
GripStat
Definition: DbGrip.h:112
OsnapMode
Definition: OdaDefs.h:489
Visibility
Definition: DbObject.h:146