CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxBIMSectionEntity.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
25
26class CFxBIMDrawing;
27typedef std::shared_ptr< CFxBIMDrawing > CFxBIMDrawingPtr;
28
29class OdDbDwgFiler;
30
32{
33public:
35
37
38 virtual const OdGeMatrix3d& OriginalTransform() const;
39 virtual const OdGeMatrix3d& Transform() const;
40 virtual void SetTransform( const OdGeMatrix3d& transform );
41
42 virtual OdDbHandle OriginalEntity() const; //CFxBIMEntityReference
44
45public:
46 OdResult dwgInFields( OdDbDwgFiler* pFiler ) override;
47 void dwgOutFields( OdDbDwgFiler* pFiler ) const override;
48
49 OdResult dxfInFields( OdDbDxfFiler* pFiler ) override;
50 void dxfOutFields( OdDbDxfFiler* pFiler ) const override;
51
52 OdUInt32 subSetAttributes( OdGiDrawableTraits* traits ) const override;
53 bool subWorldDraw( OdGiWorldDraw* wd ) const override;
54 void subViewportDraw( OdGiViewportDraw* vd ) const override;
55
56 OdResult subGetGeomExtents( OdGeExtents3d& extents ) const override;
57
58 void subGripStatus( const OdDb::GripStat status ) override;
59
61 OdDb::OsnapMode osnapMode,
62 OdGsMarker gsSelectionMark,
63 const OdGePoint3d& pickPoint,
64 const OdGePoint3d& lastPoint,
65 const OdGeMatrix3d& xWorldToEye,
66 OdGePoint3dArray& snapPoints ) const override;
67
69 OdDb::OsnapMode osnapMode,
70 OdGsMarker gsSelectionMark,
71 const OdGePoint3d& pickPoint,
72 const OdGePoint3d& lastPoint,
73 const OdGeMatrix3d& xWorldToEye,
74 OdGePoint3dArray& snapPoints,
75 const OdGeMatrix3d& insertionMat ) const override;
76
77 bool subIsContentSnappable() const override;
78
79 OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const override;
80 OdResult subMoveGripPointsAt( const OdIntArray& indices, const OdGeVector3d& offset ) override;
83 const double curViewUnitSize,
84 const int gripSize,
85 const OdGeVector3d& curViewDir,
86 const int bitFlags ) const override;
88 const OdDbVoidPtrArray& grips,
89 const OdGeVector3d& offset,
90 int bitFlags ) override;
91 OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const override;
93 const OdIntArray& indices,
94 const OdGeVector3d& offset ) 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
101protected:
103};
#define FXBIM_API
Definition: FxBIM.h:20
std::shared_ptr< CFxBIMDrawing > CFxBIMDrawingPtr
OdSmartPtr< CFxBIMSectionEntity > CFxBIMSectionEntityPtr
ptrdiff_t OdGsMarker
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
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
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
OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const override
OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const override
OdResult dxfInFields(OdDbDxfFiler *pFiler) override
OdResult subExplode(OdRxObjectPtrArray &entitySet) const override
OdResult subGetStretchPoints(OdGePoint3dArray &stretchPoints) const override
virtual OdDbHandle OriginalEntity() const
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 CFxBIMDrawingPtr BimDrawing() const
virtual const OdGeMatrix3d & OriginalTransform() const
virtual ~CFxBIMSectionEntity()
OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset) override
virtual const OdGeMatrix3d & Transform() const
ODDB_DECLARE_MEMBERS(CFxBIMSectionEntity)
GLintptr offset
Definition: gles2_ext.h:183
GripStat
Definition: DbGrip.h:112
OsnapMode
Definition: OdaDefs.h:489