CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdDbSubentId Class Reference

#include <DbBaseSubentId.h>

Public Member Functions

 OdDbSubentId ()
 
 OdDbSubentId (OdDb::SubentType type, OdGsMarker index)
 
 OdDbSubentId (OdRxClass *clazz, OdGsMarker index)
 
bool operator== (const OdDbSubentId &subentId) const
 
bool operator!= (const OdDbSubentId &subentId) const
 
OdDb::SubentType type () const
 
void setType (OdDb::SubentType type)
 
OdGsMarker index () const
 
void setIndex (OdGsMarker index)
 
OdRxClasstypeClass () const
 
void setTypeClass (OdRxClass *clazz)
 

Detailed Description

This class implements Subentity Id objects for OdDbEntity objects in an OdDbDatabase instance.

Remarks
A given OdDbEntity object may consist of any number of graphical subentities.

Subentity type must be one of the following:

Value OdDb::kNullSubentType 0 OdDb::kFaceSubentType 1 OdDb::kEdgeSubentType 2 OdDb::kVertexSubentType 3
OdDb::kMlineSubentCache 4
OdDb::kClassSubentType 5 OdDb::kAxisSubentType 6

Each SubentityId object is created from a Subentity type and an index.

Corresponding C++ library: TD_DbRoot

<group OdDbRoot_Classes>

Definition at line 79 of file DbBaseSubentId.h.

Constructor & Destructor Documentation

◆ OdDbSubentId() [1/3]

OdDbSubentId::OdDbSubentId ( )
inline

Default constructor for objects of the OdDbSubentId class. Constructs a subentity of the kNullSubentType type and index equal to 0.

Definition at line 87 of file DbBaseSubentId.h.

◆ OdDbSubentId() [2/3]

OdDbSubentId::OdDbSubentId ( OdDb::SubentType type,
OdGsMarker index )
inline

Constructor for objects of the OdDbSubentId class.

Parameters
type[in] Subentity type.
index[in] Subentity index.

Definition at line 98 of file DbBaseSubentId.h.

◆ OdDbSubentId() [3/3]

OdDbSubentId::OdDbSubentId ( OdRxClass * clazz,
OdGsMarker index )
inline

Constructor for objects of the OdDbSubentId class.

Parameters
clazz[in] Subentity RX class.
index[in] Subentity index.

Definition at line 109 of file DbBaseSubentId.h.

Member Function Documentation

◆ index()

OdGsMarker OdDbSubentId::index ( ) const
inline

Returns the index of this SubentId object.

Returns
Index of this SubentId object.

Definition at line 196 of file DbBaseSubentId.h.

◆ operator!=()

bool OdDbSubentId::operator!= ( const OdDbSubentId & subentId) const
inline

Comparison operator "not equal". This operator compares this object with another object of the OdDbSubentId type.

Parameters
subentId[in] Object to be compared with this object.
Returns
True if the objects are not equal to each other; false otherwise.

Definition at line 136 of file DbBaseSubentId.h.

◆ operator==()

bool OdDbSubentId::operator== ( const OdDbSubentId & subentId) const
inline

Comparison operator. This operator compares this object with another object of the OdDbSubentId type.

Parameters
subentId[in] Object to be compared with this object.
Returns
True if the objects are equal to each other; false otherwise.

Definition at line 123 of file DbBaseSubentId.h.

◆ setIndex()

void OdDbSubentId::setIndex ( OdGsMarker index)
inline

Sets the index of this SubentId object.

Parameters
index[in] Index.

Definition at line 206 of file DbBaseSubentId.h.

◆ setType()

void OdDbSubentId::setType ( OdDb::SubentType type)
inline

Sets the type of this SubentId object.

Parameters
type[in] Subentity type.
Remarks
Subentity type must be one of the following:

Value OdDb::kNullSubentType 0 OdDb::kFaceSubentType 1 OdDb::kEdgeSubentType 2 OdDb::kVertexSubentType 3
OdDb::kMlineSubentCache 4
OdDb::kClassSubentType 5
OdDb::kAxisSubentType 6

Definition at line 184 of file DbBaseSubentId.h.

◆ setTypeClass()

void OdDbSubentId::setTypeClass ( OdRxClass * clazz)
inline

Sets the RX class of this SubentId object.

Parameters
clazz[in] Subentity RX class.

Definition at line 226 of file DbBaseSubentId.h.

◆ type()

OdDb::SubentType OdDbSubentId::type ( ) const
inline

Returns the type of this SubentId object.

Returns
Type of this SubentId object.
Remarks
The return value can be one of the following:

Value OdDb::kNullSubentType 0 OdDb::kFaceSubentType 1 OdDb::kEdgeSubentType 2 OdDb::kVertexSubentType 3
OdDb::kMlineSubentCache 4
OdDb::kClassSubentType 5
OdDb::kAxisSubentType 6

Definition at line 160 of file DbBaseSubentId.h.

◆ typeClass()

OdRxClass * OdDbSubentId::typeClass ( ) const
inline

Returns the RX class of this SubentId object.

Returns
RX class of this SubentId object.

Definition at line 216 of file DbBaseSubentId.h.


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