CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxBIMSectionView.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#include <DbMText.h>
23
26
28{
29public:
31
33
34 virtual OdDbHandle Section() const; //CFxBIMSection
35
36 virtual double Scale() const;
37 virtual void SetScale( double& dScale );
38
39 virtual OdDbObjectId Viewport() const; //OdDbViewport
40
41 OdDbObjectId Breaklines() const; //OdDbLayerTableRecord
43
44 OdDbObjectId Matchlines() const; //OdDbLayerTableRecord
46
47 virtual const OdGeMatrix3d& Transform() const;
48 virtual void SetTransform( const OdGeMatrix3d& trf );
49
51
52public:
53 //TODO: bim data
54
55 virtual const OdString& Number() const;
56 virtual const OdString& Name() const;
57 virtual void SetNumberAndName( OdString const* psNumber, OdString const* psName );
58
59 virtual bool IsTileView() const;
60
61public:
62 OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
63 void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
64
65 OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
66 void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
67
68 OdUInt32 subSetAttributes( OdGiDrawableTraits* traits ) const override;
69
70 void subGripStatus( const OdDb::GripStat status ) override;
71 void modified( const OdDbObject* pObject ) override;
72
74 OdDb::OsnapMode osnapMode,
75 OdGsMarker gsSelectionMark,
76 const OdGePoint3d& pickPoint,
77 const OdGePoint3d& lastPoint,
78 const OdGeMatrix3d& xWorldToEye,
79 OdGePoint3dArray& snapPoints ) const override;
80
82 OdDb::OsnapMode osnapMode,
83 OdGsMarker gsSelectionMark,
84 const OdGePoint3d& pickPoint,
85 const OdGePoint3d& lastPoint,
86 const OdGeMatrix3d& xWorldToEye,
87 OdGePoint3dArray& snapPoints,
88 const OdGeMatrix3d& insertionMat ) const override;
89
90 bool subIsContentSnappable() const override;
91
92 OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const override;
93 OdResult subMoveGripPointsAt( const OdIntArray& indices, const OdGeVector3d& offset ) override;
96 const double curViewUnitSize,
97 const int gripSize,
98 const OdGeVector3d& curViewDir,
99 const int bitFlags ) const override;
101 const OdDbVoidPtrArray& grips,
102 const OdGeVector3d& offset,
103 int bitFlags ) override;
104 OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const override;
106 const OdIntArray& indices,
107 const OdGeVector3d& offset ) override;
108
109 OdResult subErase( bool erasing ) override;
110 OdDbObjectPtr subWblockClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
111 OdDbObjectPtr subDeepClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
112
113protected:
115
116private:
117 void RemoveLayersAndItsEntities();
118};
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > > OdGePoint3dArray
OdArray< void *, OdMemoryAllocator< void * > > OdDbVoidPtrArray
Definition DbGrip.h:55
OdArray< OdDbGripDataPtr > OdDbGripDataPtrArray
Definition DbGrip.h:49
OdSmartPtr< OdDbObject > OdDbObjectPtr
Definition DbObject.h:1750
Error
Definition FxBIM.h:40
#define FXBIM_API
Definition FxBIMDefs.h:4
OdSmartPtr< CFxBIMSectionView > CFxBIMSectionViewPtr
OdArray< int, OdMemoryAllocator< int > > OdIntArray
Definition IntArray.h:35
ptrdiff_t OdGsMarker
unsigned int OdUInt32
OdResult
Definition OdResult.h:29
OdDbObjectId Matchlines() const
virtual void SetScale(double &dScale)
OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
OdResult dwgInFields(OdDbDwgFiler *pFiler) override
virtual OdDbObjectId Viewport() const
virtual void SetTransform(const OdGeMatrix3d &trf)
OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
void SetMatchlines(OdDbObjectId id)
OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const override
virtual const OdString & Name() const
virtual void SetNumberAndName(OdString const *psNumber, OdString const *psName)
virtual const OdGeMatrix3d & Transform() const
void subGripStatus(const OdDb::GripStat status) override
OdResult dxfInFields(OdDbDxfFiler *pFiler) override
void modified(const OdDbObject *pObject) override
bool subIsContentSnappable() const override
OdResult subErase(bool erasing) override
void dxfOutFields(OdDbDxfFiler *pFiler) const override
virtual ~CFxBIMSectionView()
OdResult subGetStretchPoints(OdGePoint3dArray &stretchPoints) 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 subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const override
virtual OdDbHandle Section() const
ODDB_DECLARE_MEMBERS(CFxBIMSectionView)
virtual Error CreateSectionSymbolEntities()
OdResult subMoveGripPointsAt(const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) override
virtual double Scale() const
OdDbObjectPtr subWblockClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
OdResult subGetGripPoints(OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const override
OdDbObjectId Breaklines() const
virtual const OdString & Number() const
void SetBreaklines(OdDbObjectId id)
OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
virtual bool IsTileView() const
void dwgOutFields(OdDbDwgFiler *pFiler) const override
OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const override
GLintptr offset
Definition gles2_ext.h:183
GripStat
Definition DbGrip.h:112
OsnapMode
Definition OdaDefs.h:489