Hide menu
Loading...
Searching...
No Matches
cadex.PMI.GeometricToleranceComponent Class Reference

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

Inheritance diagram for cadex.PMI.GeometricToleranceComponent:
cadex.PMI.SemanticComponent cadex.BaseObject

Public Types

enum  ToleranceType {
  UndefinedTolerance , Angularity , CircularRunout , Coaxiality ,
  Concentricity , Cylindricity , Flatness , LineProfile ,
  Parallelism , Perpendicularity , Position , Roundness ,
  Straightness , SurfaceProfile , Symmetry , TotalRunout
}
 
enum  ToleranceZoneFormType {
  Undefined , CylindricalOrCircular , Spherical , WithinACircle ,
  BetweenTwoConcentricCircles , BetweenTwoEquidistantCurves , WithinACylinder , BetweenTwoCoaxialCylinders ,
  BetweenTwoEquidistantSurfaces , NonUniform
}
 

Public Member Functions

 GeometricToleranceComponent (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 GeometricToleranceComponent ()
 Constructor.
 
 GeometricToleranceComponent (double theMagnitude, cadex.PMI.GeometricToleranceComponent.ToleranceType theType)
 Constructor.
 
 GeometricToleranceComponent (double theMagnitude, cadex.PMI.GeometricToleranceComponent.ToleranceType theToleranceType, cadex.PMI.GeometricToleranceComponent.ToleranceZoneFormType theToleranceZoneFormType)
 Constructor.
 
void SetMagnitude (double theMagnitude)
 Sets the magnitude.
 
double Magnitude ()
 Returns the magnitude value of the tolerance.
 
void SetToleranceZoneForm (cadex.PMI.GeometricToleranceComponent.ToleranceZoneFormType theType)
 Sets the tolerance zone form.
 
cadex.PMI.GeometricToleranceComponent.ToleranceZoneFormType ToleranceZoneForm ()
 Returns the tolerance zone form.
 
void SetTypeOfTolerance (cadex.PMI.GeometricToleranceComponent.ToleranceType theType)
 
cadex.PMI.GeometricToleranceComponent.ToleranceType TypeOfTolerance ()
 Returns the type of the tolerance.
 
- Public Member Functions inherited from cadex.PMI.SemanticComponent
 SemanticComponent (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void AddAttribute (cadex.PMI.SemanticAttribute theAttribute)
 Adds the attribute.
 
cadex.Collections.PMISemanticAttributeList Attributes ()
 Returns the attributes.
 
bool HasAttributes ()
 Returns true if semantic attributes were added and false otherwise.
 
uint NumberOfAttributes ()
 Returns the number of added attributes.
 
void Accept (cadex.PMI.SemanticAttributeVisitor theVisitor)
 Accepts the visitor.
 
void Accept (cadex.PMI.SemanticComponentVisitor theVisitor)
 Accepts the visitor.
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static new bool CompareType (cadex.BaseObject theObject)
 Returns true if theObject has the GeometricToleranceComponent type.
 
- Static Public Member Functions inherited from cadex.PMI.SemanticComponent
static bool CompareType (cadex.BaseObject theObject)
 Returns true if theObject has the SemanticComponent type.
 
static cadex.PMI.SemanticComponent Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.PMI.SemanticComponent
override void Dispose (bool disposing)
 

Detailed Description

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.

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

Member Function Documentation

◆ Dispose()

override void cadex.PMI.GeometricToleranceComponent.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.BaseObject.

◆ Magnitude()

double cadex.PMI.GeometricToleranceComponent.Magnitude ( )
inline

Returns the magnitude value of the tolerance.

Returns 0 by default.

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