CFx SDK Documentation  2022 SP0
Public Types | Public Member Functions | List of all members
OdDbProxyEntity Class Reference

#include <DbProxyEntity.h>

Inheritance diagram for OdDbProxyEntity:
OdDbEntity OdDbObject OdGiDrawable OdRxObject

Public Types

enum  GraphicsMetafileType { kNoMetafile = 0 , kBoundingBox = 1 , kFullGraphics = 2 }
 
enum  {
  kNoOperation = 0x000 , kEraseAllowed = 0x001 , kTransformAllowed = 0x002 , kColorChangeAllowed = 0x004 ,
  kLayerChangeAllowed = 0x008 , kLinetypeChangeAllowed = 0x010 , kLinetypeScaleChangeAllowed = 0x020 , kVisibilityChangeAllowed = 0x040 ,
  kCloningAllowed = 0x080 , kLineWeightChangeAllowed = 0x100 , kPlotStyleNameChangeAllowed = 0x200 , kDisableProxyWarning = 0x400 ,
  kMaterialChangeAllowed = 0x800 , kAllButCloningAllowed = 0xB7F , kAllAllowedBits = 0xBFF
}
 
- Public Types inherited from OdDbEntity
enum  VisualStyleType { kFullVisualStyle , kFaceVisualStyle , kEdgeVisualStyle }
 
- Public Types inherited from OdGiDrawable
enum  SetAttributesFlags {
  kDrawableNone = 0 , kDrawableIsAnEntity = 1 , kDrawableUsesNesting = 2 , kDrawableIsCompoundObject = 4 ,
  kDrawableViewIndependentViewportDraw = 8 , kDrawableIsInvisible = 16 , kDrawableHasAttributes = 32 , kDrawableRegenTypeDependantGeometry = 64 ,
  kDrawableIsDimension = (kDrawableIsAnEntity + kDrawableIsCompoundObject + 128) , kDrawableRegenDraw = 256 , kDrawableStandardDisplaySingleLOD = 512 , kDrawableShadedDisplaySingleLOD = 1024 ,
  kDrawableViewDependentViewportDraw = 2048 , kDrawableBlockDependentViewportDraw = 4096 , kDrawableIsExternalReference = 8192 , kDrawableNotPlottable = 16384 ,
  kLastFlag = kDrawableNotPlottable
}
 
enum  DrawableType {
  kGeometry = 0 , kDistantLight = 1 , kPointLight = 2 , kSpotLight = 3 ,
  kAmbientLight , kSolidBackground , kGradientBackground , kImageBackground ,
  kGroundPlaneBackground , kViewport , kWebLight , kSkyBackground ,
  kImageBasedLightingBackground
}
 

Public Member Functions

 ODDB_DECLARE_MEMBERS (OdDbProxyEntity)
 
 OdDbProxyEntity ()
 
virtual OdDbProxyEntity::GraphicsMetafileType graphicsMetafileType () const
 
virtual OdDbObjectPtr subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdDbObjectPtr subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdResult subExplode (OdRxObjectPtrArray &entitySet) const ODRX_OVERRIDE
 
virtual int proxyFlags () const
 
bool eraseAllowed () const
 
bool transformAllowed () const
 
bool colorChangeAllowed () const
 
bool layerChangeAllowed () const
 
bool linetypeChangeAllowed () const
 
bool linetypeScaleChangeAllowed () const
 
bool visibilityChangeAllowed () const
 
bool lineWeightChangeAllowed () const
 
bool plotStyleNameChangeAllowed () const
 
bool materialChangeAllowed () const
 
bool cloningAllowed () const
 
bool allButCloningAllowed () const
 
bool allOperationsAllowed () const
 
bool isR13FormatProxy () const
 
virtual OdString originalClassName () const
 
virtual OdString originalDxfName () const
 
virtual OdString applicationDescription () const
 
virtual void getReferences (OdTypedIdsArray &objectIds) const
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
OdResult dxfIn (OdDbDxfFiler *pFiler)
 
virtual OdResult subTransformBy (const OdGeMatrix3d &xfm) ODRX_OVERRIDE
 
virtual OdResult setColor (const OdCmColor &color, bool doSubents=true)
 
virtual OdResult setColorIndex (OdUInt16 colorIndex, bool doSubents=true)
 
virtual OdResult setColorId (OdDbObjectId colorId, bool doSubents=true)
 
