Hide menu
Loading...
Searching...
No Matches
cadex::PMI::DimensionComponent Class Reference

Defines a component represented by a dimensional tolerance. More...

#include <cadex/PMI/SemanticComponent.hxx>

Inheritance diagram for cadex::PMI::DimensionComponent:
cadex::PMI::SemanticComponent cadex::BaseObject

Public Types

enum class  DimensionType {
  Undefined , CurveLength , Diameter , SphericalDiameter ,
  Radius , SphericalRadius , ToroidalMinorDiameter , ToroidalMajorDiameter ,
  ToroidalMinorRadius , ToroidalMajorRadius , ToroidalHighMajorDiameter , ToroidalLowMajorDiameter ,
  ToroidalHighMajorRadius , ToroidalLowMajorRadius , Thickness , Angular ,
  LinearDistance , CurvedDistance
}
 
- Public Types inherited from cadex::BaseObject
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.
 
- Public Member Functions inherited from cadex::PMI::SemanticComponent
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.
 
- Public Member Functions inherited from cadex::BaseObject
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 Public Member Functions inherited from cadex::PMI::SemanticComponent
static bool CompareType (const BaseObject &theObject)
 Returns true if theObject has the SemanticComponent type.
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::PMI::SemanticComponent
 SemanticComponent (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

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.

See also
SemanticElement, SemanticAttribute
Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.

Member Function Documentation

◆ NominalValue()

double cadex::PMI::DimensionComponent::NominalValue ( ) const

Returns the nominal value of the dimension.

Returns 0 by default.

Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.