Class Reference element3d

A element of the 3d drawing. More...

Member

void addPointArray(pointArray polygon, int level,bool side )
void addSlantSide(pointArray bottom,pointArray top, int levelBottom, int levelTop)
void addSide(pointArray polygon,int levelBottom, int levelTop)
void deselectAll()
int getLayer()
int getColorRed()
int getColorGreen()
int getColorBlue()
string getName()
bool isCellref()
bool isMesh()
bool isVisible()
bool select
void selectAll()
void setLayer(int layer)
void setName(string)
bool visible

Detailed Description

A element of the 3d drawing. This can ether be a mesh element of a cellref3d element.

Member Function Documentation


void element3d::addPointArray(pointArray polygon, int level,bool side )

If the element is a mesh, a horizontal polygon will be added to the mesh.


void element3d::addSlantSide(pointArray bottom,pointArray top, int levelBottom, int levelTop)

If the element is a mesh, a non vertical ring between the outline of the polygons ''top'' and ''bottom'' will be added to the mesh.


void element3d::addSide(pointArray polygon,int levelBottom, int levelTop)

If the element is a mesh, the outline of the polygon will be added as a vertical ring.


void element3d::deselectAll()

select the element completely


int element3d::getLayer()

The layer of this element is returned. For details see also setLayer. (introduced with release 20190220)


int element3d::getColorRed()

The red part of the color for an mesh element is return. For cellref nothing valid is returned. (introduced with release 20190220)


int element3d::getColorGreen()

The green part of the color for an mesh element is return. For cellref nothing valid is returned. (introduced with release 20190220)


int element3d::getColorBlue()

The blue part of the color for an mesh element is return. For cellref nothing valid is returned. (introduced with release 20190220)


string element3d::getName()

An informative test for this element is returned. This text can be set by setName and is automaticly set by some generation tools. (introduced with release 20190220)


bool element3d::isCellref()

Returns: true, if this element is a cell reference.


bool element3d::isMesh()

Returns: true, if this element is a mesh.


bool element3d::isVisible()

Returns true, if the element is visible. An element is visible then the property visible is true and it is on a visible layer. (introduced with release 20190220)


bool element3d::select

True, if this element is completly selected.


void element3d::selectAll()

Completely selects this element.


void element3d::setLayer(int layer)

Sets the layer for this element. If the layer numer is an existing layer number the element color will by used from the layer setup. With an negative layer number the color set by setColor will be used to display this element. A layer is only relavant for a mesh. (introduced with release 20190220)


void element3d::setName(string)

Sets an informative text to this element. The text is displayed in the foot of the 3d window when it is highlighted by the mouse. Also it is used in some 3d file formats. (introduced with release 20190220)


bool element3d::visible

The visible property of this element. The method isVisible will additionally respect the layer this element is on.