CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxBIMSectionView.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#include <DbMText.h>
23
26
28{
29public:
31
33
35 OdDbObjectId idViewport,
36 const OdDbObjectIdArray &layersToFreeze,
37 const OdDbObjectIdArray &layersToThaw );
38
40
41 virtual OdDbHandle Section() const; //CFxBIMSection
42
43 virtual double Scale() const;
44 virtual void SetScale( double& dScale );
45
46 virtual OdDbObjectId Viewport() const; //OdDbViewport
47
48 virtual const OdGeMatrix3d& Transform() const;
49 virtual void SetTransform( const OdGeMatrix3d& trf );
50
52
53public:
54 //TODO: bim data
55
56 virtual const OdString& Number() const;
57 virtual const OdString& Name() const;
58 virtual void SetNumberAndName( OdString const* psNumber, OdString const* psName );
59
60public:
61 virtual OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
62 virtual void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
63
64 virtual OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
65 virtual void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
66
67 OdUInt32 subSetAttributes( OdGiDrawableTraits* traits ) const override;
68
69 void subGripStatus( const OdDb::GripStat status ) override;
70 void modified( const OdDbObject* pObject ) override;
71
73 OdDb::OsnapMode osnapMode,
74 OdGsMarker gsSelectionMark,
75 const OdGePoint3d& pickPoint,
76 const OdGePoint3d& lastPoint,
77 const OdGeMatrix3d& xWorldToEye,
78 OdGePoint3dArray& snapPoints ) const override;
79
81 OdDb::OsnapMode osnapMode,
82 OdGsMarker gsSelectionMark,
83 const OdGePoint3d& pickPoint,
84 const OdGePoint3d& lastPoint,
85 const OdGeMatrix3d& xWorldToEye,
86 OdGePoint3dArray& snapPoints,
87 const OdGeMatrix3d& insertionMat ) const override;
88
89 bool subIsContentSnappable() const override;
90
91 OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const override;
92 OdResult subMoveGripPointsAt( const OdIntArray& indices, const OdGeVector3d& offset ) override;
95 const double curViewUnitSize,
96 const int gripSize,
97 const OdGeVector3d& curViewDir,
98 const int bitFlags ) const override;
100 const OdDbVoidPtrArray& grips,
101 const OdGeVector3d& offset,
102 int bitFlags ) override;
103 OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const override;
105 const OdIntArray& indices,
106 const OdGeVector3d& offset ) 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
112protected:
114};
Error
Definition: FxBIM.h:66
#define FXBIM_API
Definition: FxBIM.h:20
OdSmartPtr< CFxBIMSectionView > CFxBIMSectionViewPtr
ptrdiff_t OdGsMarker
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
virtual void SetScale(double &dScale)
OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
virtual OdDbObjectId Viewport() const
virtual void SetTransform(const OdGeMatrix3d &trf)
OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
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
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const override
void subGripStatus(const OdDb::GripStat status) override
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler) override
void modified(const OdDbObject *pObject) override
bool subIsContentSnappable() const override
OdResult subErase(bool erasing) 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
virtual 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
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
static void RefreshLayersVisibilityInAllViewports(OdDbDatabase *database)
virtual const OdString & Number() const
OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
static void RefreshLayersVisibilityInViewport(OdDbObjectId idViewport, const OdDbObjectIdArray &layersToFreeze, const OdDbObjectIdArray &layersToThaw)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler) override
OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const override
GLintptr offset
Definition: gles2_ext.h:183
GripStat
Definition: DbGrip.h:112
OsnapMode
Definition: OdaDefs.h:489