Base class for part, instance and assembly.
More...
|
|
| ModelElement (global::System.IntPtr cPtr, bool cMemoryOwn) |
| |
| void | SetName (cadex.UTF16String theName) |
| | Sets a name.
|
| |
| cadex.UTF16String | Name () |
| | Returns a name.
|
| |
|
void | SetUuid (System.Guid theUuid) |
| | Sets an object uuid.
|
| |
|
System.Guid | Uuid () |
| | Returns an object uuid.
|
| |
|
void | SetPMI (cadex.PMI.Data thePMI) |
| | Sets the object PMI.
|
| |
|
cadex.PMI.Data | PMI () |
| | Returns the object PMI.
|
| |
| void | Accept (cadex.ModelData.ModelElementVisitor theVisitor) |
| | Accepts an element visitor.
|
| |
|
| 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) |
| |
|
| override void | Dispose (bool disposing) |
| |
◆ Accept()
| void cadex.ModelData.ModelElement.Accept |
( |
cadex.ModelData.ModelElementVisitor | theVisitor | ) |
|
|
inline |
Accepts an element visitor.
The order of visiting depends on the type of this object:
- for a part invokes a visitor for the part (ModelData.ModelElementVisitor.operator());
- for an instance first enters the instance by calling ModelData.ModelElementVisitor.VisitEnter()). If it returns true then visits the referred element. Then leaves the instance calling ModelData.ModelElementVisitor.VisitLeave().
- for an assembly first enters the assembly by calling ModelData.ModelElementVisitor.VisitEnter()). If it returns true then visits all the assembly children. Then leaves the assembly calling ModelData.ModelElementVisitor.VisitLeave().
◆ Dispose()
| override void cadex.ModelData.ModelElement.Dispose |
( |
bool | disposing | ) |
|
|
inlineprotectedvirtual |
◆ Name()
Returns a name.
Returns empty string if the model element has no name (by default).
- See also
- SetName().
- Examples
- MTKConverter/Program.cs, MTKConverter/main.cxx, exploring/bom/Program.cs, exploring/bom/main.cxx, exploring/brep_geometry/Program.cs, exploring/brep_geometry/main.cxx, exploring/brep_topology/Program.cs, exploring/brep_topology/main.cxx, exploring/mesh/main.cxx, exploring/pmi/Program.cs, exploring/pmi/main.cxx, helpers/shape_processor.cs, helpers/shape_processor.hxx, machining/dfm_analyzer/Program.cs, machining/dfm_analyzer/main.cxx, machining/feature_recognizer/Program.cs, machining/feature_recognizer/main.cxx, molding/dfm_analyzer/Program.cs, molding/dfm_analyzer/main.cxx, molding/feature_recognizer/Program.cs, molding/feature_recognizer/main.cxx, projector/poly_projector/main.cxx, sheet_metal/dfm_analyzer/Program.cs, sheet_metal/dfm_analyzer/main.cxx, sheet_metal/feature_recognizer/Program.cs, sheet_metal/feature_recognizer/main.cxx, sheet_metal/unfolder/Program.cs, and sheet_metal/unfolder/main.cxx.
◆ SetName()
Sets a name.
Accepts a string as a unicode string.
- See also
- Name().