CFx SDK Documentation  2023 SP0
AECDbEntity.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef __AECDBENTITY_H__
25 #define __AECDBENTITY_H__
26 
27 #include "AECBase.h"
28 #include "Subobjects/AECImpArray.h"
31 #include <DbCurve.h>
32 
41 class AECBASE_API AECDbEntity : public OdDbCurve
42 {
44 
46 
47  public:
51  virtual bool subWorldDraw( OdGiWorldDraw* pWorldDraw ) const;
52 
56  virtual void subViewportDraw( OdGiViewportDraw* pViewportDraw ) const;
57 
61  virtual OdUInt32 subSetAttributes( OdGiDrawableTraits* pTraits ) const;
62 
67  OdRxObjectPtrArray& entitySet ) const;
68 
73  OdRxObjectPtrArray& entitySet ) const;
74 
78  virtual void subClose();
79 
83  virtual OdDbObjectPtr subWblockClone( OdDbIdMapping& idMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
84 
88  virtual OdResult dwgInFields( OdDbDwgFiler* pFiler );
89 
93  virtual void dwgOutFields( OdDbDwgFiler* pFiler ) const;
94 
98  virtual void dxfOut( OdDbDxfFiler* pFiler ) const;
99 
102  virtual OdUInt16 minSupportedVersion() const;
103 
104  public:
108  virtual OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const;
109 
113  virtual OdResult subMoveGripPointsAt( const OdIntArray& indices,
114  const OdGeVector3d& offset );
115 
119  virtual OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const;
120 
124  virtual OdResult subMoveStretchPointsAt( const OdIntArray& indices,
125  const OdGeVector3d& offset );
126 
131  const double curViewUnitSize, const int gripSize,
132  const OdGeVector3d& curViewDir, const int bitFlags ) const;
133 
138  const OdGeVector3d& offset, int bitFlags );
139 
144  OdDb::OsnapMode osnapMode,
145  OdGsMarker gsSelectionMark,
146  const OdGePoint3d& pickPoint,
147  const OdGePoint3d& lastPoint,
148  const OdGeMatrix3d& xWorldToEye,
149  OdGePoint3dArray& snapPoints ) const;
150 
155  OdDb::OsnapMode osnapMode,
156  OdGsMarker gsSelectionMark,
157  const OdGePoint3d& pickPoint,
158  const OdGePoint3d& lastPoint,
159  const OdGeMatrix3d& xWorldToEye,
160  OdGePoint3dArray& snapPoints,
161  const OdGeMatrix3d& insertionMat) const;
165  virtual bool subCloneMeForDragging();
166 
170  virtual bool subHideMeForDragging() const;
171 
175  virtual void dragStatus( const OdDb::DragStat status );
176 
180  virtual void subGripStatus( const OdDb::GripStat status );
181 
182  public:
193 
203  void SetStyle( const OdDbObjectId& idStyle );
204 
208  const OdString& GetDescription() const;
209 
213  void SetDescription( const OdString& strDescription );
214 
219 
227 
232 
237 
250 
262  OdDbObjectId OverrideDispProps( const OdDbObjectId& idDispRep, bool bCopyContents = true );
263 
270  void RemoveDispProps( const OdDbObjectId& idDispRep );
271 
275  void GetMaterialIds( std::vector<OdUInt16>& aIds ) const;
276 
281  OdDbObjectId GetMaterial( OdUInt16 iMaterialId ) const;
282 
284  void addReferenceGeometryVersion( const OdDbObjectId& objectId, const OdString& geomVerGUID);
289 
290  //virtual OdDbObjectPtr decomposeForSave(OdDb::DwgVersion ver, OdDbObjectId& replaceId, bool& exchangeXData);
291 
292  protected:
295 
298 
301 
304 
305  //
307 
308  friend class AECInternalTools;
309 
310 };
311 
313 
314 #endif //__AECDBENTITY_H__
OdSmartPtr< AECDbEntity > AECDbEntityPtr
Definition: AECDbEntity.h:312
#define CURVE_DECLARE_MEMBERS()
Definition: AECMacros.h:34
#define AEC_DECLARE_MEMBERS(ClassName)
Definition: AECMacros.h:54
ptrdiff_t OdGsMarker
unsigned int OdUInt32
unsigned short OdUInt16
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
bool referencesGeometryVersionsHaveChanged(const OdDbObjectIdArray &references) const
void updateReferencesGeometryVersions(const OdDbObjectIdArray &references)
virtual void subClose()
void GetMaterialIds(std::vector< OdUInt16 > &aIds) const
void removeReferencesGeometryVersions(const OdDbObjectIdArray &references)
void SetDescription(const OdString &strDescription)
virtual OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const
virtual void subGripStatus(const OdDb::GripStat status)
virtual void dxfOut(OdDbDxfFiler *pFiler) const
virtual OdResult subGetGripPoints(OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
void clearReferencesGeometryVersions()
void updateAllReferencesGeometryVersions()
OdDbObjectId GetCurrentDispProps(const OdDbObjectId &idDispRep)
OdRxObjectPtr m_pGripManager
DOM.
Definition: AECDbEntity.h:303
OdDbObjectId GetStyle() const
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const
AECImpObjPtr m_pImpObject
DOM.
Definition: AECDbEntity.h:294
virtual bool subHideMeForDragging() const
virtual OdResult subGetStretchPoints(OdGePoint3dArray &stretchPoints) const
const OdString & GetDescription() const
AECClassificationArraySubPtr GetClassificationArray() const
virtual OdUInt16 minSupportedVersion() const
void addReferenceGeometryVersion(const OdDbObjectId &objectId, const OdString &geomVerGUID)
OdDbObjectId GetMaterial(OdUInt16 iMaterialId) const
virtual void dragStatus(const OdDb::DragStat status)
OdUInt32 GetOverrideCount() const
AECImpArrayPtr m_pOverrides
DOM.
Definition: AECDbEntity.h:297
virtual OdDbObjectPtr subWblockClone(OdDbIdMapping &idMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
virtual OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const
virtual bool subCloneMeForDragging()
virtual bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const
AECImpArraySubPtr GetOverrides() const
virtual OdResult explodeGeometry(OdRxObjectPtrArray &entitySet) const
OdRxObjectPtr m_pDrawCache
DOM.
Definition: AECDbEntity.h:300
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual void subViewportDraw(OdGiViewportDraw *pViewportDraw) const
void RemoveDispProps(const OdDbObjectId &idDispRep)
virtual OdResult subGetGripPoints(OdGePoint3dArray &gripPoints) const
OdDbObjectId OverrideDispProps(const OdDbObjectId &idDispRep, bool bCopyContents=true)
virtual OdResult subMoveStretchPointsAt(const OdIntArray &indices, const OdGeVector3d &offset)
OdUInt16 m_iMinSupportedVersion
Definition: AECDbEntity.h:306
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
AECOverrideSubPtr GetOverrideByIndex(const OdUInt32 iIndex) const
virtual OdResult subMoveGripPointsAt(const OdIntArray &indices, const OdGeVector3d &offset)
void SetStyle(const OdDbObjectId &idStyle)
virtual OdResult subMoveGripPointsAt(const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags)
GLintptr offset
Definition: gles2_ext.h:183
GripStat
Definition: DbGrip.h:80
OsnapMode
Definition: OdaDefs.h:480
DragStat
Definition: DbGrip.h:73