CFx SDK Documentation 2024 SP0
|
#include <BrEntity.h>
Static Public Attributes | |
static ODBR_TOOLKIT_EXPORT_STATIC double | dUnspecified |
Protected Member Functions | |
OdBrEntity () | |
Protected Attributes | |
void * | m_pImp |
OdSharedPtr< OdDbStubPtrArray > | m_pFSubentPath |
bool | m_bIsValidate |
Friends | |
class | OdBrEntityInternals |
This class is the interface base class for BREP topology objects.
Corresponding C++ library: TD_Br
<group OdBr_Classes>
Definition at line 54 of file BrEntity.h.
|
virtual |
Destructor for objects of the OdBrEntity class.
|
protected |
bool OdBrEntity::checkEntity | ( | ) | const |
Validates the element.
OdBrErrorStatus OdBrEntity::getBoundBlock | ( | OdGeBoundBlock3d & | block | ) | const |
Calculates the entity geometric bounds.
block | [out] Model space bounding box as OdGeBoundBlock3d. |
bool OdBrEntity::getBrep | ( | OdBrBrep & | brep | ) | const |
Returns the owner of this entity object.
brep | [out] Owner of this entity object. |
OdUInt32 OdBrEntity::getFlags | ( | ) | const |
OdBrErrorStatus OdBrEntity::getGsMarker | ( | OdGsMarker & | marker | ) | const |
Gets the Gs marker.
marker | [out] Gs marker value. |
OdBrErrorStatus OdBrEntity::getLineContainment | ( | const OdGeLinearEnt3d & | line, |
const OdUInt32 & | iNumHitsWanted, | ||
OdUInt32 & | iNumHitsFound, | ||
OdBrHit *& | brHit | ||
) | const |
Gets the number of line containment hits and the array of contexted hit objects.
line | [in] Line to get containment of. |
iNumHitsWanted | [in] Expected number of containment hits. |
iNumHitsFound | [out] Actual number of containment hits found. |
brHit | [out] Array of contexted hit objects. |
OdBrErrorStatus OdBrEntity::getMassProps | ( | OdBrMassProps & | massProps, |
const double & | dDensity = dUnspecified , |
||
const double & | dTolRequired = dUnspecified , |
||
double & | dTolAchieved = dUnspecified |
||
) | const |
Provides the mass properties for the entity. The mass properties are returned as an instance of OdBrMassProps structure. The density is used for the mass properties scaling and is the analogue of the physical value of the density of materials. The mass properties are applicable for those entities, that represent topology objects having the volume property.
massProps | [out] Mass properties of the entity. |
dDensity | [in] Density for calculating mass properties of the entity. |
dTolRequired | [in] Tolerance required for the result of the calculation. |
dTolAchieved | [out] Tolerance achieved in the calculation. |
OdBrErrorStatus OdBrEntity::getPerimeterLength | ( | double & | dLength, |
const double & | dTolRequired = dUnspecified , |
||
double & | dTolAchieved = dUnspecified |
||
) | const |
Provides the perimeter length of the entity as a double value. The perimeter length property is applicable for most entities, that represent plane figures and some 3D figures.
dLength | [out] Perimeter length of the entity. |
dTolRequired | [in] Tolerance required for the result of the calculation. |
dTolAchieved | [out] Tolerance achieved in the calculation. |
OdBrErrorStatus OdBrEntity::getPointContainment | ( | const OdGePoint3d & | point, |
OdGe::PointContainment & | containment, | ||
OdBrEntity *& | brEntContainer | ||
) | const |
Gets the point containment and the corresponding container entity.
point | [in] Point to get containment of. |
containment | [out] Containment type. Can be one of the following: |
brEntContainer | [out] Container entity. Can be one of the following types: OdBrBrep OdBrFace OdBrEdge OdBrVertex |
OdBrErrorStatus OdBrEntity::getSubentPath | ( | OdDbBaseFullSubentPath & | subPath | ) | const |
Returns the FullSubentPath of this entity object.
subPath | [out] Full subentity path of this entity object. |
OdBrErrorStatus OdBrEntity::getSurfaceArea | ( | double & | dArea, |
const double & | dTolRequired = dUnspecified , |
||
double & | dTolAchieved = dUnspecified |
||
) | const |
Provides the surface area of the entity as a double value. The surface area property is applicable for most entities, that represent volumetric figures.
dArea | [out] Surface area of the entity. |
dTolRequired | [in] Tolerance required for the result of the calculation. |
dTolAchieved | [out] Tolerance achieved in the calculation. |
OdUInt64 OdBrEntity::getUniqueId | ( | ) | const |
Returns the unique ID of the object.
OdBrErrorStatus OdBrEntity::getValidationLevel | ( | BrValidationLevel & | level | ) | const |
Gets the validation level.
level | [out] Validation level value. Can be one of the following: odbrFullValidation if the object is validated. odbrNoValidation if the object is not validated. |
OdBrErrorStatus OdBrEntity::getVolume | ( | double & | dVolume, |
const double & | dTolRequired = dUnspecified , |
||
double & | dTolAchieved = dUnspecified |
||
) | const |
Provides the volume of the entity as a double value. The volume property is applicable for most entities, that represent volumetric figures.
dVolume | [out] Volume of the entity. |
dTolRequired | [in] Tolerance required for the result of the calculation. |
dTolAchieved | [out] Tolerance achieved in the calculation. |
bool OdBrEntity::isEqualTo | ( | const OdBrEntity * | pOtherEntity | ) | const |
Returns true if and only if the specified entity object is equivalent to this entity object.
pOtherEntity | [in] Pointer to any OdBrEntity object. |
bool OdBrEntity::isNull | ( | ) | const |
Returns true if and only if there is no ACIS model associated with this entity object.
OdBrErrorStatus OdBrEntity::setSubentPath | ( | OdBrBrep & | brep, |
OdDbBaseFullSubentPath & | subpath | ||
) |
This method is for internal use only. Use OdDbBody::setSubentPath() instead.
brep | [in] Owner. |
subpath | [in] Full subentity path. |
OdBrErrorStatus OdBrEntity::setValidationLevel | ( | const BrValidationLevel & | level | ) |
Sets the validation level.
level | [in] Validation level value. Can be one of the following: odbrFullValidation to set the object as validated. odbrNoValidation to set the object as not validated. |
|
friend |
Definition at line 393 of file BrEntity.h.
|
static |
Definition at line 372 of file BrEntity.h.
|
protected |
Definition at line 377 of file BrEntity.h.
|
protected |
Definition at line 376 of file BrEntity.h.
|
protected |
Definition at line 375 of file BrEntity.h.