Hide menu
Loading...
Searching...
No Matches

The base class for various component types. More...

Inheritance diagram for cadex.PMI.SemanticComponent:
cadex.BaseObject cadex.PMI.DatumComponent cadex.PMI.DimensionComponent cadex.PMI.GeometricToleranceComponent cadex.PMI.SurfaceFinishComponent

Public Member Functions

 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 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)
 

Detailed Description

The base class for various component types.

Contains a collection of PMI semantic attributes that are specific to each derived component.

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

Member Function Documentation

◆ Accept() [1/2]

void cadex.PMI.SemanticComponent.Accept ( cadex.PMI.SemanticAttributeVisitor theVisitor)
inline

Accepts the visitor.

The order of visiting will match the order of adding attributes with AddAttribute(). Accepts an attribute visitor.

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

◆ Accept() [2/2]

void cadex.PMI.SemanticComponent.Accept ( cadex.PMI.SemanticComponentVisitor theVisitor)
inline

Accepts the visitor.

The order of visiting will match the order of adding attributes with AddAttribute(). Accepts an attribute visitor.

◆ Attributes()

cadex.Collections.PMISemanticAttributeList cadex.PMI.SemanticComponent.Attributes ( )
inline

Returns the attributes.

See also
AddAttribute(), HasAttributes()

◆ Dispose()

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

Reimplemented from cadex.BaseObject.

◆ HasAttributes()

bool cadex.PMI.SemanticComponent.HasAttributes ( )
inline

Returns true if semantic attributes were added and false otherwise.

Returns false if IsNull().

See also
AddAttribute(), NumberOfAttributes()
Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.

◆ NumberOfAttributes()

uint cadex.PMI.SemanticComponent.NumberOfAttributes ( )
inline

Returns the number of added attributes.

Returns 0 if IsNull().

See also
AddAttribute(), HasAttributes(),
Attributes()