PbPolarGrid2D Class Reference
[Property/Data]

MeshViz Defines a polar grid surface mesh. More...

#include <MeshViz/3Ddata/PbPolarGrid2D.h>

Inheritance diagram for PbPolarGrid2D:
PbGrid2D PbMesh2D PbMesh PbBase

List of all members.

Public Member Functions

 PbPolarGrid2D (SbBool isDataDuplicate=TRUE)
 PbPolarGrid2D (const PbPolarGrid2D &mesh)
 PbPolarGrid2D (int num_r, int num_t, const float *r, const float *t, SbBool isDataDuplicate=TRUE)
 PbPolarGrid2D (int num_r, int num_t, const float *r, const float *t, const float *z, SbBool isDataDuplicate=TRUE)
 ~PbPolarGrid2D ()
PbPolarGrid2Doperator= (const PbPolarGrid2D &mesh)
virtual const PbCellgetCell (int cell_index) const
virtual SbVec3f getNodeCoord (int nod_index) const
virtual SbVec3f getNodeCoord (int i, int j) const

Friends

int operator== (const PbPolarGrid2D &m1, const PbPolarGrid2D &m2)
int operator!= (const PbPolarGrid2D &m1, const PbPolarGrid2D &m2)

Detailed Description

MeshViz Defines a polar grid surface mesh.

Class to define a surface mesh represented by a grid with polar coordinates. This mesh is defined by a matrix num_r * num_t points forming (num_r - 1) * (num_t - 1) quadrangles. Each point with index (i, j) in the mesh (except for points along the mesh border) is connected to four points with indices (i+1,j), (i,j+1), (i-1,j), (i,j-1). r is an array of num_r radius, t an array of num_t angles, and z an array of num_r * num_t floats.

The values on the mesh nodes are defined by the PbMesh::addValuesSet(set_index,val) method, where val argument is an array of num_r * num_t floats.


Constructor & Destructor Documentation

PbPolarGrid2D::PbPolarGrid2D ( SbBool  isDataDuplicate = TRUE  ) 

Constructor of a default simple mesh.

See also PbMesh for more explanations about data duplication.

PbPolarGrid2D::PbPolarGrid2D ( const PbPolarGrid2D mesh  ) 

Copy constructor.

PbPolarGrid2D::PbPolarGrid2D ( int  num_r,
int  num_t,
const float *  r,
const float *  t,
SbBool  isDataDuplicate = TRUE 
)

Constructor of a 2D surface mesh.

See also PbMesh for more explanations about data duplication.

PbPolarGrid2D::PbPolarGrid2D ( int  num_r,
int  num_t,
const float *  r,
const float *  t,
const float *  z,
SbBool  isDataDuplicate = TRUE 
)

Constructor of a 3D surface mesh.

See also PbMesh for more explanations about data duplication.

PbPolarGrid2D::~PbPolarGrid2D (  ) 

Destructor.


Member Function Documentation

virtual const PbCell* PbPolarGrid2D::getCell ( int  cell_index  )  const [virtual]

Returns always NULL.

Implements PbMesh.

virtual SbVec3f PbPolarGrid2D::getNodeCoord ( int  i,
int  j 
) const [virtual]

Gets the coordinates of a node defined by its i,j indices on the grid.

Implements PbGrid2D.

virtual SbVec3f PbPolarGrid2D::getNodeCoord ( int  nod_index  )  const [virtual]

Gets the coordinates of a node defined by its index on the grid.

Implements PbGrid2D.

PbPolarGrid2D& PbPolarGrid2D::operator= ( const PbPolarGrid2D mesh  ) 

Assignment operator.

Reimplemented from PbGrid2D.


Friends And Related Function Documentation

int operator!= ( const PbPolarGrid2D m1,
const PbPolarGrid2D m2 
) [friend]

Inequality comparison operator.

int operator== ( const PbPolarGrid2D m1,
const PbPolarGrid2D m2 
) [friend]

Equality comparison operator.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/