Simple structure to manage 3D coordinate. More...
#include <SMESHGUI_SelectionProxy.h>
Public Member Functions | |
| XYZ () | |
| Default constructor. More... | |
| XYZ (double, double, double) | |
| Base constructor. More... | |
| XYZ (const gp_XYZ &) | |
| Construction from geometrical point. More... | |
| void | add (double, double, double) |
| Add a point. More... | |
| void | divide (double) |
| Divide point to given coefficient. More... | |
| double | x () const |
| Get X coordinate. More... | |
| double | y () const |
| Get Y coordinate. More... | |
| double | z () const |
| Get Z coordinate. More... | |
| operator gp_XYZ () const | |
| Conversion to geometrical point. More... | |
Private Attributes | |
| double | myX |
| double | myY |
| double | myZ |
Simple structure to manage 3D coordinate.
| SMESH::XYZ::XYZ | ( | ) |
Default constructor.
| SMESH::XYZ::XYZ | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Base constructor.
| parameter | x X coordinate. |
| parameter | y Y coordinate. |
| parameter | z Z coordinate. |
| SMESH::XYZ::XYZ | ( | const gp_XYZ & | p | ) |
Construction from geometrical point.
| parameter | p Geometrical point. |
| void SMESH::XYZ::add | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Add a point.
| parameter | x X coordinate. |
| parameter | y Y coordinate. |
| parameter | z Z coordinate. |
Referenced by SMESH::SelectionProxy::elementGravityCenter().
| void SMESH::XYZ::divide | ( | double | a | ) |
Divide point to given coefficient.
| parameter | a Divider coefficient. |
Referenced by SMESH::SelectionProxy::elementGravityCenter().
| SMESH::XYZ::operator gp_XYZ | ( | ) | const |
Conversion to geometrical point.
| double SMESH::XYZ::x | ( | ) | const |
| double SMESH::XYZ::y | ( | ) | const |
| double SMESH::XYZ::z | ( | ) | const |
|
private |
|
private |
|
private |