CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
AECDbEntity.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a
16// license agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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"
31#include <DbCurve.h>
32#include "AECDbUserCallback.h"
33
42class AECBASE_API AECDbEntity : public OdDbCurve
43{
45
47
48 public:
52 virtual bool subWorldDraw( OdGiWorldDraw* pWorldDraw ) const;
53
57 virtual void subViewportDraw( OdGiViewportDraw* pViewportDraw ) const;
58
62 virtual OdUInt32 subSetAttributes( OdGiDrawableTraits* pTraits ) const;
63
68 OdRxObjectPtrArray& entitySet ) const;
69
74 OdRxObjectPtrArray& entitySet ) const;
75
79 virtual void subClose();
80
84 virtual OdDbObjectPtr subWblockClone( OdDbIdMapping& idMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
85
89 virtual OdResult dwgInFields( OdDbDwgFiler* pFiler );
90
94 virtual void dwgOutFields( OdDbDwgFiler* pFiler ) const;
95
99 virtual void dxfOut( OdDbDxfFiler* pFiler ) const;
100
104
108 virtual void subHighlight(bool bDoIt = true, const OdDbFullSubentPath* pSubId = 0, bool highlightAll = false) const;
109
110 public:
114 virtual OdResult subGetGripPoints( OdGePoint3dArray& gripPoints ) const;
115
119 virtual OdResult subMoveGripPointsAt( const OdIntArray& indices,
120 const OdGeVector3d& offset );
121
125 virtual OdResult subGetStretchPoints( OdGePoint3dArray& stretchPoints ) const;
126
131 const OdGeVector3d& offset );
132
137 const double curViewUnitSize, const int gripSize,
138 const OdGeVector3d& curViewDir, const int bitFlags ) const;
139
144 const OdGeVector3d& offset, int bitFlags );
145
150 OdDb::OsnapMode osnapMode,
151 OdGsMarker gsSelectionMark,
152 const OdGePoint3d& pickPoint,
153 const OdGePoint3d& lastPoint,
154 const OdGeMatrix3d& xWorldToEye,
155 OdGePoint3dArray& snapPoints ) const;
156
161 OdDb::OsnapMode osnapMode,
162 OdGsMarker gsSelectionMark,
163 const OdGePoint3d& pickPoint,
164 const OdGePoint3d& lastPoint,
165 const OdGeMatrix3d& xWorldToEye,
166 OdGePoint3dArray& snapPoints,
167 const OdGeMatrix3d& insertionMat) const;
168
173 OdGePoint3dArray& points, OdGsMarker thisGsMarker = 0,
174 OdGsMarker otherGsMarker = 0) const;
175
179 virtual bool subCloneMeForDragging();
180
184 virtual bool subHideMeForDragging() const;
185
189 virtual void dragStatus( const OdDb::DragStat status );
190
194 virtual void subGripStatus( const OdDb::GripStat status );
195
196 public:
207
217 void SetStyle( const OdDbObjectId& idStyle );
218
222 const OdString& GetDescription() const;
223
227 void SetDescription( const OdString& strDescription );
228
233
241
246
251
264
276 OdDbObjectId OverrideDispProps( const OdDbObjectId& idDispRep, bool bCopyContents = true );
277
284 void RemoveDispProps( const OdDbObjectId& idDispRep );
285
289 void GetMaterialIds( std::vector<OdUInt16>& aIds ) const;
290
295 OdDbObjectId GetMaterial( OdUInt16 iMaterialId ) const;
296
298 void addReferenceGeometryVersion( const OdDbObjectId& objectId, const OdString& geomVerGUID);
303
304 bool GetHighlited() const;
305
308
309 //virtual OdDbObjectPtr decomposeForSave(OdDb::DwgVersion ver, OdDbObjectId& replaceId, bool& exchangeXData);
310
311 protected:
314
317
320
323
324 //
326
327 friend class AECInternalTools;
328
329};
330
332
333#endif //__AECDBENTITY_H__
OdSmartPtr< AECDbEntity > AECDbEntityPtr
Definition: AECDbEntity.h:331
#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 removeCallback(AECDbUserCallback *pCallback)
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)
bool GetHighlited() const
OdRxObjectPtr m_pGripManager
DOM.
Definition: AECDbEntity.h:322
OdDbObjectId GetStyle() const
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const
AECImpObjPtr m_pImpObject
DOM.
Definition: AECDbEntity.h:313
virtual bool subHideMeForDragging() const
const OdString & GetDescription() const
virtual OdResult subIntersectWith(const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const
virtual OdResult subGetStretchPoints(OdGePoint3dArray &stretchPoints) const
AECClassificationArraySubPtr GetClassificationArray() const
virtual OdUInt16 minSupportedVersion() const
virtual void subHighlight(bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) 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:316
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
void addCallback(AECDbUserCallback *pCallback)
virtual OdResult explodeGeometry(OdRxObjectPtrArray &entitySet) const
OdRxObjectPtr m_pDrawCache
DOM.
Definition: AECDbEntity.h:319
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:325
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:112
Intersect
Definition: OdaDefs.h:481
OsnapMode
Definition: OdaDefs.h:489
DragStat
Definition: DbGrip.h:99