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)
 Accepts a string as a unicode string.
 
cadex.UTF16String Name ()
 Returns the empty string if the model element has no name (by default).
 
void SetType (cadex.PMI.ElementType theType)
 Sets the element type.
 
cadex.PMI.ElementType Type ()
 
bool IsEmpty ()
 Returns true if no graphical or semantic representation was set.
 
- 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

Constructor & Destructor Documentation

◆ Element() [1/3]

cadex.PMI.Element.Element ( cadex.PMI.GraphicalRepresentation theRepresentation)
inline

Constructor.

◆ Element() [2/3]

cadex.PMI.Element.Element ( cadex.PMI.ElementType theType)
inline

Constructor.

◆ Element() [3/3]

cadex.PMI.Element.Element ( cadex.PMI.ElementType theType,
cadex.UTF16String theName )
inline

Constructor.

Member Function Documentation

◆ CompareType()

static bool cadex.PMI.Element.CompareType ( cadex.BaseObject theObject)
inlinestatic

Returns true if theObject has the Element type.

◆ Dispose()

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

Reimplemented from cadex.BaseObject.

◆ GraphicalRepresentation()

cadex.PMI.GraphicalRepresentation cadex.PMI.Element.GraphicalRepresentation ( )
inline

Returns the graphical representation.

◆ 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 empty string if the model element has no name (by default).

See also
SetName(). Returns the name.

◆ SemanticRepresentation()

cadex.PMI.SemanticRepresentation cadex.PMI.Element.SemanticRepresentation ( )
inline

Returns the semantic element.

◆ SetGraphicalRepresentation()

void cadex.PMI.Element.SetGraphicalRepresentation ( cadex.PMI.GraphicalRepresentation theRepresentation)
inline

Sets the graphical representation.

◆ SetName()

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

Accepts a string as a unicode string.

See also
Name(). Sets the name.

◆ SetSemanticRepresentation()

void cadex.PMI.Element.SetSemanticRepresentation ( cadex.PMI.SemanticRepresentation theRepresentation)
inline

Sets the semantic element.

◆ SetType()

void cadex.PMI.Element.SetType ( cadex.PMI.ElementType theType)
inline

Sets the element type.