virtual OdResult setPlotStyleName (const OdString &plotStyleName, bool doSubents=true)
 
virtual OdResult setPlotStyleName (OdDb::PlotStyleNameType plotStyleNameType, OdDbObjectId newId=OdDbObjectId::kNull, bool doSubents=true)
 
virtual OdResult setLayer (const OdString &layerName, bool doSubents=true, bool allowHiddenLayer=false)
 
virtual OdResult setLayer (OdDbObjectId layerId, bool doSubents=true, bool allowHiddenLayer=false)
 
virtual OdResult setLinetype (const OdString &linetypeName, bool doSubents=true)
 
virtual OdResult setLinetype (OdDbObjectId linetypeID, bool doSubents=true)
 
virtual OdResult setLinetypeScale (double linetypeScale, bool doSubents=true)
 
virtual OdResult subSetVisibility (OdDb::Visibility visibility, bool doSubents=true)
 
virtual OdResult setLineWeight (OdDb::LineWeight lineWeight, bool doSubents=true)
 
virtual OdResult setMaterial (const OdString &materialName, bool doSubents=true)
 
virtual OdResult setMaterial (OdDbObjectId materialID, bool doSubents=true)
 
virtual OdResult subErase (bool erasing)
 
- Public Member Functions inherited from OdDbEntity
 ODDB_DECLARE_MEMBERS (OdDbEntity)
 
 OdDbEntity ()
 
OdDbObjectId blockId () const
 
OdCmColor color () const
 
OdUInt16 colorIndex () const
 
virtual OdCmEntityColor entityColor () const
 
OdDbObjectId colorId () const
 
OdCmTransparency transparency () const
 
virtual OdResult setTransparency (const OdCmTransparency &transparency, bool doSubents=true)
 
OdString plotStyleName () const
 
OdDb::PlotStyleNameType getPlotStyleNameId (OdDbObjectId &plotStyleNameId) const
 
OdString layer () const
 
OdDbObjectId layerId () const
 
OdString linetype () const
 
OdDbObjectId linetypeId () const
 
OdString material () const
 
OdDbObjectId materialId () const
 
OdDbObjectId visualStyleId (VisualStyleType vstype=kFullVisualStyle) const
 
virtual OdResult setVisualStyle (OdDbObjectId visualStyleId, VisualStyleType vstype=kFullVisualStyle, bool doSubents=true)
 
virtual const OdGiMappermaterialMapper () const
 
virtual void setMaterialMapper (const OdGiMapper *mapper, bool doSubents=true)
 
double linetypeScale () const
 
OdDb::Visibility visibility () const
 
ODRX_SEALED_VIRTUAL OdResult setVisibility (OdDb::Visibility visibility, bool doSubents=true) ODRX_SEALED
 
OdDb::Visibility tempVisibility () const
 
void setTempVisibility (OdDb::Visibility visibility)
 
OdDb::LineWeight lineWeight () const
 
virtual bool castShadows () const
 
virtual void setCastShadows (bool castShadows)
 
virtual bool receiveShadows () const
 
virtual void setReceiveShadows (bool receiveShadows)
 
virtual OdDb::CollisionType collisionType () const
 
void setPropertiesFrom (const OdDbEntity *pSource, bool doSubents=true)
 
virtual bool isPlanar () const
 
virtual OdResult getPlane (OdGePlane &plane, OdDb::Planarity &planarity) const
 
void subHandOverTo (OdDbObject *pNewObject)
 
