Defines a regular mono-dimensional mesh. More...
#include <MeshViz/3Ddata/PbRegularMesh1D.h>
Public Member Functions | |
PbRegularMesh1D () | |
PbRegularMesh1D (const PbRegularMesh1D &mesh) | |
PbRegularMesh1D (int numX, float xmin, float xmax) | |
~PbRegularMesh1D () | |
PbRegularMesh1D & | operator= (const PbRegularMesh1D &mesh) |
void | setGeometry (int numX, float xmin, float xmax) |
void | getGeometry (int &numX, float &xmin, float &xmax) const |
virtual SbVec3f | getNodeCoord (int nod_index) const |
Friends | |
int | operator== (const PbRegularMesh1D &m1, const PbRegularMesh1D &m2) |
int | operator!= (const PbRegularMesh1D &m1, const PbRegularMesh1D &m2) |
Class to define a regular mono-dimentional mesh. This mesh is said regular because the gap between 2 consecutive nodes is constant.
The values on the mesh nodes are defined by the PbMesh::addValuesSet(set_index,val) method, where val argument is an array of num_x floats.
PbRegularMesh1D::PbRegularMesh1D | ( | ) |
Constructor.
PbRegularMesh1D::PbRegularMesh1D | ( | const PbRegularMesh1D & | mesh | ) |
Copy constructor.
PbRegularMesh1D::PbRegularMesh1D | ( | int | numX, | |
float | xmin, | |||
float | xmax | |||
) |
Constructor with geometry.
PbRegularMesh1D::~PbRegularMesh1D | ( | ) |
Destructor.
void PbRegularMesh1D::getGeometry | ( | int & | numX, | |
float & | xmin, | |||
float & | xmax | |||
) | const |
Gets the mesh geometry.
virtual SbVec3f PbRegularMesh1D::getNodeCoord | ( | int | nod_index | ) | const [virtual] |
Gets the coordinates of a node.
Implements PbMesh.
PbRegularMesh1D& PbRegularMesh1D::operator= | ( | const PbRegularMesh1D & | mesh | ) |
Assignment operator.
Reimplemented from PbMesh1D.
void PbRegularMesh1D::setGeometry | ( | int | numX, | |
float | xmin, | |||
float | xmax | |||
) |
Defines a new geometry.
int operator!= | ( | const PbRegularMesh1D & | m1, | |
const PbRegularMesh1D & | m2 | |||
) | [friend] |
Inequality comparison operator.
int operator== | ( | const PbRegularMesh1D & | m1, | |
const PbRegularMesh1D & | m2 | |||
) | [friend] |
Equality comparison operator.