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

Base class for drawing elements. More...

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

Public Member Functions

 Element (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 Element (cadex.BaseObject.Initialized arg0)
 
 Element (cadex.PMI.GraphicalRepresentation theRepresentation)
 Constructor.
 
 Element (cadex.PMI.ElementType theType)
 Constructor.
 
 Element (cadex.PMI.ElementType theType, cadex.UTF16String theName)
 Constructor.
 
void SetGraphicalRepresentation (cadex.PMI.GraphicalRepresentation theRepresentation)
 Sets the graphical representation.
 
cadex.PMI.GraphicalRepresentation GraphicalRepresentation ()
 Returns the graphical representation.
 
void SetSemanticRepresentation (cadex.PMI.SemanticRepresentation theRepresentation)
 Sets the semantic element.
 
cadex.PMI.SemanticRepresentation SemanticRepresentation ()
 Returns the semantic element.
 
void SetName (cadex.UTF16String theName)
 Sets the name.
 
cadex.UTF16String Name ()
 Returns the name.
 
void SetType (cadex.PMI.ElementType theType)
 Sets the element type.
 
cadex.PMI.ElementType Type ()
 
bool IsEmpty ()
 
- 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 Element type.
 
static cadex.PMI.Element Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Base class for drawing elements.

Defines a complete PMI element.

Drawing elements are objects that are contained in views and define the contents of a drawing. They include 2D geometry and view instances.

Encapsulates a PMI graphical representation, a PMI semantic representation, and a type.

See also
GraphicalRepresentation, SemanticRepresentation

Member Function Documentation

◆ Dispose()

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

Reimplemented from cadex.BaseObject.

◆ IsEmpty()

bool cadex.PMI.Element.IsEmpty ( )
inline

Returns true if no graphical or semantic representation was set.

See also
SetGraphicalRepresentation(), SetSemanticRepresentation()

◆ Name()

cadex.UTF16String cadex.PMI.Element.Name ( )
inline

Returns the name.

Returns the empty string if the model element has no name (by default).

See also
SetName().

◆ SetName()

void cadex.PMI.Element.SetName ( cadex.UTF16String theName)
inline

Sets the name.

Accepts a string as a unicode string.

See also
Name().