Defines an occurrence of an assembly or a part in a scene graph. More...
Public Member Functions | |
| Instance (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| Instance (cadex.BaseObject.Initialized arg0) | |
| Instance (cadex.UTF16String theName) | |
| Constructor. | |
| Instance (cadex.ModelData.ModelElement theElement, cadex.UTF16String theName) | |
| Constructor. | |
| Instance (cadex.ModelData.ModelElement theElement) | |
| Instance (cadex.ModelData.ModelElement theElement, cadex.Geom.Transformation theTransformation, cadex.UTF16String theName) | |
| Constructor. | |
| Instance (cadex.ModelData.ModelElement theElement, cadex.Geom.Transformation theTransformation) | |
| void | SetReference (cadex.ModelData.ModelElement theElement) |
| Sets a referenced object. | |
| cadex.ModelData.ModelElement | Reference () |
| Returns the referenced object. | |
| void | SetTransformation (cadex.Geom.Transformation theTrsf) |
| Sets transformation matrix. | |
| bool | HasTransformation () |
| Returns true if the instance has an explicitly attached transformation matrix. | |
| cadex.Geom.Transformation | Transformation () |
| Returns the transformation matrix. | |
Public Member Functions inherited from cadex.ModelData.ModelElement | |
| 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. | |
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 is an instance. | |
| static cadex.ModelData.Instance | Cast (cadex.ModelData.ModelElement theBase) |
Static Public Member Functions inherited from cadex.ModelData.ModelElement | |
| static bool | CompareType (cadex.BaseObject theObject) |
| Returns true if theObject is a model element. | |
| static cadex.ModelData.ModelElement | Cast (cadex.BaseObject theBase) |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
Protected Member Functions inherited from cadex.ModelData.ModelElement | |
| override void | Dispose (bool disposing) |
Defines an occurrence of an assembly or a part in a scene graph.
Instance contains a reference to another element part or assembly and is used to share data, e.g. two instances can share the same part while adding their own transformations.
|
inline |
Constructor.
Creates an instance with the specified name.
|
inline |
Constructor.
Creates an instance referencing theElement with the provided name. If theElement is null (IsNull()), no reference is set.
|
inline |
Constructor.
Creates an instance referencing theElement with the provided name and transformation. If theElement is null (IsNull()), no reference is set.
|
inlineprotectedvirtual |
Reimplemented from cadex.BaseObject.
|
inline |
Returns true if the instance has an explicitly attached transformation matrix.
Returns true if the matrix has been assigned with SetTransformation() and false otherwise.
|
inline |
Returns the referenced object.
Returns null if the instance does not refer to any object.
|
inline |
Returns the transformation matrix.
If the matrix has not been explicitly assigned with SetTransformation() then creates and explicitly assigns an identity matrix.