Describes position of mesh node or element on a reference shape. More...
#include <SMESHGUI_SelectionProxy.h>
Public Member Functions | |
| Position () | |
| Constructor. More... | |
| bool | isValid () const |
| Check if position is valid. More... | |
| int | shapeId () const |
| Get reference shape ID. More... | |
| int | shapeType () const |
| Get reference shape type. More... | |
| bool | hasU () const |
| Check if there is U position on a shape. More... | |
| double | u () const |
| Get U position on a shape. More... | |
| bool | hasV () const |
| Check if there is V position on a shape. More... | |
| double | v () const |
| Get V position on a shape. More... | |
Private Member Functions | |
| void | setShapeId (int) |
| Set reference shape ID. More... | |
| void | setShapeType (int) |
| Set reference shape type. More... | |
| void | setU (double) |
| Set U position on a shape. More... | |
| void | setV (double) |
| Set V position on a shape. More... | |
Private Attributes | |
| int | myShapeId |
| int | myShapeType |
| double | myU |
| double | myV |
| bool | myHasU |
| bool | myHasV |
Friends | |
| class | SelectionProxy |
Describes position of mesh node or element on a reference shape.
| SMESH::Position::Position | ( | ) |
Constructor.
Creates invalid position.
| bool SMESH::Position::hasU | ( | ) | const |
Check if there is U position on a shape.
true if U position is valid; false otherwise. Referenced by SMESHGUI_ElemInfo::writeInfo().
| bool SMESH::Position::hasV | ( | ) | const |
Check if there is V position on a shape.
true if V position is valid; false otherwise. Referenced by SMESHGUI_ElemInfo::writeInfo().
| bool SMESH::Position::isValid | ( | ) | const |
Check if position is valid.
true if position is valid; false otherwise. Referenced by SMESHGUI_ElemInfo::writeInfo().
|
private |
Set reference shape ID.
| id | Shape / sub-shape ID. |
Referenced by SMESH::SelectionProxy::elementPosition(), and SMESH::SelectionProxy::nodePosition().
|
private |
Set reference shape type.
| type | Shape type. |
Referenced by SMESH::SelectionProxy::elementPosition(), and SMESH::SelectionProxy::nodePosition().
|
private |
|
private |
| int SMESH::Position::shapeId | ( | ) | const |
| int SMESH::Position::shapeType | ( | ) | const |
| double SMESH::Position::u | ( | ) | const |
| double SMESH::Position::v | ( | ) | const |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |