CFx SDK Documentation  2020SP3
FxBIMSection.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "sdk/FxBIM.h"
4 
5 #include <StringArray.h>
6 #include <DbEntity.h>
7 #include <Ge/GePlane.h>
8 
9 class CFxBIMSection;
11 
13 {
14 public:
16 
17  virtual ~CFxBIMSection();
18 
19  virtual const OdString& Name() const;
20  virtual void SetName( const OdString& name );
21  virtual const OdGePlane& Plane() const;
22  virtual void SetPlane( const OdGePlane& plane );
23  virtual const std::vector< OdGePoint2d >& Points() const;
24  virtual void SetPoints( const std::vector< OdGePoint2d >& points );
25  virtual double Depth() const;
26  virtual void SetDepth( double depth );
27 
28  virtual CFxBIMDbIteratorRAPtr Entities(); //CFxBIMSectionEntity
29  virtual CFxBIMDbIteratorRAPtr Views(); //CFxBIMSectionView
30 
32  virtual OdString sourceView() const;
33  virtual void setSourceView(const OdString &name);
34 
36  {
41  //InteriorElevation, //TODO:
42  };
43 
44  virtual SectionType Type() const;
46 
48  {
49  eCutGraphics = 0x1,
50  eForwardGraphics = 0x2,
51  eBackwardGraphics = 0x4,
52  };
53  virtual int ViewOptions() const;
54  virtual void SetViewOptions( int viewOptions );
55 
56  virtual const OdString& Filter() const;
57  virtual void SetFilter( const OdString& filter );
58 
59  enum Flags
60  {
61  eInvalid = 0x1,
62  eDrawBox = 0x2,
63  eDrawSymbol = 0x4,
64  eDuplicateName = 0x8
65  };
66 
67  virtual int Flags() const;
68  virtual void SetFlags( int flags );
69 
70  virtual Error Regenerate();
71 
72  virtual const std::vector< OdDbObjectId >& Layers() const;
73  virtual void SetLayers( const std::vector< OdDbObjectId >& layers );
74 
75  void HideDrawBox( const bool& bHide );
76 
80  virtual void AddLayer(const OdDbObjectId &layer);
81 
85  virtual void RemoveLayer(const OdDbObjectId &layer);
86 
87 public:
88  virtual OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
89  virtual void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
90 
91  virtual OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
92  virtual void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
93 
94  OdUInt32 subSetAttributes( OdGiDrawableTraits* traits ) const override;
95  bool subWorldDraw( OdGiWorldDraw* wd ) const override;
96  void subViewportDraw( OdGiViewportDraw* vd ) const override;
97 
98  OdResult subGetGeomExtents( OdGeExtents3d& extents ) const override;
99 
100  void subGripStatus( const OdDb::GripStat status ) override;
101 
103  OdDb::OsnapMode osnapMode,
104  OdGsMarker gsSelectionMark,
105  const OdGePoint3d& pickPoint,
106  const OdGePoint3d& lastPoint,
107  const OdGeMatrix3d& xWorldToEye,
108  OdGePoint3dArray& snapPoints ) const override;
109 
111  OdDb::OsnapMode osnapMode,
112  OdGsMarker gsSelectionMark,
113  const OdGePoint3d& pickPoint,
114  const OdGePoint3d& lastPoint,
115  const OdGeMatrix3d& xWorldToEye,
116  OdGePoint3dArray& snapPoints,
117  const OdGeMatrix3d& insertionMat ) const override;
118 
119  bool subIsContentSnappable() const override;
120 
121  OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const override;
122  OdResult subMoveGripPointsAt( const OdIntArray& indices, const OdGeVector3d& offset ) override;
124  OdDbGripDataPtrArray& grips,
125  const double curViewUnitSize,
126  const int gripSize,
127  const OdGeVector3d& curViewDir,
128  const int bitFlags ) const override;
130  const OdDbVoidPtrArray& grips,
131  const OdGeVector3d& offset,
132  int bitFlags ) override;
133  OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const override;
135  const OdIntArray& indices,
136  const OdGeVector3d& offset ) override;
137 
138  OdResult subErase( bool erasing ) override;
139  OdDbObjectPtr subWblockClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
140  OdDbObjectPtr subDeepClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
141 
142 protected:
144 };
145 
146 class CFxBIMSectionView;
147 
149 {
150 public:
151  virtual ~CFxBIMSectionReactor() {};
152 
153  virtual void Created( CFxBIMSection* p ) {};
154  virtual void Removed( CFxBIMSection* p, bool removed ) {};
155 
156  virtual void Renamed( CFxBIMSection* p, const OdString& oldName, bool undo ) {};
157 
158  virtual void ViewCreated( CFxBIMSectionView* pView ) {};
159  virtual void ViewRemoved( CFxBIMSectionView* pView, bool removed ) {};
160 };
CFxBIMSection::SetFilter
virtual void SetFilter(const OdString &filter)
OdResult
OdResult
Definition: OdResult.h:29
CFxBIMSection::SetName
virtual void SetName(const OdString &name)
OdGePlane
Definition: GePlane.h:45
CFxBIMSection::Regenerate
virtual Error Regenerate()
CFxBIMSectionReactor
Definition: FxBIMSection.h:149
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
Error
Error
Definition: FxBIM.h:18
CFxBIMSection::HideDrawBox
void HideDrawBox(const bool &bHide)
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
CFxBIMSection::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const override
CFxBIMSection::ViewOptions
ViewOptions
Definition: FxBIMSection.h:48
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
StringArray.h
CFxBIMSection::subGetOsnapPoints
OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const override
CFxBIMSection::subMoveGripPointsAt
OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
CFxBIMSection::ViewOptions
virtual int ViewOptions() const
OdDbObjectId
Definition: DbObjectId.h:99
CFxBIMSection::SetViewOptions
virtual void SetViewOptions(int viewOptions)
CFxBIMSection::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(CFxBIMSection)
OdArray< OdString >
CFxBIMSection::SectionType
SectionType
Definition: FxBIMSection.h:36
CFxBIMSection
Definition: FxBIMSection.h:13
GePlane.h
OdGsMarker
ptrdiff_t OdGsMarker
Definition: OdPlatformSettings.h:889
FXBIM_API
#define FXBIM_API
Definition: FxBIM.h:4
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
CFxBIMSection::Layers
virtual const std::vector< OdDbObjectId > & Layers() const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
CFxBIMSection::subGetGripPoints
OdResult subGetGripPoints(OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const override
CFxBIMSection::subIsContentSnappable
bool subIsContentSnappable() const override
CFxBIMSection::Points
virtual const std::vector< OdGePoint2d > & Points() const
CFxBIMSection::subGetGeomExtents
OdResult subGetGeomExtents(OdGeExtents3d &extents) const override
CFxBIMSection::SetType
virtual void SetType(CFxBIMSection::SectionType type)
CFxBIMSection::subMoveGripPointsAt
OdResult subMoveGripPointsAt(const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) override
CFxBIMSection::CFxBIMSection
CFxBIMSection()
CFxBIMSectionReactor::~CFxBIMSectionReactor
virtual ~CFxBIMSectionReactor()
Definition: FxBIMSection.h:151
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
CFxBIMSection::subGetStretchPoints
OdResult subGetStretchPoints(OdGePoint3dArray &stretchPoints) const override
CFxBIMObject
Definition: FxBIM.h:131
offset
GLintptr offset
Definition: gles2_ext.h:183
CFxBIMSection::Flags
Flags
Definition: FxBIMSection.h:60
CFxBIMSection::SetDepth
virtual void SetDepth(double depth)
CFxBIMSection::Plan
@ Plan
Definition: FxBIMSection.h:37
CFxBIMSection::SetLayers
virtual void SetLayers(const std::vector< OdDbObjectId > &layers)
CFxBIMSection::Name
virtual const OdString & Name() const
CFxBIMSectionReactor::Renamed
virtual void Renamed(CFxBIMSection *p, const OdString &oldName, bool undo)
Definition: FxBIMSection.h:156
OdDb::GripStat
GripStat
Definition: DbGrip.h:80
OdDb::OsnapMode
OsnapMode
Definition: OdaDefs.h:478
CFxBIMSection::subDeepClone
OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
CFxBIMSection::availableSourceViews
virtual OdStringArray availableSourceViews() const
OdDbDxfFiler
Definition: DbFiler.h:194
CFxBIMSectionReactor::ViewCreated
virtual void ViewCreated(CFxBIMSectionView *pView)
Definition: FxBIMSection.h:158
CFxBIMSection::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler) override
CFxBIMSection::Filter
virtual const OdString & Filter() const
CFxBIMSection::subGripStatus
void subGripStatus(const OdDb::GripStat status) override
CFxBIMSectionView
Definition: FxBIMSectionView.h:12
CFxBIMSection::Section
@ Section
Definition: FxBIMSection.h:38
OdGiWorldDraw
Definition: GiWorldDraw.h:44
CFxBIMSection::subSetAttributes
OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const override
CFxBIMSection::subWorldDraw
bool subWorldDraw(OdGiWorldDraw *wd) const override
OdDbEntity
Definition: DbEntity.h:90
CFxBIMSection::subMoveStretchPointsAt
OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
CFxBIMSection::Type
virtual SectionType Type() const
CFxBIMSection::subGetGripPoints
OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const override
CFxBIMSection::subWblockClone
OdDbObjectPtr subWblockClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
OdGiDrawableTraits
Definition: Gi.h:71
CFxBIMSection::setSourceView
virtual void setSourceView(const OdString &name)
CFxBIMSection::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler) override
CFxBIMSectionPtr
OdSmartPtr< CFxBIMSection > CFxBIMSectionPtr
Definition: FxBIMSection.h:9
OdGeExtents3d
Definition: GeExtents3d.h:45
CFxBIMSection::sourceView
virtual OdString sourceView() const
CFxBIMSection::AddLayer
virtual void AddLayer(const OdDbObjectId &layer)
Add layer, if it is not added yet.
CFxBIMSection::Plane
virtual const OdGePlane & Plane() const
CFxBIMSection::SetPlane
virtual void SetPlane(const OdGePlane &plane)
CFxBIMSection::subViewportDraw
void subViewportDraw(OdGiViewportDraw *vd) const override
CFxBIMSection::Elevation
@ Elevation
Definition: FxBIMSection.h:40
CFxBIMSectionReactor::Removed
virtual void Removed(CFxBIMSection *p, bool removed)
Definition: FxBIMSection.h:154
CFxBIMSection::Views
virtual CFxBIMDbIteratorRAPtr Views()
CFxBIMSectionReactor::ViewRemoved
virtual void ViewRemoved(CFxBIMSectionView *pView, bool removed)
Definition: FxBIMSection.h:159
CFxBIMSection::SetPoints
virtual void SetPoints(const std::vector< OdGePoint2d > &points)
CFxBIMSection::Depth
virtual double Depth() const
CFxBIMSection::Flags
virtual int Flags() const
CFxBIMSection::RemoveLayer
virtual void RemoveLayer(const OdDbObjectId &layer)
Remove layer, if it was added.
CFxBIMSectionReactor::Created
virtual void Created(CFxBIMSection *p)
Definition: FxBIMSection.h:153
CFxBIMSection::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const override
CFxBIMSection::subErase
OdResult subErase(bool erasing) override
OdDbIdMapping
Definition: DbIdMapping.h:238
CFxBIMSection::Entities
virtual CFxBIMDbIteratorRAPtr Entities()
CFxBIMSection::subGetOsnapPoints
OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const override
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdGiViewportDraw
Definition: GiViewportDraw.h:50
CFxBIMSection::~CFxBIMSection
virtual ~CFxBIMSection()
CFxBIMSection::SetFlags
virtual void SetFlags(int flags)
CFxBIMDbIteratorRAPtr
std::shared_ptr< CFxBIMDbIteratorRA > CFxBIMDbIteratorRAPtr
Definition: FxBIM.h:162
CFxBIMSection::Detail
@ Detail
Definition: FxBIMSection.h:39