Defines a component represented by a dimensional tolerance. More...
#include <cadex/PMI/SemanticComponent.hxx>
Public Types | |
enum class | DimensionType { Undefined , CurveLength , Diameter , SphericalDiameter , Radius , SphericalRadius , ToroidalMinorDiameter , ToroidalMajorDiameter , ToroidalMinorRadius , ToroidalMajorRadius , ToroidalHighMajorDiameter , ToroidalLowMajorDiameter , ToroidalHighMajorRadius , ToroidalLowMajorRadius , Thickness , Angular , LinearDistance , CurvedDistance } |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
Public Member Functions | |
DimensionComponent () | |
Constructor. | |
DimensionComponent (double theNominalValue) | |
Constructor. | |
DimensionComponent (double theNominalValue, DimensionType theType) | |
void | SetNominalValue (double theNominalValue) |
Sets the nominal value of the dimension. | |
double | NominalValue () const |
Returns the nominal value of the dimension. | |
void | SetTypeOfDimension (DimensionType theType) |
Sets the type of the dimension. | |
DimensionType | TypeOfDimension () const |
Returns the type of the dimension. | |
![]() | |
void | AddAttribute (const SemanticAttribute &theAttribute) |
Adds the attribute. | |
const std::vector< PMI::SemanticAttribute > & | Attributes () const |
Returns the attributes. | |
bool | HasAttributes () const |
Returns true if semantic attributes were added and false otherwise. | |
size_t | NumberOfAttributes () const |
Returns the number of added attributes. | |
void | Accept (SemanticAttributeVisitor &theVisitor) const |
Accepts an attribute visitor. | |
void | Accept (SemanticComponentVisitor &theVisitor) const |
Accepts the visitor. | |
![]() | |
size_t | Id () const |
Return unique identifier of public object. | |
internal::BaseObjectImpl * | Impl () const |
bool | IsNull () const |
operator bool () const | |
template<typename T > | |
bool | IsOfType () const |
template<typename T > | |
T * | Impl () const |
Reserved for internal use. | |
Static Public Member Functions | |
static bool | CompareType (const BaseObject &theObject) |
Returns true if DimensionComponent has the SavedView type. | |
![]() | |
static bool | CompareType (const BaseObject &theObject) |
Returns true if theObject has the SemanticComponent type. | |
Additional Inherited Members | |
![]() | |
SemanticComponent (const ImplType &theImpl) | |
![]() | |
BaseObject (const ImplType &theImpl) | |
Defines a component represented by a dimensional tolerance.
The dimensional tolerance has a nominal value and optionally additional attributes like modifiers, plus-minus bounds etc.
An examples of dimensional tolerance: dimensional size, dimensional location, angular size, etc.
double cadex::PMI::DimensionComponent::NominalValue | ( | ) | const |
Returns the nominal value of the dimension.
Returns 0 by default.