CFx SDK Documentation  2022 SP0
Public Member Functions | Static Public Member Functions | List of all members
OdRxObject Class Referenceabstract

#include <RxObject.h>

Inheritance diagram for OdRxObject:
OdStaticRxObject< OdRxObject > CFx3dSolidShape CFx3dSolidShapePE CFxAppInfo CFxDbHatchPE CFxDocument CFxDocumentIterator CFxDocumentManagerReactor CFxGeometryClipper CFxGripMenu CFxInputContextReactor CFxInputPointManager CFxObjectPE CFxSelectionSetReactor CFxStdsError CFxStdsFix CFxStdsPlugins CFxViewBorderPE CFxViewRepBlockReferencePE CFxViewRepPE CloudGfxCache::LayoutData CloudGfxCache::VectorizerCtx GfxParser OD::FilePx OD::RxFS OD::TFSQL OD::TFSQL::SQLReadCallback OD::TFSQL::Statement OD::TFSQL::Statement::Params OD::TFSQL::Statement::Row OdAbstractViewPE OdAcisAuditPE OdApLongTransactionManager OdApLongTransactionReactor OdApcAtom OdApcDataReadWriteDispatcher OdApcEvent OdApcGateway OdApcLoopedGateway OdApcObjectPool OdApcQueue OdApcThread OdAveMaterial OdAveScene OdBaseTextIterator OdBcf::OdBcfArchive OdBcf::OdBcfArchiveFolder OdBcf::OdBcfDataAccessor OdBcf::OdBcfElement OdBcf::OdBcfSession OdBcf::OdBcfTimeStamp OdBcf::OdBcfTopicFolder OdByteData OdCryptoServices OdDAI::DictionaryInstance OdDAI::OdHeaderSection OdDAI::SessionInstance OdDbAbstractPlotData OdDbAnnotativeObjectPE OdDbBaseAnnotationScalePE OdDbBaseBlockPE OdDbBaseBlockRefPE OdDbBaseDatabasePE OdDbBaseHatchPE OdDbBaseHostAppServices OdDbBaseLayerPE OdDbBaseLayoutPE OdDbBaseLongTransactionPE OdDbBaseMaterialPE OdDbBaseSortEntsPE OdDbBaseVisualStylePE OdDbBlockIterator OdDbBlockParamValueSet OdDbBlockRepresentationContext OdDbCompoundObjectId OdDbConstraintsInterfacePE OdDbCrypt OdDbCurvePE OdDbDataCell OdDbDataColumn OdDbDatabaseCollection OdDbDatabaseReactor OdDbDatabaseSummaryInfo OdDbDgnLSModifiersPE OdDbDgnLSPE OdDbDimensionRecomputePE OdDbDynBlockReferenceProperty OdDbEmbeddedASMEntPropsPE OdDbEntityHyperlinkPE OdDbEntityIntersectionPE OdDbEntityWithGrDataPE OdDbEvalContext OdDbEvalContextIterator OdDbEvalWatcherPE OdDbFiler OdDbFlipDimensionPE OdDbGeoCoordinateSystem OdDbGeoCoordinateSystemCategory OdDbGeoCoordinateSystemCategoryPE OdDbGeoCoordinateSystemPE OdDbGeoCoordinateSystemTransformer OdDbGeoCoordinateSystemTransformerPE OdDbGeoDataPE OdDbGraphNode OdDbGripPointsPE OdDbGroupIterator OdDbHatchPE OdDbHyperlinkCollection OdDbIdBufferIterator OdDbIdMapping OdDbIdMappingIter OdDbJoinEntityPE OdDbLayerStateManager OdDbLayerStateManagerReactor OdDbLayoutManager OdDbLayoutManagerReactor OdDbLayoutPaperPE OdDbLongTransWorkSetIterator OdDbMLeaderRecomputePE OdDbMatchProperties OdDbObjectContext OdDbObjectContextCollection OdDbObjectContextCollectionIterator OdDbObjectContextInterface OdDbObjectContextManager OdDbObjectIterator OdDbObjectReactor OdDbPageController OdDbPaperOrientationPE OdDbPlotSettingsValidator OdDbPlotSettingsValidatorPE OdDbPointCloudExHostPE OdDbPointCloudExItem OdDbPointCloudHostPE OdDbPointCloudItem OdDbPointRef OdDbProxyExt OdDbSectionManagerIterator OdDbSectionablePE OdDbSelectionFilter OdDbSelectionMethod OdDbSetPlotSettingsPE OdDbShModelerHistory OdDbSplinePE OdDbSymbolTableIterator OdDbTransactionReactor OdDbUnderlayFile OdDbUnderlayHostPE OdDbUnderlayItem OdDbUnderlayItemPE OdDbUnderlayItemPE2 OdDbUndoController OdDbUndoControllerRecord OdDbXrecordIterator OdEdCommand OdEdCommandContext OdEdCommandStack OdEdCommandStackReactor OdEdFunctionIO OdEdInputTracker OdEdLispEngine OdEdLispEngineReactor OdEdUserIO OdErrorContext OdFdFieldEngine OdFdFieldEnginePE OdFdFieldEvaluator OdFdFieldEvaluatorLoader OdFdFieldReactor OdFdFieldResult OdFileDependencyInfo OdFileDependencyManager OdFont OdFontServices OdGiCommonDraw OdGiContext OdGiContextualColors OdGiConveyorNode OdGiDisplayStyle OdGiDrawable OdGiDrawableTraits OdGiEdgeStyle OdGiFaceStyle OdGiFill OdGiGeometry OdGiGeometryMetafile OdGiGeometryRecorderPlayer OdGiHlrResults OdGiMapperItem OdGiMapperItemEntry OdGiMaterialItem OdGiMaterialTexture OdGiMaterialTextureData OdGiMaterialTextureEntry OdGiMaterialTextureLoadPE OdGiMaterialTextureLoaderExt OdGiMaterialTextureManager OdGiMetafile OdGiModelToViewProc OdGiNoiseGenerator OdGiPolyline OdGiProceduralGenerator OdGiProceduralGeneratorPE OdGiRasterImage OdGiRasterImageLoader OdGiRasterImageLoaderPE OdGiSectionGeometryManager OdGiSectionGeometryMap OdGiSectionGeometryOutput OdGiSelfGdiDrawable OdGiSelfGiDrawablePE OdGiSpatialFilter OdGiToneOperatorParameters OdGiTransientManager OdGiTransientManagerPE OdGiVariant OdGiViewport OdGiVisualStyle OdGsBackground OdGsBaseModelLocalIds OdGsBitMap OdGsCache OdGsContainerNode::VpData OdGsCullingVolume OdGsDevice OdGsEntityNode::Metafile OdGsEntityNode::MetafileEx::OdGsDeviceSelfReference OdGsFiler OdGsFilerCreatorPE OdGsFilerDbHashPE OdGsFilerDbLinker OdGsFiler_SubstitutorImpl OdGsHlBranchReactor OdGsLight OdGsMaterialCache OdGsModel OdGsPalette OdGsProperties OdGsReactor OdGsUpdateManager OdGsView OdHatchPatternManager OdIfc::OdIfcFile OdIfc::OdIfcModelerGeometry OdIfcClassesDictionary OdLyLayerFilter OdLyLayerFilterManager OdModelerGeometry OdModelerGeometryCreator OdModelerGeometryCreatorPE OdModelerTools OdOleStorage OdPdfImport OdPdfPublish::OdFile OdPdfPublish::OdObject OdPdfPublish::OdTableCreator OdPsPlotStyle OdPsPlotStyleTable OdPwdCache OdPwdIterator OdRasterConvertPE OdResBuf OdRxAttribute OdRxBoxedValue OdRxClass OdRxDLinkerReactor OdRxDictionary OdRxDynamicLinker OdRxEvent OdRxEventReactor OdRxFacetProvider OdRxIterator OdRxMember OdRxMemberOverrule OdRxMemberQueryContext OdRxModule OdRxOverrule OdRxPropDesc OdRxProtocolReactor OdRxProtocolReactorIterator OdRxProtocolReactorList OdRxProtocolReactorListIterator OdRxProtocolReactorManager OdRxProtocolReactorManagerFactory OdRxResourceLoader OdRxSketchManager OdRxSketchObject OdRxSystemServices OdRxValueIterator OdRxVariant OdSelectionSet OdSelectionSetIterator OdSetVarInfo OdSiSpatialIndex OdStreamBuf OdSysVarInfo OdTfAttribute OdTfAttributesContainer OdTfIOFactory OdTfObjectPE OdTfObjectReactor OdTfPropertiesContainer OdTfProperty OdTfReader OdTfSchemaManageriInterface OdTfStorage OdTfWriter OdTrGL2ExtensionsRegistry OdTrGL2HlBranchClient OdTrGL2LocalContext OdTrGL2LocalRenditionClient OdTrGL2LocalTransient OdTrVectorizerModuleHost OdTrVectorizerPropertyResolver OdTrVisGeometryDraw OdTrVisIdMap OdTrVisIdMap::ResourceDataAccessor OdTrVisMetafileBuilder OdTrVisRendition OdTrVisSharingProviderClient OdTrVisTexture OdUnitsFormatter ScanItemIterator TfObjectChangesCalculationInterface dst::OdSmEnum< T > dst::OdSmEnumCustomPropertyValue dst::OdSmEvents dst::OdSmFiler dst::OdSmObjectId dst::OdSmPersist dst::OdSmSheetSetMgr

