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

Defines a PMI semantic representation. More...

Inheritance diagram for cadex.PMI.SemanticRepresentation:
cadex.BaseObject

Public Member Functions

 SemanticRepresentation (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 SemanticRepresentation (cadex.BaseObject.Initialized arg0)
 
 SemanticRepresentation (cadex.PMI.SemanticComponent theComponent)
 
void AddComponent (cadex.PMI.SemanticComponent theComponent)
 Adds the representation.
 
cadex.Collections.PMISemanticComponentList Components ()
 Returns the semantic components.
 
uint NumberOfComponents ()
 Returns the number of added components.
 
bool IsEmpty ()
 Returns true if no semantic components were added.
 
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 SemanticRepresentation type.
 
static cadex.PMI.SemanticRepresentation Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Defines a PMI semantic representation.

A semantic PMI is specific 'attributes' bearing semantics of PMI such as value of dimension, tolerance bounds, etc. that are stored as alphanumeric data, not as a graphical presentation.

The stored information may be annotations associated with a CAD model's edges and faces such as dimensional/geometric tolerances or datum features. Like graphical representation or semantic representation may consists of several components (SemanticComponent subclasses) each one representing specific semantic notation.

Note
It's expected that all components bear the same type.
See also
Data, Element, SemanticComponent
Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.

Member Function Documentation

◆ Accept()

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

Accepts the visitor.

The components are visited in the order in which they were added with the AddComponent() method.

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

◆ Dispose()

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

Reimplemented from cadex.BaseObject.

◆ IsEmpty()

bool cadex.PMI.SemanticRepresentation.IsEmpty ( )
inline

Returns true if no semantic components were added.

Returns true if IsNull().

See also
AddComponent(), NumberOfComponents()

◆ NumberOfComponents()

uint cadex.PMI.SemanticRepresentation.NumberOfComponents ( )
inline

Returns the number of added components.

Returns 0 if IsNull().

See also
AddComponent()