Defines a component represented by a geometric tolerance. More...
#include <cadex/PMI/SemanticComponent.hxx>
Public Types | |
| enum class | ToleranceType { UndefinedTolerance , Angularity , CircularRunout , Coaxiality , Concentricity , Cylindricity , Flatness , LineProfile , Parallelism , Perpendicularity , Position , Roundness , Straightness , SurfaceProfile , Symmetry , TotalRunout } |
| enum class | ToleranceZoneFormType { Undefined , CylindricalOrCircular , Spherical , WithinACircle , BetweenTwoConcentricCircles , BetweenTwoEquidistantCurves , WithinACylinder , BetweenTwoCoaxialCylinders , BetweenTwoEquidistantSurfaces , NonUniform } |
Public Types inherited from cadex::BaseObject | |
| typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
Public Member Functions | |
| GeometricToleranceComponent () | |
| Constructor. | |
| GeometricToleranceComponent (double theMagnitude, ToleranceType theType) | |
| Constructor. | |
| GeometricToleranceComponent (double theMagnitude, ToleranceType theToleranceType, ToleranceZoneFormType theToleranceZoneFormType) | |
| Constructor. | |
| void | SetMagnitude (double theMagnitude) |
| Sets the magnitude. | |
| double | Magnitude () const |
| Returns the magnitude value of the tolerance. | |
| void | SetToleranceZoneForm (ToleranceZoneFormType theType) |
| Sets the tolerance zone form. | |
| ToleranceZoneFormType | ToleranceZoneForm () const |
| Returns the tolerance zone form. | |
| void | SetTypeOfTolerance (ToleranceType theType) |
| Sets the type of the tolerance. | |
| ToleranceType | TypeOfTolerance () const |
| Returns the type of the tolerance. | |
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 theObject has the GeometricToleranceComponent 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) | |
Defines a component represented by a geometric tolerance.
The geometric tolerance has a magnitude, and a type and optionally additional attributes like modifiers, datum references, etc.
Examples of geometric tolerance: flatness tolerance, position tolerance, etc.
| double cadex::PMI::GeometricToleranceComponent::Magnitude | ( | ) | const |
Returns the magnitude value of the tolerance.
Returns 0 by default.