PbPixelCell Class Reference
[Property/Data]

MeshViz Defines a pixel cell of a surface mesh. More...

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

Inheritance diagram for PbPixelCell:
PbCell PbBase

List of all members.

Public Member Functions

 PbPixelCell (const PbMesh *owner_mesh)
 PbPixelCell (const PbPixelCell &cell)
 ~PbPixelCell ()
PbPixelCelloperator= (const PbPixelCell &cell)
float getLongestEdgeLength () const
SbBox3f getBoundingBox () const
void getBounds (float &xmin, float &ymin, float &zmin, float &xmax, float &ymax, float &zmax) const
SbVec3f getCenter () const
float getVolume () const
float getArea () const
virtual void getNodesIndexOfEdge (int edge, PbArrayOfInt &nodes_index) const
virtual void getNodesIndexOfFacet (int facet, PbArrayOfInt &nodes_index) const
virtual void getNodesLocalIndexOfEdge (int edge, PbArrayOfInt &nodes_index) const
virtual void getNodesLocalIndexOfFacet (int facet, PbArrayOfInt &nodes_index) const
virtual int locatePoint (const SbVec3f &coord, float tolerance, SbVec3f &pcoord) const
virtual void getWeight (const SbVec3f &pcoord, float *weight) const
float getValue (const SbVec3f &pcoord, const float *s) const
SbVec3f getValue (const SbVec3f &pcoord, const SbVec3f *v) const

Detailed Description

MeshViz Defines a pixel cell of a surface mesh.

A pixel cell is a rectangle of which edges are parallel to X, Y axes.

Nodes and edges are numbered as following :

                           3-----------2   edge 0 = 01
      j                    |           |   edge 1 = 12
                           |           |   edge 2 = 23
      |                    |           |   edge 3 = 30
      |                    |           |
      |                    |           |
      x------> i           0-----------1
   

Constructor & Destructor Documentation

PbPixelCell::PbPixelCell ( const PbMesh owner_mesh  ) 

Constructor of a default simple cell.

PbPixelCell::PbPixelCell ( const PbPixelCell cell  ) 

Copy constructor.

PbPixelCell::~PbPixelCell (  ) 

Destructor.


Member Function Documentation

float PbPixelCell::getArea (  )  const [inline, virtual]

Gets the area of a cell.

Implements PbCell.

SbBox3f PbPixelCell::getBoundingBox (  )  const [virtual]

Gets the cell's bounding box.

Reimplemented from PbCell.

void PbPixelCell::getBounds ( float &  xmin,
float &  ymin,
float &  zmin,
float &  xmax,
float &  ymax,
float &  zmax 
) const [virtual]

Gets the cell's bounds.

Similar to getBoundingBox() but it does not use any SbBox object.

Reimplemented from PbCell.

SbVec3f PbPixelCell::getCenter (  )  const [virtual]

Gets the cell's geometric center.

Reimplemented from PbCell.

float PbPixelCell::getLongestEdgeLength (  )  const [virtual]

Gets the length of the longest edge of the cell.

Implements PbCell.

virtual void PbPixelCell::getNodesIndexOfEdge ( int  edge,
PbArrayOfInt nodes_index 
) const [virtual]

Gets the array of 2 index mesh's nodes that belongs to a given edge of this cell.

(edge must be >=0 and < 4)

Implements PbCell.

virtual void PbPixelCell::getNodesIndexOfFacet ( int  facet,
PbArrayOfInt nodes_index 
) const [virtual]

Gets the array of index mesh's nodes that belongs to a given facet of this cell.

(facet must be == 0).

Implements PbCell.

virtual void PbPixelCell::getNodesLocalIndexOfEdge ( int  edge,
PbArrayOfInt nodes_index 
) const [virtual]

Gets the array of 2 nodes index that belongs to a given edge of this cell.

edge must be >=0 and < 4. Each index is >=0 and < 4

Implements PbCell.

virtual void PbPixelCell::getNodesLocalIndexOfFacet ( int  facet,
PbArrayOfInt nodes_index 
) const [virtual]

Gets the array of node index that belongs to a given facet of this cell.

facet must be == 0. Each index is >=0 and < 4.

Implements PbCell.

SbVec3f PbPixelCell::getValue ( const SbVec3f pcoord,
const SbVec3f v 
) const [virtual]

Get the vector value of a point in the cell.

Parameters:
pcoord [in] Parametric [0..1] coordinate of the point inside the cell.
v [in] The vector dataset to interpolate
Returns:
The interpolated value

Reimplemented from PbCell.

float PbPixelCell::getValue ( const SbVec3f pcoord,
const float *  s 
) const [virtual]

Get the scalar value of a point in the cell.

Parameters:
pcoord [in] Parametric [0..1] coordinate of the point inside the cell.
s [in] The scalar dataset to interpolate
Returns:
The interpolated value

Reimplemented from PbCell.

float PbPixelCell::getVolume (  )  const [inline, virtual]

Returns always 0.

Implements PbCell.

virtual void PbPixelCell::getWeight ( const SbVec3f pcoord,
float *  weight 
) const [virtual]

Gets the 4 weights of a point defined by its parametric coordinates.

Implements PbCell.

virtual int PbPixelCell::locatePoint ( const SbVec3f coord,
float  tolerance,
SbVec3f pcoord 
) const [virtual]

Returns 1 if the point is inside the cell, 0 otherwise.

Gets also the parametric coordinate of the point and its weights

Implements PbCell.

PbPixelCell& PbPixelCell::operator= ( const PbPixelCell cell  ) 

Assignment operator.

Reimplemented from PbCell.


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/