ODRX_SEALED_VIRTUAL OdResult transformBy (const OdGeMatrix3d &xfm) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getTransformedCopy (const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult explode (OdRxObjectPtrArray &entitySet) const ODRX_SEALED
 
virtual OdResult explodeToBlock (OdDbBlockTableRecord *pBlockRecord, OdDbObjectIdArray *ids=0)
 
virtual OdResult explodeGeometry (OdRxObjectPtrArray &entitySet) const
 
virtual OdResult explodeGeometryToBlock (OdDbBlockTableRecord *pBlockRecord, OdDbObjectIdArray *ids=0)
 
virtual bool subWorldDraw (OdGiWorldDraw *pWd) const
 
virtual void subViewportDraw (OdGiViewportDraw *pVd) const
 
void setDatabaseDefaults (OdDbDatabase *pDb=0, bool doSubents=false)
 
virtual void subSetDatabaseDefaults (OdDbDatabase *pDb, bool doSubents)
 
virtual void applyPartialUndo (OdDbDwgFiler *pUndoFiler, OdRxClass *pClassObj)
 
void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
 
virtual void dxfOut (OdDbDxfFiler *pFiler) const
 
virtual OdResult dxfInFields_R12 (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual OdGiDrawabledrawable ()
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual void subList () const
 
virtual OdResult subGetClassID (void *pClsid) const
 
void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
void recordGraphicsModified (bool graphicsModified=true)
 
virtual void copyFrom (const OdRxObject *pSource)
 
ODRX_SEALED_VIRTUAL void list () const ODRX_SEALED
 
virtual OdResult getGeomExtents (OdGeExtents3d &extents) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void highlight (bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool isContentSnappable () const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPoints (OdGePoint3dArray &gripPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAt (const OdIntArray &indices, const OdGeVector3d &offset) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPoints (OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAt (const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getStretchPoints (OdGePoint3dArray &stretchPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveStretchPointsAt (const OdIntArray &indices, const OdGeVector3d &offset) ODRX_SEALED
 
virtual void dragStatus (const OdDb::DragStat status)
 
ODRX_SEALED_VIRTUAL void gripStatus (const OdDb::GripStat status) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool cloneMeForDragging () ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool hideMeForDragging () const ODRX_SEALED
 
virtual void saveAs (OdGiWorldDraw *pWd, OdDb::DwgVersion ver) const
 
ODRX_SEALED_VIRTUAL OdResult getCompoundObjectTransform (OdGeMatrix3d &xM) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult intersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult intersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const ODRX_SEALED
 
OdResult boundingBoxIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker, OdGsMarker otherGsMarker) const
 
OdResult boundingBoxIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker, OdGsMarker otherGsMarker) const
 
ODRX_SEALED_VIRTUAL OdResult getSubentPathsAtGsMarker (OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &xfm, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGsMarkersAtSubentPath (const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPointsAtSubentPath (const OdDbFullSubentPath &path, OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const OdUInt32 bitflags) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAtSubentPaths (const OdDbFullSubentPathArray &paths, const OdDbVoidPtrArray &gripAppData, const OdGeVector3d &offset, const OdUInt32 bitflags) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult deleteSubentPaths (const OdDbFullSubentPathArray &paths) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult addSubentPaths (const OdDbFullSubentPathArray &paths) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbEntityPtr subentPtr (const OdDbFullSubentPath &path) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult transformSubentPathsBy (const OdDbFullSubentPathArray &paths, const OdGeMatrix3d &xform) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getSubentClassId (const OdDbFullSubentPath &path, void *clsId) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getSubentPathGeomExtents (const OdDbFullSubentPath &path, OdGeExtents3d &extents) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void subentGripStatus (OdDb::GripStat status, const OdDbFullSubentPath &subentity) ODRX_SEALED
 
virtual OdGeMatrix3d getEcs () const
 
- Public Member Functions inherited from OdDbObject
 ODDB_DECLARE_MEMBERS (OdDbObject)
 
 ~OdDbObject ()
 
void addRef ()
 
void release ()
 
long numRefs () const
 
OdDbObjectId objectId () const
 
OdDbHandle getDbHandle () const
 
OdDbHandle handle () const
 
OdDbObjectId ownerId () const
 
virtual void setOwnerId (OdDbObjectId ownerId)
 
OdDbDatabasedatabase () const
 
void createExtensionDictionary ()
 
OdDbObjectId extensionDictionary () const
 
bool releaseExtensionDictionary ()
 
OdDbXrecordPtr createXrecord (const OdString &xrecordName, OdDb::DuplicateRecordCloning style=OdDb::kDrcIgnore)
 
void upgradeOpen ()
 
void downgradeOpen ()
 
void cancel ()
 
virtual OdResult subOpen (OdDb::OpenMode mode)
 
virtual void subClose ()
 
OdResult erase (bool eraseIt=true)
 
void handOverTo (OdDbObject *pNewObject, bool keepXData=true, bool keepExtDict=true)
 
void swapIdWith (OdDbObjectId otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void audit (OdDbAuditInfo *pAuditInfo)
 
void dwgIn (OdDbDwgFiler *pFiler)
 
void dwgOut (OdDbDwgFiler *pFiler) const
 
virtual OdDb::DuplicateRecordCloning mergeStyle () const
 
virtual OdResBufPtr xData (const OdString &regappName=OdString::kEmpty) const
 
virtual void setXData (const OdResBuf *pRb)
 
bool isEraseStatusToggled () const
 
bool isErased () const
 
bool isReadEnabled () const
 
bool isWriteEnabled () const
 
bool isNotifyEnabled () const
 
bool isModified () const
 
bool isModifiedXData () const
 
bool isModifiedGraphics () const
 
bool isNewObject () const
 
bool isNotifying () const
 
bool isUndoing () const
 
bool isReallyClosing () const
 
bool isDBRO () const
 
void assertReadEnabled () const
 
void assertWriteEnabled (bool autoUndo=true, bool recordModified=true)
 
void assertNotifyEnabled () const
 
void disableUndoRecording (bool disable)
 
bool isUndoRecordingDisabled () const
 
OdDbDwgFilerundoFiler ()
 
void addReactor (OdDbObjectReactor *pReactor) const
 
void removeReactor (OdDbObjectReactor *pReactor) const
 
virtual void addPersistentReactor (const OdDbObjectId &objId)
 
virtual void removePersistentReactor (const OdDbObjectId &objId)
 
bool hasPersistentReactor (const OdDbObjectId &objId) const
 
OdDbObjectIdArray getPersistentReactors () const
 
OdDbObjectReactorArray getTransientReactors () const
 
virtual void recvPropagateModify (const OdDbObject *pSubObj)
 
virtual void xmitPropagateModify () const
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr deepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr wblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
void setOdDbObjectIdsInFlux ()
 
bool isOdDbObjectIdsInFlux () const
 
virtual void copied (const OdDbObject *pObject, const OdDbObject *pNewObject)
 
virtual void erased (const OdDbObject *pObject, bool erasing=true)
 
virtual void goodbye (const OdDbObject *pObject)
 
virtual void openedForModify (const OdDbObject *pObject)
 
virtual void modified (const OdDbObject *pObject)
 
virtual void subObjModified (const OdDbObject *pObject, const OdDbObject *pSubObj)
 
virtual void modifyUndone (const OdDbObject *pObject)
 
virtual void modifiedXData (const OdDbObject *pObject)
 
virtual void unappended (const OdDbObject *pObject)
 
virtual void reappended (const OdDbObject *pObject)
 
bool isAProxy () const
 
virtual void objectClosed (const OdDbObjectId &objectId)
 
virtual void modifiedGraphics (const OdDbObject *pObject)
 
bool hasSaveVersionOverride () const
 
void setHasSaveVersionOverride (bool hasSaveVersionOverride)
 
virtual OdDb::DwgVersion getObjectSaveVersion (const OdDbFiler *pFiler, OdDb::MaintReleaseVer *pMaintVer=0) const
 
virtual OdDbObjectPtr decomposeForSave (OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
virtual OdDbObjectPtr decomposeForSave (OdDb::SaveType format, OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
void convertForSave (OdDb::DwgVersion ver)
 
virtual void composeForLoad (OdDb::SaveType format, OdDb::DwgVersion version, OdDbAuditInfo *pAuditInfo)
 
virtual bool isPersistent () const
 
virtual OdDbStub * id () const
 
ODRX_SEALED_VIRTUAL OdResult getClassID (void *pClsid) const ODRX_SEALED
 
void setGsNode (OdGsCache *pNode)
 
OdGsCachegsNode () const
 
void xDataTransformBy (const OdGeMatrix3d &xfm)
 
bool hasFields () const
 
OdDbObjectId getField (const OdString &fieldName) const
 
OdDbObjectPtr getField (const OdString &fieldName, OdDb::OpenMode mode) const
 
virtual OdDbObjectId setField (const OdString &fieldName, OdDbField *pField)
 
virtual OdResult removeField (OdDbObjectId fieldId)
 
virtual OdDbObjectId removeField (const OdString &fieldName)
 
OdDbObjectId getFieldDictionary () const
 
OdDbObjectPtr getFieldDictionary (OdDb::OpenMode mode) const
 
virtual OdRxClasssaveAsClass (OdRxClass *pClass) const
 
- Public Member Functions inherited from OdGiDrawable
 ODRX_DECLARE_MEMBERS (OdGiDrawable)
 
virtual DrawableType drawableType () const
 
ODRX_SEALED_VIRTUAL OdUInt32 setAttributes (OdGiDrawableTraits *pTraits) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool worldDraw (OdGiWorldDraw *pWd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void viewportDraw (OdGiViewportDraw *pVd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdUInt32 viewportDrawLogicalFlags (OdGiViewportDraw *pVd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdUInt32 regenSupportFlags () const ODRX_SEALED
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Member Functions inherited from OdDbEntity
virtual OdResult subGetTransformedCopy (const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const
 
virtual OdResult subGetCompoundObjectTransform (OdGeMatrix3d &xM) const
 
virtual bool subCloneMeForDragging ()
 
virtual bool subHideMeForDragging () const
 
virtual void subGripStatus (const OdDb::GripStat status)
 
virtual OdResult subGetOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const
 
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 subIsContentSnappable () const
 
virtual OdResult subGetGripPoints (OdGePoint3dArray &gripPoints) const
 
virtual OdResult subMoveGripPointsAt (const OdIntArray &indices, const OdGeVector3d &offset)
 
virtual OdResult subGetGripPoints (OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const
 
virtual OdResult subMoveGripPointsAt (const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags)
 
virtual OdResult subGetStretchPoints (OdGePoint3dArray &stretchPoints) const
 
virtual OdResult subMoveStretchPointsAt (const OdIntArray &indices, const OdGeVector3d &offset)
 
virtual OdResult subIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const
 
virtual OdResult subIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const
 
virtual void subHighlight (bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const
 
virtual OdDb::Visibility subVisibility () const
 
virtual OdResult subGetGeomExtents (OdGeExtents3d &extents) const
 
virtual OdResult subDeleteSubentPaths (const OdDbFullSubentPathArray &paths)
 
virtual OdResult subAddSubentPaths (const OdDbFullSubentPathArray &paths)
 
virtual OdResult subMoveGripPointsAtSubentPaths (const OdDbFullSubentPathArray &paths, const OdDbVoidPtrArray &gripAppData, const OdGeVector3d &offset, const OdUInt32 bitflags)
 
virtual OdResult subGetGripPointsAtSubentPath (const OdDbFullSubentPath &path, OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const OdUInt32 bitflags) const
 
virtual OdResult subGetSubentPathsAtGsMarker (OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &xfm, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0) const
 
virtual OdResult subGetGsMarkersAtSubentPath (const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const
 
virtual OdDbEntityPtr subSubentPtr (const OdDbFullSubentPath &path) const
 
virtual OdResult subTransformSubentPathsBy (const OdDbFullSubentPathArray &paths, const OdGeMatrix3d &xform)
 
virtual OdResult subGetSubentClassId (const OdDbFullSubentPath &path, void *clsId) const
 
virtual OdResult subGetSubentPathGeomExtents (const OdDbFullSubentPath &path, OdGeExtents3d &extents) const
 
virtual void subSubentGripStatus (OdDb::GripStat status, const OdDbFullSubentPath &subentity)
 
- Protected Member Functions inherited from OdDbObject
 OdDbObject ()
 
- Protected Member Functions inherited from OdGiDrawable
 OdGiDrawable ()
 
virtual OdUInt32 subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const
 
virtual OdUInt32 subRegenSupportFlags () const
 
- Protected Attributes inherited from OdDbObject
OdDbObjectImplm_pImpl
 

Detailed Description

This class is the abstract base class for Proxy entities derived from OdDbEntity in an OdDbDatabase instance.

See also
TD_Db

<group OdDb_Classes>

Remarks
Proxy entities hold surrogate data for custom Teigha objects when the parent application is not loaded, and allow Read-Only access to data contained therein.

Whenever the parent application is loaded, the Proxy entities revert to their custom objects.

Definition at line 52 of file DbProxyEntity.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kNoOperation 
kEraseAllowed 
kTransformAllowed 
kColorChangeAllowed 
kLayerChangeAllowed 
kLinetypeChangeAllowed 
kLinetypeScaleChangeAllowed 
kVisibilityChangeAllowed 
kCloningAllowed 
kLineWeightChangeAllowed 
kPlotStyleNameChangeAllowed 
kDisableProxyWarning 
kMaterialChangeAllowed 
kAllButCloningAllowed 
kAllAllowedBits 

Definition at line 94 of file DbProxyEntity.h.

◆ GraphicsMetafileType

Enumerator
kNoMetafile 
kBoundingBox 
kFullGraphics 

Definition at line 59 of file DbProxyEntity.h.

Constructor & Destructor Documentation

◆ OdDbProxyEntity()

OdDbProxyEntity::OdDbProxyEntity ( )

Member Function Documentation

◆ allButCloningAllowed()

bool OdDbProxyEntity::allButCloningAllowed ( ) const
inline

Returns true if and only if all but the subDeepClone() and subWblockClone() methods are allowed for this Proxy entity.

Remarks
The allowed methods are as follows

@untitled table erase() setColor() setColorIndex() setLayer() setLinetype() setLinetypeScale() setLineWeight() setMaterial() setPlotStyleName() setVisibility() transformBy()

Definition at line 205 of file DbProxyEntity.h.

◆ allOperationsAllowed()

bool OdDbProxyEntity::allOperationsAllowed ( ) const
inline

Returns true if and only if all methods are allowed for this Proxy entity.

Remarks
The allowed methods are as follows

@untitled table subDeepClone() erase() setColor() setColorIndex() setLayer() setLinetype() setLinetypeScale() setLineWeight() setMaterial() setPlotStyleName() setVisibility() transformBy() subWblockClone()

Definition at line 227 of file DbProxyEntity.h.

◆ applicationDescription()

virtual OdString OdDbProxyEntity::applicationDescription ( ) const
virtual

Returns the application description of the entity represented by this Proxy entity.

◆ cloningAllowed()

bool OdDbProxyEntity::cloningAllowed ( ) const
inline

Returns true if and only the subDeepClone() and subWblockClone() methods are allowed for this Proxy entity.

Definition at line 185 of file DbProxyEntity.h.

◆ colorChangeAllowed()

bool OdDbProxyEntity::colorChangeAllowed ( ) const
inline

Returns true if and only if the setColor() and setColorIndex() methods are allowed for this Proxy entity.

Definition at line 153 of file DbProxyEntity.h.

◆ dwgInFields()

virtual OdResult OdDbProxyEntity::dwgInFields ( OdDbDwgFiler pFiler)
virtual

Reads the .dwg file data of this object.

Parameters
pFiler[in] Filer object from which data are read.
Returns
Returns the filer status.

This function is called by dwgIn() to allow the object to read its data.

When overriding this function:

1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().

Reimplemented from OdDbEntity.

◆ dwgOutFields()

virtual void OdDbProxyEntity::dwgOutFields ( OdDbDwgFiler pFiler) const
virtual

Writes the .dwg file data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are written.
Remarks

This function is called by dwgIn() to allow the object to write its data.

When overriding this function:

1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.

Reimplemented from OdDbEntity.

◆ dxfIn()

OdResult OdDbProxyEntity::dxfIn ( OdDbDxfFiler pFiler)
virtual

Reads the DXF format data of this object from the specified filer.

Parameters
pFiler[in] Pointer to the filer from which the data are to be read.
Returns
Returns the filer status.

This function calls this object's dxfInFields(pFiler), then loads any Xdata associated with this object.

Reimplemented from OdDbEntity.

◆ dxfInFields()

virtual OdResult OdDbProxyEntity::dxfInFields ( OdDbDxfFiler pFiler)
virtual

Reads the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer from which data are read.
Returns
Returns the filer status.

This function is called by dxfIn() to allow the object to read its data.

When overriding this function:

1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().

Reimplemented from OdDbEntity.

◆ dxfOutFields()

virtual void OdDbProxyEntity::dxfOutFields ( OdDbDxfFiler pFiler) const
virtual

Writes the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are to be written.
Remarks

This function is called by dxfOut() to allow the object to write its data.

When overriding this function:

1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.

Reimplemented from OdDbEntity.

◆ eraseAllowed()

bool OdDbProxyEntity::eraseAllowed ( ) const
inline

Returns true if and only if the erase() method is allowed for this Proxy entity.

Definition at line 145 of file DbProxyEntity.h.

◆ getReferences()

virtual void OdDbProxyEntity::getReferences ( OdTypedIdsArray objectIds) const
virtual

Returns an array of the Object IDs referenced by this Proxy entity.

Parameters
objectIds[out] Receives an array of the reference Object IDs.

◆ graphicsMetafileType()

virtual OdDbProxyEntity::GraphicsMetafileType OdDbProxyEntity::graphicsMetafileType ( ) const
virtual

Returns the GraphicsMetafileType for this Proxy entity;

Remarks
graphicsMetafileType() returns one of the following

Value Description kNoMetafile 0 No bounding box or graphics (R13 drawing files only) kBoundingBox 1 Bounding Box kFullGraphics 2 Full Graphics

◆ isR13FormatProxy()

bool OdDbProxyEntity::isR13FormatProxy ( ) const
inline

Returns true if and only this Proxy entity is a R13 format Proxy entity.

Definition at line 232 of file DbProxyEntity.h.

◆ layerChangeAllowed()

bool OdDbProxyEntity::layerChangeAllowed ( ) const
inline

Returns true if and only if the setLayer() method is allowed for this Proxy entity.

Definition at line 157 of file DbProxyEntity.h.

◆ linetypeChangeAllowed()

bool OdDbProxyEntity::linetypeChangeAllowed ( ) const
inline

Returns true if and only if the setLinetype() method is allowed for this Proxy entity.

Definition at line 161 of file DbProxyEntity.h.

◆ linetypeScaleChangeAllowed()

bool OdDbProxyEntity::linetypeScaleChangeAllowed ( ) const
inline

Returns true if and only if the setLinetypeScale() method is allowed for this Proxy entity.

Definition at line 165 of file DbProxyEntity.h.

◆ lineWeightChangeAllowed()

bool OdDbProxyEntity::lineWeightChangeAllowed ( ) const
inline

Returns true if and only if the setLineWeight() method is allowed for this Proxy entity.

Definition at line 173 of file DbProxyEntity.h.

◆ materialChangeAllowed()

bool OdDbProxyEntity::materialChangeAllowed ( ) const
inline

Returns true if and only if the setMaterial() method is allowed for this Proxy entity.

Definition at line 181 of file DbProxyEntity.h.

◆ ODDB_DECLARE_MEMBERS()

OdDbProxyEntity::ODDB_DECLARE_MEMBERS ( OdDbProxyEntity  )

◆ originalClassName()

virtual OdString OdDbProxyEntity::originalClassName ( ) const
virtual

Returns the class name of the entity represented by this Proxy entity.

◆ originalDxfName()

virtual OdString OdDbProxyEntity::originalDxfName ( ) const
virtual

Returns the DXF name of the entity represented by this Proxy entity.

◆ plotStyleNameChangeAllowed()

bool OdDbProxyEntity::plotStyleNameChangeAllowed ( ) const
inline

Returns true if and only if the setPlotStyleName() method is allowed for this Proxy entity.

Definition at line 177 of file DbProxyEntity.h.

◆ proxyFlags()

virtual int OdDbProxyEntity::proxyFlags ( ) const
virtual

Returns the edit flags settings for the class associated with this Proxy entity.

Remarks
These bits determine the allowable operations on this Proxy entity.

proxyFlags() returns a combination of one or more of the following:

Value Methods enabled
kNoOperation 0x0 None kEraseAllowed 0x1 erase() kTransformAllowed 0x2 transformBy() kColorChangeAllowed 0x4 setColor(), setColorIndex() kLayerChangeAllowed 0x8 setLayer() kLinetypeChangeAllowed 0x10 setLinetype() kLinetypeScaleChangeAllowed 0x20 setLinetypeScale() kVisibilityChangeAllowed 0x40 setVisibility() kCloningAllowed 0x80 subDeepClone(), subWblockClone() kLineWeightChangeAllowed 0x100 setLineWeight() kPlotStyleNameChangeAllowed 0x200 setPlotStyleName() kDisableProxyWarning 0x400 kMaterialChangeAllowed 0x800 setMaterial() kAllButCloningAllowed 0xB7F All of the above but cloning kAllAllowedBits 0xBFF All of the above

◆ setColor()

virtual OdResult OdDbProxyEntity::setColor ( const OdCmColor color,
bool  doSubents = true 
)
virtual

Sets the properties for this entity taking into account the proxy flags.

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setColorId()

virtual OdResult OdDbProxyEntity::setColorId ( OdDbObjectId  colorId,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setColorIndex()

virtual OdResult OdDbProxyEntity::setColorIndex ( OdUInt16  colorIndex,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setLayer() [1/2]

virtual OdResult OdDbProxyEntity::setLayer ( const OdString layerName,
bool  doSubents = true,
bool  allowHiddenLayer = false 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setLayer() [2/2]

virtual OdResult OdDbProxyEntity::setLayer ( OdDbObjectId  layerId,
bool  doSubents = true,
bool  allowHiddenLayer = false 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setLinetype() [1/2]

virtual OdResult OdDbProxyEntity::setLinetype ( const OdString linetypeName,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setLinetype() [2/2]

virtual OdResult OdDbProxyEntity::setLinetype ( OdDbObjectId  linetypeID,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setLinetypeScale()

virtual OdResult OdDbProxyEntity::setLinetypeScale ( double  linetypeScale,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setLineWeight()

virtual OdResult OdDbProxyEntity::setLineWeight ( OdDb::LineWeight  lineWeight,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setMaterial() [1/2]

virtual OdResult OdDbProxyEntity::setMaterial ( const OdString materialName,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setMaterial() [2/2]

virtual OdResult OdDbProxyEntity::setMaterial ( OdDbObjectId  materialID,
bool  doSubents = true 
)
virtual

Sets the material to be referenced by this entity (DXF 347).

Parameters
materialID[in] Object ID of the material.
doSubents[in] If and only if true, applies the change to all sub-entities owned by this entity.
Returns
Returns eOk if successful, or an appropriate error code if not.

Reimplemented from OdDbEntity.

◆ setPlotStyleName() [1/2]

virtual OdResult OdDbProxyEntity::setPlotStyleName ( const OdString plotStyleName,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ setPlotStyleName() [2/2]

virtual OdResult OdDbProxyEntity::setPlotStyleName ( OdDb::PlotStyleNameType  plotStyleNameType,
OdDbObjectId  newId = OdDbObjectId::kNull,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ subDeepClone()

virtual OdDbObjectPtr OdDbProxyEntity::subDeepClone ( OdDbIdMapping ownerIdMap,
OdDbObject ,
bool  bPrimary 
) const
virtual

Reimplemented from OdDbEntity.

◆ subErase()

virtual OdResult OdDbProxyEntity::subErase ( bool  erasing)
virtual

Called as the first operation as this object is being erased or unerased.

Parameters
erasing[in] A copy of the erasing argument passed to erase().
Remarks
This function is notified just before the current object is to be erased, giving this function the ability to cancel the erase.

Returns eOk if and only if erase() is to continue.

When overriding this function:

1) If the OdDbObject's state is incorrect, return something other than eOk.

2) If the parent class's subErase() returns anything other than eOk, immediately return it.

3) If other actions are required before erase, do them.

4) Return eOk.

If you must make changes to this object's state, either make them after step 2, or roll them back if step 2 returns other than eOk.

The default implementation of this function does nothing but return eOk. This function can be overridden in custom classes.

Reimplemented from OdDbEntity.

◆ subExplode()

virtual OdResult OdDbProxyEntity::subExplode ( OdRxObjectPtrArray entitySet) const
virtual

Reimplemented from OdDbEntity.

◆ subSetVisibility()

virtual OdResult OdDbProxyEntity::subSetVisibility ( OdDb::Visibility  visibility,
bool  doSubents = true 
)
virtual

This function honors proxyFlags().

Reimplemented from OdDbEntity.

◆ subTransformBy()

virtual OdResult OdDbProxyEntity::subTransformBy ( const OdGeMatrix3d xfm)
virtual

Reimplemented from OdDbEntity.

◆ subWblockClone()

virtual OdDbObjectPtr OdDbProxyEntity::subWblockClone ( OdDbIdMapping ownerIdMap,
OdDbObject ,
bool  bPrimary 
) const
virtual

Reimplemented from OdDbEntity.

◆ transformAllowed()

bool OdDbProxyEntity::transformAllowed ( ) const
inline

Returns true if and only if the transformBy() method is allowed for this Proxy entity.

Definition at line 149 of file DbProxyEntity.h.

◆ visibilityChangeAllowed()

bool OdDbProxyEntity::visibilityChangeAllowed ( ) const
inline

Returns true if and only if the setVisibility() method is allowed for this Proxy entity.

Definition at line 169 of file DbProxyEntity.h.


The documentation for this class was generated from the following file: