Defines a irregular mono-dimensional mesh. More...
#include <MeshViz/3Ddata/PbIrregularMesh1D.h>
Public Member Functions | |
PbIrregularMesh1D () | |
PbIrregularMesh1D (const PbIrregularMesh1D &mesh) | |
PbIrregularMesh1D (int size, const float *x) | |
~PbIrregularMesh1D () | |
PbIrregularMesh1D & | operator= (const PbIrregularMesh1D &mesh) |
void | setGeometry (int size, const float *x) |
void | getGeometry (int &size, const float *&x) const |
virtual SbVec3f | getNodeCoord (int nod_index) const |
Friends | |
int | operator== (const PbIrregularMesh1D &m1, const PbIrregularMesh1D &m2) |
int | operator!= (const PbIrregularMesh1D &m1, const PbIrregularMesh1D &m2) |
PbIrregularMesh1D::PbIrregularMesh1D | ( | ) |
Constructor.
PbIrregularMesh1D::PbIrregularMesh1D | ( | const PbIrregularMesh1D & | mesh | ) |
Copy constructor.
PbIrregularMesh1D::PbIrregularMesh1D | ( | int | size, | |
const float * | x | |||
) |
Constructor with geometry.
PbIrregularMesh1D::~PbIrregularMesh1D | ( | ) |
Destructor.
void PbIrregularMesh1D::getGeometry | ( | int & | size, | |
const float *& | x | |||
) | const |
Gets the mesh geometry.
x must be used like a vector (i.e. x[n]).
virtual SbVec3f PbIrregularMesh1D::getNodeCoord | ( | int | nod_index | ) | const [virtual] |
Gets the coordinates of a node.
Implements PbMesh.
PbIrregularMesh1D& PbIrregularMesh1D::operator= | ( | const PbIrregularMesh1D & | mesh | ) |
Assignment operator.
Reimplemented from PbMesh1D.
void PbIrregularMesh1D::setGeometry | ( | int | size, | |
const float * | x | |||
) |
Defines a new geometry.
int operator!= | ( | const PbIrregularMesh1D & | m1, | |
const PbIrregularMesh1D & | m2 | |||
) | [friend] |
Inequality comparison operator.
int operator== | ( | const PbIrregularMesh1D & | m1, | |
const PbIrregularMesh1D & | m2 | |||
) | [friend] |
Equality comparison operator.