CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxBIMSectionEntity.h
Go to the documentation of this file.
1//
2// (C) Copyright 2020-2025 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 CFxBIMDrawing;
27typedef std::shared_ptr< CFxBIMDrawing > CFxBIMDrawingPtr;
28
29class OdDbDwgFiler;
30
31class CFxBIMSectionEntityGeometry;
32typedef std::shared_ptr< CFxBIMSectionEntityGeometry > CFxBIMSectionEntityGeometryPtr;
33
35{
36public:
38
40
41 virtual const OdGeMatrix3d& OriginalTransform() const;
42 virtual const OdGeMatrix3d& Transform() const;
43 virtual void SetTransform( const OdGeMatrix3d& transform );
44
45 virtual OdDbHandle OriginalEntity() const; //CFxBIMEntityReference
47
49
50public:
51 OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
52 void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
53
54 OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
55 void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
56
57 OdUInt32 subSetAttributes( OdGiDrawableTraits* traits ) const override;
58 bool subWorldDraw( OdGiWorldDraw* wd ) const override;
59 void subViewportDraw( OdGiViewportDraw* vd ) const override;
60
61 OdResult getPlane( OdGePlane& plane, OdDb::Planarity& planarity ) const override;
62
63 OdResult subGetGeomExtents( OdGeExtents3d& extents ) const override;
64
65 void subGripStatus( const OdDb::GripStat status ) override;
66
68 OdDb::OsnapMode osnapMode,
69 OdGsMarker gsSelectionMark,
70 const OdGePoint3d& pickPoint,
71 const OdGePoint3d& lastPoint,
72 const OdGeMatrix3d& xWorldToEye,
73 OdGePoint3dArray& snapPoints ) const override;
74
76 OdDb::OsnapMode osnapMode,
77 OdGsMarker gsSelectionMark,
78 const OdGePoint3d& pickPoint,
79 const OdGePoint3d& lastPoint,
80 const OdGeMatrix3d& xWorldToEye,
81 OdGePoint3dArray& snapPoints,
82 const OdGeMatrix3d& insertionMat ) const override;
83
84 bool subIsContentSnappable() const override;
85
86 OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const override;
87 OdResult subMoveGripPointsAt( const OdIntArray& indices, const OdGeVector3d& offset ) override;
90 const double curViewUnitSize,
91 const int gripSize,
92 const OdGeVector3d& curViewDir,
93 const int bitFlags ) const override;
95 const OdDbVoidPtrArray& grips,
96 const OdGeVector3d& offset,
97 int bitFlags ) override;
98 OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const override;
100 const OdIntArray& indices,
101 const OdGeVector3d& offset ) override;
102
103 OdResult subTransformBy( const OdGeMatrix3d& xfm ) override;
104 OdResult subGetTransformedCopy( const OdGeMatrix3d& xfm, OdDbEntityPtr& pCopy ) const override;
105
106 OdResult subExplode( OdRxObjectPtrArray& entitySet ) const override;
107
108protected:
110 void modified( const OdDbObject* pObject ) override;
111};
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > > OdGePoint3dArray
OdSmartPtr< OdDbEntity > OdDbEntityPtr
Definition DbEntity.h:51
OdArray< void *, OdMemoryAllocator< void * > > OdDbVoidPtrArray
Definition DbGrip.h:55
OdArray< OdDbGripDataPtr > OdDbGripDataPtrArray
Definition DbGrip.h:49
#define FXBIM_API
Definition FxBIMDefs.h:4
std::shared_ptr< CFxBIMDrawing > CFxBIMDrawingPtr
std::shared_ptr< CFxBIMSectionEntityGeometry > CFxBIMSectionEntityGeometryPtr
OdSmartPtr< CFxBIMSectionEntity > CFxBIMSectionEntityPtr
OdArray< int, OdMemoryAllocator< int > > OdIntArray
Definition IntArray.h:35
ptrdiff_t OdGsMarker
unsigned int OdUInt32
OdResult
Definition OdResult.h:29
OdArray< OdRxObjectPtr > OdRxObjectPtrArray
Definition RxObject.h:1196
OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const override
OdResult subTransformBy(const OdGeMatrix3d &xfm) override
virtual void SetTransform(const OdGeMatrix3d &transform)
OdResult subGetTransformedCopy(const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const override
void subGripStatus(const OdDb::GripStat status) override
OdResult subGetGripPoints(OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const override
OdResult dwgInFields(OdDbDwgFiler *pFiler) override
void subViewportDraw(OdGiViewportDraw *vd) const override
OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const override
OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const override
OdResult dxfInFields(OdDbDxfFiler *pFiler) override
void modified(const OdDbObject *pObject) override
OdResult subExplode(OdRxObjectPtrArray &entitySet) const override
OdResult subGetStretchPoints(OdGePoint3dArray &stretchPoints) const override
virtual OdDbHandle OriginalEntity() const
void dwgOutFields(OdDbDwgFiler *pFiler) const override
bool subWorldDraw(OdGiWorldDraw *wd) const override
OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
void dxfOutFields(OdDbDxfFiler *pFiler) const override
OdResult getPlane(OdGePlane &plane, OdDb::Planarity &planarity) const override
virtual CFxBIMSectionEntityGeometryPtr Geometry() const
OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const override
OdResult subMoveGripPointsAt(const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) override
OdResult subGetGeomExtents(OdGeExtents3d &extents) const override
bool subIsContentSnappable() const override
virtual CFxBIMDrawingPtr BimDrawing() const
virtual const OdGeMatrix3d & OriginalTransform() const
virtual ~CFxBIMSectionEntity()
OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
virtual const OdGeMatrix3d & Transform() const
ODDB_DECLARE_MEMBERS(CFxBIMSectionEntity)
GLintptr offset
Definition gles2_ext.h:183
GripStat
Definition DbGrip.h:112
OsnapMode
Definition OdaDefs.h:489
Planarity
Definition DbEntity.h:74