CFx SDK Documentation  2022 SP0
FxBIMSectionEntity.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2020-2021 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 "sdk/FxBIM.h"
20 
21 #include <DbEntity.h>
22 
25 
26 class OdDbDwgFiler;
27 
29 {
30 public:
32 
34 
35  virtual const OdGeMatrix3d& OriginalTransform() const;
36  virtual const OdGeMatrix3d& Transform() const;
37  virtual void SetTransform( const OdGeMatrix3d& transform );
38 
39  virtual OdDbObjectId OriginalEntity() const; //CFxBIMEntityReference
40 
41 public:
42  OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
43  void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
44 
45  OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
46  void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
47 
48  OdUInt32 subSetAttributes( OdGiDrawableTraits* traits ) const override;
49  bool subWorldDraw( OdGiWorldDraw* wd ) const override;
50  void subViewportDraw( OdGiViewportDraw* vd ) const override;
51 
52  OdResult subGetGeomExtents( OdGeExtents3d& extents ) const override;
53 
54  void subGripStatus( const OdDb::GripStat status ) override;
55 
57  OdDb::OsnapMode osnapMode,
58  OdGsMarker gsSelectionMark,
59  const OdGePoint3d& pickPoint,
60  const OdGePoint3d& lastPoint,
61  const OdGeMatrix3d& xWorldToEye,
62  OdGePoint3dArray& snapPoints ) const override;
63 
65  OdDb::OsnapMode osnapMode,
66  OdGsMarker gsSelectionMark,
67  const OdGePoint3d& pickPoint,
68  const OdGePoint3d& lastPoint,
69  const OdGeMatrix3d& xWorldToEye,
70  OdGePoint3dArray& snapPoints,
71  const OdGeMatrix3d& insertionMat ) const override;
72 
73  bool subIsContentSnappable() const override;
74 
75  OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const override;
76  OdResult subMoveGripPointsAt( const OdIntArray& indices, const OdGeVector3d& offset ) override;
78  OdDbGripDataPtrArray& grips,
79  const double curViewUnitSize,
80  const int gripSize,
81  const OdGeVector3d& curViewDir,
82  const int bitFlags ) const override;
84  const OdDbVoidPtrArray& grips,
85  const OdGeVector3d& offset,
86  int bitFlags ) override;
87  OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const override;
89  const OdIntArray& indices,
90  const OdGeVector3d& offset ) override;
91 
92  OdResult subErase( bool erasing ) override;
93  OdDbObjectPtr subWblockClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
94  OdDbObjectPtr subDeepClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
95 
96  OdResult subTransformBy( const OdGeMatrix3d& xfm ) override;
97  OdResult subGetTransformedCopy( const OdGeMatrix3d& xfm, OdDbEntityPtr& pCopy ) const override;
98 
99  OdResult subExplode( OdRxObjectPtrArray& entitySet ) const override;
100 
101 protected:
103 };
#define FXBIM_API
Definition: FxBIM.h:20
OdSmartPtr< CFxBIMSectionEntity > CFxBIMSectionEntityPtr
ptrdiff_t OdGsMarker
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) 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
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
virtual const OdGeMatrix3d & Transform() const
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
virtual OdDbObjectId OriginalEntity() const
OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const override
virtual const OdGeMatrix3d & OriginalTransform() const
OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const override
OdResult dxfInFields(OdDbDxfFiler *pFiler) override
OdResult subErase(bool erasing) override
OdResult subExplode(OdRxObjectPtrArray &entitySet) const override
OdResult subGetStretchPoints(OdGePoint3dArray &stretchPoints) const override
OdDbObjectPtr subWblockClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
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 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 ~CFxBIMSectionEntity()
OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
ODDB_DECLARE_MEMBERS(CFxBIMSectionEntity)
GLintptr offset
Definition: gles2_ext.h:183
GripStat
Definition: DbGrip.h:80
OsnapMode
Definition: OdaDefs.h:478