Public Member Functions

 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

<group OdRx_Classes>

This class is the base class for all OdRxObject objects that require Runtime Type Identification.

See also
<link smart_pointers_overview.html, Overview of Smart Pointer Classes>

<link rtti.html, RTTI Technology>

<link rx_object_compare.html, Comparing Rx-Objects>

Definition at line 563 of file RxObject.h.

Constructor & Destructor Documentation

◆ OdRxObject()

OdRxObject::OdRxObject ( )
inline

Default constructor for this class.

Definition at line 590 of file RxObject.h.

◆ ~OdRxObject()

virtual OdRxObject::~OdRxObject ( )
virtual

The virtual destructor for this class.

Member Function Documentation

◆ addRef()

virtual void OdRxObject::addRef ( )
pure virtual

◆ cast()

static OdRxObjectPtr OdRxObject::cast ( const OdRxObject pointer)
inlinestatic

Casts the specified raw pointer to the smart pointer.

Parameters
pointer[in] Raw pointer to be cast.

Definition at line 640 of file RxObject.h.

◆ clone()

virtual OdRxObjectPtr OdRxObject::clone ( ) const
virtual

◆ comparedTo()

virtual OdRx::Ordering OdRxObject::comparedTo ( const OdRxObject pOther) const
virtual

Compares another object to this one in a some meaning.

