CFx SDK Documentation  2022 SP0
FxBIMSectionView.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 #include <DbMText.h>
23 
24 class CFxBIMSectionView;
26 
28 {
29 public:
31 
32  virtual ~CFxBIMSectionView();
33 
35  OdDbObjectId idViewport,
36  const OdDbObjectIdArray &layersToFreeze,
37  const OdDbObjectIdArray &layersToThaw );
38 
40 
41 
42  virtual OdDbObjectId Section( size_t& drawingIndex ) const; //CFxBIMSection
43 
44  virtual void Scale( double& numerator, double& denominator ) const;
45  virtual void SetScale( double numerator, double denominator );
46 
47  virtual OdDbObjectId Viewport() const; //OdDbViewport
48 
49  virtual const OdGeMatrix3d& Transform() const;
50  virtual void SetTransform( const OdGeMatrix3d& trf );
51 
53 
54 public:
55  virtual const OdString& TitleAbove() const;
56  virtual void SetTitleAbove( const OdString& titleA );
57 
58  virtual OdDbObjectId TitleAboveStyle() const;
59  virtual void SetTitleAboveStyle( OdDbObjectId styleA );
60 
61  virtual double TitleAboveSize() const;
62  virtual void SetTitleAboveSize( double sizeA );
63 
64  virtual const OdString& TitleBelow() const;
65  virtual void SetTitleBelow( const OdString& titleB );
66 
67  virtual OdDbObjectId TitleBelowStyle() const;
68  virtual void SetTitleBelowStyle( OdDbObjectId styleA );
69 
70  virtual double TitleBelowSize() const;
71  virtual void SetTitleBelowSize( double sizeA );
72 
73  virtual const OdString& Number() const;
74  virtual void SetNumber( const OdString& titleA );
75 
76  virtual OdDbObjectId NumberStyle() const;
77  virtual void SetNumberStyle( OdDbObjectId style );
78 
79  virtual double NumberSize() const;
80  virtual void SetNumberSize( double size );
81 
82  virtual double UnderlineLength() const;
83  virtual void SetUnderlineLength( double size );
84 
85 public:
86  virtual OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
87  virtual void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
88 
89  virtual OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
90  virtual void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
91 
92  OdUInt32 subSetAttributes( OdGiDrawableTraits* traits ) const override;
93  bool subWorldDraw( OdGiWorldDraw* wd ) const override;
94 
95  void subGripStatus( const OdDb::GripStat status ) override;
96 
98  OdDb::OsnapMode osnapMode,
99  OdGsMarker gsSelectionMark,
100  const OdGePoint3d& pickPoint,
101  const OdGePoint3d& lastPoint,
102  const OdGeMatrix3d& xWorldToEye,
103  OdGePoint3dArray& snapPoints ) const override;
104 
106  OdDb::OsnapMode osnapMode,
107  OdGsMarker gsSelectionMark,
108  const OdGePoint3d& pickPoint,
109  const OdGePoint3d& lastPoint,
110  const OdGeMatrix3d& xWorldToEye,
111  OdGePoint3dArray& snapPoints,
112  const OdGeMatrix3d& insertionMat ) const override;
113 
114  bool subIsContentSnappable() const override;
115 
116  OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const override;
117  OdResult subMoveGripPointsAt( const OdIntArray& indices, const OdGeVector3d& offset ) override;
119  OdDbGripDataPtrArray& grips,
120  const double curViewUnitSize,
121  const int gripSize,
122  const OdGeVector3d& curViewDir,
123  const int bitFlags ) const override;
125  const OdDbVoidPtrArray& grips,
126  const OdGeVector3d& offset,
127  int bitFlags ) override;
128  OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const override;
130  const OdIntArray& indices,
131  const OdGeVector3d& offset ) override;
132 
133  OdResult subErase( bool erasing ) override;
134  OdDbObjectPtr subWblockClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
135  OdDbObjectPtr subDeepClone( OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary ) const override;
136 
137 protected:
139 };
Error
Definition: FxBIM.h:44
#define FXBIM_API
Definition: FxBIM.h:20
OdSmartPtr< CFxBIMSectionView > CFxBIMSectionViewPtr
ptrdiff_t OdGsMarker
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
virtual void SetTitleAbove(const OdString &titleA)
virtual const OdGeMatrix3d & Transform() const
virtual const OdString & TitleAbove() const
virtual OdDbObjectId Section(size_t &drawingIndex) const
virtual double UnderlineLength() const
OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
virtual const OdString & TitleBelow() const
virtual void SetTitleBelowSize(double sizeA)
virtual OdDbObjectId Viewport() const
virtual void SetTransform(const OdGeMatrix3d &trf)
OdDbObjectPtr subDeepClone(OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const override
virtual void SetUnderlineLength(double size)
virtual void SetTitleAboveSize(double sizeA)
OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const override
virtual OdDbObjectId NumberStyle() const
virtual double TitleAboveSize() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const override
void subGripStatus(const OdDb::GripStat status) override
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler) override
bool subWorldDraw(OdGiWorldDraw *wd) const override
virtual void Scale(double &numerator, double &denominator) const
virtual const OdString & Number() const
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 SetTitleBelow(const OdString &titleB)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const override
virtual void SetNumber(const OdString &titleA)
OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const override
virtual void SetTitleAboveStyle(OdDbObjectId styleA)
virtual void SetNumberSize(double size)
ODDB_DECLARE_MEMBERS(CFxBIMSectionView)
virtual Error CreateSectionSymbolEntities()
virtual OdDbObjectId TitleAboveStyle() const
virtual void SetNumberStyle(OdDbObjectId style)
virtual void SetTitleBelowStyle(OdDbObjectId styleA)
OdResult subMoveGripPointsAt(const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) override
virtual double NumberSize() 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
virtual double TitleBelowSize() const
static void RefreshLayersVisibilityInAllViewports(OdDbDatabase *database)
virtual void SetScale(double numerator, double denominator)
OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
virtual OdDbObjectId TitleBelowStyle() const
static void RefreshLayersVisibilityInViewport(OdDbObjectId idViewport, const OdDbObjectIdArray &layersToFreeze, const OdDbObjectIdArray &layersToThaw)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler) override
OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const override
GLsizeiptr size
Definition: gles2_ext.h:182
GLintptr offset
Definition: gles2_ext.h:183
GripStat
Definition: DbGrip.h:80
OsnapMode
Definition: OdaDefs.h:478