CFx SDK Documentation
2022 SP0
|
#include <GiDrawable.h>
Public Types | |
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 } |
Protected Member Functions | |
OdGiDrawable () | |
virtual OdUInt32 | subSetAttributes (OdGiDrawableTraits *traits) const =0 |
virtual bool | subWorldDraw (OdGiWorldDraw *wd) const =0 |
virtual void | subViewportDraw (OdGiViewportDraw *vd) const =0 |
virtual OdUInt32 | subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const |
virtual OdUInt32 | subRegenSupportFlags () const |
Friends | |
class | OdGiDrawableOverrule |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is the base class for all graphical objects, both transient and persistent.
<group OdGi_Classes>
Definition at line 48 of file GiDrawable.h.
Definition at line 85 of file GiDrawable.h.
Definition at line 56 of file GiDrawable.h.
|
protected |
|
inlinevirtual |
Reimplemented in OdDbSun, OdDbLight, OdDbIBLBackground, OdDbSkyBackground, OdDbGroundPlaneBackground, OdDbImageBackground, OdDbGradientBackground, and OdDbSolidBackground.
Definition at line 102 of file GiDrawable.h.
|
virtual |
Returns a WCS bounding box that represents the extents of this entity.
extents | [out] Receives the WCS extents. |
Reimplemented in OdDbEntity, OdDbLSSymbolComponent, OdDbLayout, OdDbBlockTableRecord, and OdIfc::OdIfcProduct.
|
pure virtual |
Returns the OdGsCache associated with this object.
Implemented in OdGiDrawableImpl< T >, OdDbObject, OdIfc::OdIfcEntity, OdIfc::OdIfcCompound, and OdIfc::OdIfcCachedCompound.
|
pure virtual |
Returns the database ID of this object.
Implemented in OdGiDrawableImpl< T >, OdDbObject, and OdIfc::OdIfcCompound.
|
pure virtual |
Returns true if and only if this object is persistent (stored in a database).
Implemented in OdGiDrawableImpl< T >, OdDbObject, and OdIfc::OdIfcCompound.
OdGiDrawable::ODRX_DECLARE_MEMBERS | ( | OdGiDrawable | ) |
ODRX_SEALED_VIRTUAL OdUInt32 OdGiDrawable::regenSupportFlags | ( | ) | const |
Returns a set of flags that represents the multi-threaded rendering support of this entity.
ODRX_SEALED_VIRTUAL OdUInt32 OdGiDrawable::setAttributes | ( | OdGiDrawableTraits * | pTraits | ) | const |
Sets the vectorization attributes of this object, and returns its attribute flags.
pTraits | [in] Pointer to OdGiDrawableTraits object from and to which the attributes are to be set. |
Assigns the specified OdGsCache to this object.
pGsNode | [in] Pointer to the OdGsCache to be assigned. |
Implemented in OdDbObject, OdGiDrawableImpl< T >, OdIfc::OdIfcEntity, OdIfc::OdIfcCompound, and OdIfc::OdIfcCachedCompound.
|
protectedvirtual |
|
protectedpure virtual |
Implemented in CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMEntityReference, OdDbNavisworksReference, OdDbPdfReference, OdDbUnderlayReference, OdDAI::EntityInstance, OdIfc::OdIfcEntity, OdIfc::OdIfcCompound, OdIfc::OdIfcProduct, CFxEdInputTracker, OdDbMLeader, OdDbLeader, OdDbBlockTableRecord, OdDbVisualStyle, OdDbViewport, OdDbTextStyleTableRecord, OdDbSurface, OdDbSun, OdDbSubDMesh, OdDbRenderEnvironment, OdDbRapidRTRenderSettings, OdDbMentalRayRenderSettings, OdDbRenderSettings, OdDbRegion, OdDbPoint, OdDbObject, OdDbMaterial, OdDbLinetypeTableRecord, OdDbLight, OdDbLayout, OdDbLayerTableRecord, OdDbEntity, OdDbDimension, OdDbCamera, OdDbBody, OdDbBlockReference, OdDbIBLBackground, OdDbSkyBackground, OdDbGroundPlaneBackground, OdDbImageBackground, OdDbGradientBackground, OdDbSolidBackground, OdDbAttributeDefinition, OdDbAbstractViewTableRecord, OdDb3dSolid, and OdIfc::OdIfcProject.
|
protectedpure virtual |
Implemented in OdDbLayout, CFxBIMSectionEntity, CFxBIMSection, CFxBIMEntityReference, OdDAI::EntityInstance, OdIfc::OdIfcCompound, OdDbHatch, OdDbGeoPositionMarker, OdDbViewRepBlockReference, OdDbRasterImage, OdDbPolyline, OdDbOle2Frame, OdDbLeader, OdDbFcf, OdDbViewRepImage, OdDbUnderlayReference, OdDbTrace, OdDbText, OdDbSolid, OdDbSection, OdDbPointCloudEx, OdDbPointCloud, OdDbPoint, OdDbObject, OdDbMText, OdDbLight, OdDbLayerTableRecord, OdDbFace, OdDbEntity, OdDbDimension, OdDbCamera, OdDbBody, OdDbBlockReference, OdDbAttributeDefinition, OdDbAttribute, OdDb3dSolid, OdDbMLeader, and OdGiDrawableImpl< T >.
|
protectedvirtual |
|
protectedpure virtual |
Implemented in CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMEntityReference, OdDAI::EntityInstance, OdIfc::OdIfcEntity, OdIfc::OdIfcCompound, OdIfc::OdIfcProduct, CFxEdInputTracker, OdDbViewSymbol, OdDbSectionSymbol, OdDbDetailSymbol, OdDbGeoPositionMarker, OdDbViewRepBlockReference, OdDbWipeout, OdDbRasterImage, OdDbPolyline, OdDbOle2Frame, OdDbMLeader, OdDbLeader, OdDbFcf, OdDbBlockTableRecord, OdDbArcAlignedText, OdIfc::OdIfcProject, RText, OdDbViewRepImage, OdDbViewBorder, OdDbXline, OdDbViewport, OdDbNavisworksReference, OdDbUnderlayReference, OdDbTrace, OdDbText, OdDbTable, OdDbSurface, OdDbSubDMesh, OdDbSpline, OdDbSolid, OdDbShape, OdDbSection, OdDbRegion, OdDbRay, OdDbPolygonMesh, OdDbPolyFaceMesh, OdDbPointCloudEx, OdDbPointCloud, OdDbPoint, OdDbObject, OdDbMText, OdDbMPolygon, OdDbMline, OdDbMInsertBlock, OdDbLine, OdDbLight, OdDbLayout, OdDbLayerTableRecord, OdDbHatch, OdDbFace, OdDbEntity, OdDbEllipse, OdDbDimension, OdDbCircle, OdDbCamera, OdDbBody, OdDbBlockReference, OdDbAttributeDefinition, OdDbAttribute, OdDbArc, OdDb3dSolid, OdDb3dPolyline, and OdDb2dPolyline.
ODRX_SEALED_VIRTUAL void OdGiDrawable::viewportDraw | ( | OdGiViewportDraw * | pVd | ) | const |
Creates a viewport-dependent geometric representation of this object.
This function is called once per viewport.
The default implementation of this function does nothing. This function can be overridden in custom classes.
pVd | [in] Pointer to the OdGiViewportDraw interface. |
ODRX_SEALED_VIRTUAL OdUInt32 OdGiDrawable::viewportDrawLogicalFlags | ( | OdGiViewportDraw * | pVd | ) | const |
Returns the setAttributes flags for the current viewportDraw.
pVd | [in] Pointer to OdGiViewportDraw interface. |
ODRX_SEALED_VIRTUAL bool OdGiDrawable::worldDraw | ( | OdGiWorldDraw * | pWd | ) | const |
Creates a viewport-independent geometric representation of this object.
The 3D GS will call this function at least once but may cache subsequent display updates.
Use OdGsModel::onModified() to ensure that the 3D GS will call worldDraw() for next display update.
The default implementation does nothing but return true. This function can be overridden in custom classes.
pWd | [in] Pointer to the OdGiWorldDraw interface. |
|
friend |
Definition at line 221 of file GiDrawable.h.