Parameters
pOther[in] Raw pointer to the object to be compared.
Remarks
This method returns one of the following:

Value Description
kLessThan -1 This object < Other Object.
kEqual 0 This object = Other Object.
kGreaterThan 1 This object > Other Object.
kNotOrderable 2 This class is not orderable.

Remarks
The default implementation of this method returns kNotOrderable.
See also
<link rx_object_compare_moreless.html, Comparing the Value of Rx Objects>
<link rx_object_compare.html, Comparing Rx-Objects>

Reimplemented in OdRxBoxedValue.

◆ copyFrom()

virtual void OdRxObject::copyFrom ( const OdRxObject pSource)
virtual

details Copies the contents of the specified object into this object.

Parameters
pSource[in] Pointer to the source object.
Remarks
The default implementation of this function does nothing but throw an eNotApplicable exception.

Throws: eNotApplicable Exception

Reimplemented in OdDbMLeaderObjectContextData, OdDbLeaderObjectContextData, OdDbHatchViewContextData, OdDbHatchScaleContextData, OdDbFcfObjectContextData, OdDbBlockReference, OdPsPlotStyleTable, CFxBIMMaterial, OdDbMLeader, OdFileDependencyInfo, OdGiVariant, OdGiRasterImageAlphaChannelAdder, OdGiMonochromaticRasterTransformer, OdGiGrayscaleRasterTransformer, OdGiInversionRasterTransformer, OdGiLeftToRightRasterTransformer, OdGiUpsideDownRasterTransformer, OdGiBitonalRasterTransformer, OdGiRasterImageWrapper, OdGiRasterImageHolder, OdGiRasterImageBGRA32Copy, OdGiRasterImageBGRA32Holder, OdGiRasterImageBGRA32, OdGiRasterImageDesc, OdGiGenericTexture, OdGiMarbleTexture, OdGiWoodTexture, OdGiRasterImageTexture, OdGiImageFileTexture, OdGiHatchPattern, OdGiFill, OdDbViewportTableRecord, OdDbTable, OdDbSymbolTableRecord, OdDbPlotSettings, OdDbRadialDimensionLargeObjectContextData, OdDbRadialDimensionObjectContextData, OdDbOrdinateDimensionObjectContextData, OdDbDiametricDimensionObjectContextData, OdDbAngularDimensionObjectContextData, OdDbAlignedDimensionObjectContextData, OdDbMTextObjectContextData, OdDbObject, OdDbLinkedTableData, OdDbEntity, OdDbAnnotationScale, OdDbAbstractViewTableRecord, OdResBuf, OdDbEvalGraph, OdDbBlockTableRecord, OdRxBoxedValue, OdIfc::OdIfcModelerGeometry, OdDbDimensionObjectContextData, OdDbBlkRefObjectContextData, OdDbMTextAttributeObjectContextData, and OdDbTextObjectContextData.

