Defines a irregular mono-dimensional mesh. More...
#include <MeshViz/3Ddata/PbIrregularMesh1D.h>
Public Member Functions | |
PbIrregularMesh1D () | |
Constructor. | |
PbIrregularMesh1D (const PbIrregularMesh1D &mesh) | |
Copy constructor. | |
PbIrregularMesh1D (int size, const float *x) | |
Constructor with geometry. | |
~PbIrregularMesh1D () | |
Destructor. | |
PbIrregularMesh1D & | operator= (const PbIrregularMesh1D &mesh) |
Assignment operator. | |
void | setGeometry (int size, const float *x) |
Defines a new geometry. | |
void | getGeometry (int &size, const float *&x) const |
Gets the mesh geometry. | |
virtual SbVec3f | getNodeCoord (int nod_index) const |
Gets the coordinates of a node. | |
Public Member Functions inherited from PbMesh1D | |
virtual float | getVolume () const |
Returns always 0. | |
virtual float | getArea () const |
Returns always 0. | |
virtual const PbCell * | findContainingCell (const SbVec3f &point, float tolerance, SbVec3f &pcoord, const PbCell *adjacent_cell) const |
Returns always NULL. | |
virtual const PbCell * | findContainingCell (const SbVec3f &point, float tolerance, SbVec3f &pcoord) const |
Returns always NULL. | |
virtual const PbCell * | getCell (int cell_index) const |
Returns always NULL. | |
virtual void | getAdjacentCellsIndByNode (int cell_index, PbArrayOfInt &adjacent_cells) const |
Gets the list of indices of cells that are adjacent (by a node) to cell_index. | |
virtual void | getAdjacentCellsIndByFacet (int cell_index, PbArrayOfInt &adjacent_cells) const |
Gets the list of indices of cells that are adjacent (by a facet) to cell_index. | |
virtual void | getNodeOwnerCellsInd (int nod_index, PbArrayOfInt &owner_cells) const |
Gets the list of indices of cells that own the node "nod_index". | |
virtual void | getNodesOwnerCellsInd (const PbArrayOfInt &nod_indices, PbArrayOfInt &owner_cells) const |
Returns always an empty list of index. | |
PbMesh1D & | operator= (const PbMesh1D &mesh) |
Assignment operator. | |
Public Member Functions inherited from PbMesh | |
PbMesh (SbBool is_data_duplicated=TRUE) | |
Constructor. | |
PbMesh (const PbMesh &mesh) | |
Copy constructor. | |
~PbMesh () | |
Destructor. | |
PbMesh & | operator= (const PbMesh &mesh) |
Assignment operator. | |
int | getNumNodes () const |
Gets the number of nodes in the mesh. | |
int | getNumCells () const |
Gets the number of cells in the mesh. | |
SbBox3f | getBoundingBox () const |
Gets the bounding box of the mesh. | |
SbBool | isDataDuplicated () const |
Returns TRUE if mesh's data are duplicated, FALSE otherwise. | |
virtual void | addValuesSet (int set_index, const float *val, const SbString &set_name="") |
Adds a set of scalar values. | |
void | addValuesSet (int set_index, const float *val, DataBinding binding, const SbString &set_name="") |
Adds a set of scalar values that can be located either at nodes or at cells. | |
DataBinding | getValuesBinding (int set_index) const |
Gets the binding of the scalar value set. | |
virtual void | addStringsSet (int set_index, const SbString *val, const SbString &set_name="") |
Adds a set of string values . | |
virtual void | addVecsSet (int set_index, const SbVec3f *val, const SbString &set_name="") |
Adds a set of vector values . | |
virtual const SbString * | getValuesSetName (int set_index) const |
Gets the name associated to a scalar values set. | |
virtual const SbString * | getStringsSetName (int set_index) const |
Gets the name associated to a string values set. | |
virtual const SbString * | getVecsSetName (int set_index) const |
Gets the name associated to a vec values set. | |
virtual const float * | getValuesSet (int set_index) const |
Gets a set of scalar values. | |
virtual const SbString * | getStringsSet (int set_index) const |
Gets a set of string values. | |
virtual const SbVec3f * | getVecsSet (int set_index) const |
Gets a set of vector values. | |
virtual SbBool | removeValuesSet (int set_index) |
Remove a set of scalar values. | |
virtual SbBool | removeStringsSet (int set_index) |
Remove a set of string values. | |
virtual SbBool | removeVecsSet (int set_index) |
Remove a set of vector values. | |
virtual void | removeAllValuesSet () |
Remove all sets of scalar values. | |
virtual void | removeAllStringsSet () |
Remove all sets of strings values. | |
virtual void | removeAllVecsSet () |
Remove all sets of vector values. | |
virtual int | getNumValuesSet () const |
Gets the number of set of scalar values. | |
virtual int | getNumStringsSet () const |
Gets the number of set of string values. | |
virtual int | getNumVecsSet () const |
Gets the number of set of vector values. | |
virtual SbBool | getMinValuesSet (int set_index, float &min) const |
Gets the min of a set of scalars. | |
virtual SbBool | getMinVecsSet (int set_index, float &min) const |
Gets the min module of a set of vectors. | |
virtual SbBool | getMaxValuesSet (int set_index, float &max) const |
Gets the max of a set of scalars. | |
virtual SbBool | getMaxVecsSet (int set_index, float &max) const |
Gets the max module of a set of vectors. | |
virtual SbBox3f | getSmallestCellBox (int &cell_index) const |
Gets the smallest cell's bounding box, returns also the index of this cell. | |
virtual SbBox3f | getBiggestCellBox (int &cell_index) const |
Gets the biggest cell's bounding box, returns also the index of this cell. | |
virtual void | setCoordinates (const float *x_nod, const float *y_nod, const float *z_nod) |
Set new node coordinates without modifying the mesh topology. | |
virtual void | getCoordinates (const float *&xnod, const float *&ynod, const float *&znod, int &size_xnod, int &size_ynod, int &size_znod) const |
Get the current coordinates of the nodes of this mesh. | |
Public Member Functions inherited from PbBase | |
void | enableConnection (SbBool flag) |
Activates/deactivates the mechanism of connection. | |
SbBool | isConnectionEnabled () const |
Returns TRUE if the connection mechanism is active, otherwise FALSE. | |
void | touch () |
Simulates the changing of an instance of this object, so all connected objects are informed of this change. | |
PbBase & | operator= (const PbBase &base) |
Assignment operator. | |
Friends | |
int | operator== (const PbIrregularMesh1D &m1, const PbIrregularMesh1D &m2) |
Equality comparison operator. | |
int | operator!= (const PbIrregularMesh1D &m1, const PbIrregularMesh1D &m2) |
Inequality comparison operator. | |
Additional Inherited Members | |
Public Types inherited from PbMesh | |
enum | DataBinding { PER_CELL = PoMeshProperty::PER_CELL , PER_NODE = PoMeshProperty::PER_NODE } |
Data binding. More... | |
Defines a irregular mono-dimensional mesh.
Definition at line 38 of file PbIrregularMesh1D.h.
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 |
Gets the coordinates of a node.
Implements PbMesh.
PbIrregularMesh1D & PbIrregularMesh1D::operator= | ( | const PbIrregularMesh1D & | mesh | ) |
Assignment operator.
void PbIrregularMesh1D::setGeometry | ( | int | size, |
const float * | x | ||
) |
Defines a new geometry.
|
friend |
Inequality comparison operator.
Definition at line 76 of file PbIrregularMesh1D.h.
|
friend |
Equality comparison operator.