◆ desc()

static OdRxClass* OdRxObject::desc ( )
static

Returns the raw pointer to the class describing instance statically associated with this object as the OdRxClass object.

Remarks
This function is for use only when the class type of this object is known. If the class type of this object is unknown, use isA() method instead.
See also
<link rtti_sample_identifying.html, Example of Identifying Classes>
<link rtti_class_functionality.html, Functionality of RTTI>

◆ isA()

virtual OdRxClass* OdRxObject::isA ( ) const
virtual

Returns the raw pointer to the class describing instance dynamically associated with this object as the OdRxClass object.

Remarks
This function is for use only when the class type of this object is unknown. If the class type of this object is known, use desc() method instead.
See also
<link rtti_sample_identifying.html, Example of Identifying Classes>
<link rtti_class_functionality.html, Functionality of RTTI>

Reimplemented in CFxEditorReactor, and OdGiBaseVectorizer.

◆ isEqualTo()

virtual bool OdRxObject::isEqualTo ( const OdRxObject pOther) const
virtual

Returns true if and only if the specified object is equal to this one in a some meaning.

Parameters
pOther[in] Raw pointer to the object to be compared.
See also
<link rx_object_compare_equivalence.html, Comparing the Equivalence of Rx Objects>
<link rx_object_compare.html, Comparing Rx-Objects>

Reimplemented in OdRxBoxedValue.

◆ isKindOf()

bool OdRxObject::isKindOf ( const OdRxClass pClass) const
inline

Checks whether the object belongs to the specified class and returns true if and only if this object is an instance of the specified class or a subclass of the specified class.

Parameters
pClass[in] Raw pointer to the class describing instance to be checked.
See also
<link rtti_sample_belonging.html, Example of Belonging to an Instance of a Class>
<link rtti_class_belonging.html, Belonging to an Instance of a Class>

Definition at line 728 of file RxObject.h.

◆ numRefs()

virtual long OdRxObject::numRefs ( ) const
virtual

Returns the value of the reference counter, that is, the number of references to an instance of this class.

Remarks
This method has the default implementation that returns 1. You shloud redefine it in the derived class.
See also
<link smart_pointers_overview.html, Overview of Smart Pointer Classes>

Reimplemented in OdRxObjectImpl< OdRxDictionaryIterator >, and OdDbObject.

◆ ODRX_HEAP_OPERATORS()

OdRxObject::ODRX_HEAP_OPERATORS ( )

Description: Protects derived OdRxObject objects from direct use of new and delete operators.

◆ queryX()

virtual OdRxObject* OdRxObject::queryX ( const OdRxClass pClass) const
virtual

Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class.

Parameters
pClass[in] Raw pointer to the class describing instance to which the object must be converted.
Remarks
If the object cannot be converted, the method returns a Null. The program must release this object, if the returned pointer is not Null.
See also
<link rtti_sample_belonging.html, Example of Belonging to an Instance of a Class>
<link rtti_class_belonging.html, Belonging to an Instance of a Class>

Reimplemented in CFxEditorReactor, and OdGiBaseVectorizer.

◆ release()

virtual void OdRxObject::release ( )
pure virtual

◆ x()

virtual OdRxObject* OdRxObject::x ( const OdRxClass pClass) const
virtual

Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class, or throws an exception if it cannot.

Parameters
pClass[in] Raw pointer to the class describing instance to which the object must be converted.
Remarks
This method generates the eNotThatKindOfClass exception when the object can be not converted to the specified class. This method generates the eInvalidInput exception when the argument pClass is Null. This method uses the queryX() method.
See also
<link rtti_sample_belonging.html, Example of Belonging to an Instance of a Class>
<link rtti_class_belonging.html, Belonging to an Instance of a Class>

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