SALOME - SMESH
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SMDS_MeshInfo Class Reference

#include <SMDS_MeshInfo.hxx>

Collaboration diagram for SMDS_MeshInfo:
Collaboration graph

Public Member Functions

 SMDS_MeshInfo ()
 
void Clear ()
 
int NbNodes () const
 
int NbEdges (SMDSAbs_ElementOrder order=ORDER_ANY) const
 
int NbFaces (SMDSAbs_ElementOrder order=ORDER_ANY) const
 
int NbTriangles (SMDSAbs_ElementOrder order=ORDER_ANY) const
 
int NbQuadrangles (SMDSAbs_ElementOrder order=ORDER_ANY) const
 
int NbPolygons () const
 
int NbVolumes (SMDSAbs_ElementOrder order=ORDER_ANY) const
 
int NbTetras (SMDSAbs_ElementOrder order=ORDER_ANY) const
 
int NbHexas (SMDSAbs_ElementOrder order=ORDER_ANY) const
 
int NbPyramids (SMDSAbs_ElementOrder order=ORDER_ANY) const
 
int NbPrisms (SMDSAbs_ElementOrder order=ORDER_ANY) const
 
int NbPolyhedrons () const
 

Private Member Functions

void remove (const SMDS_MeshElement *el)
 
void add (const SMDS_MeshElement *el)
 
int index (SMDSAbs_ElementType type, int nbNodes)
 
void RemoveEdge (const SMDS_MeshElement *el)
 
void RemoveFace (const SMDS_MeshElement *el)
 
void RemoveVolume (const SMDS_MeshElement *el)
 

Private Attributes

int myNbNodes
 
int myNbEdges
 
int myNbQuadEdges
 
int myNbTriangles
 
int myNbQuadTriangles
 
int myNbQuadrangles
 
int myNbQuadQuadrangles
 
int myNbPolygons
 
int myNbTetras
 
int myNbQuadTetras
 
int myNbHexas
 
int myNbQuadHexas
 
int myNbPyramids
 
int myNbQuadPyramids
 
int myNbPrisms
 
int myNbQuadPrisms
 
int myNbPolyhedrons
 
std::vector< int * > myNb
 
std::vector< intmyShift
 

Friends

class SMDS_Mesh
 

Detailed Description

Definition at line 35 of file SMDS_MeshInfo.hxx.

Constructor & Destructor Documentation

Member Function Documentation

void SMDS_MeshInfo::Clear ( )

Definition at line 151 of file SMDS_MeshInfo.hxx.

References myNb, myNbPolygons, and myNbPolyhedrons.

int SMDS_MeshInfo::NbNodes ( ) const

Definition at line 42 of file SMDS_MeshInfo.hxx.

int SMDS_MeshInfo::NbEdges ( SMDSAbs_ElementOrder  order = ORDER_ANY) const

Definition at line 180 of file SMDS_MeshInfo.hxx.

References myNbEdges, myNbQuadEdges, ORDER_ANY, and ORDER_LINEAR.

int SMDS_MeshInfo::NbFaces ( SMDSAbs_ElementOrder  order = ORDER_ANY) const

Definition at line 184 of file SMDS_MeshInfo.hxx.

References myNbPolygons, NbQuadrangles(), NbTriangles(), and ORDER_QUADRATIC.

Here is the call graph for this function:

int SMDS_MeshInfo::NbTriangles ( SMDSAbs_ElementOrder  order = ORDER_ANY) const

Definition at line 188 of file SMDS_MeshInfo.hxx.

References myNbQuadTriangles, myNbTriangles, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbFaces().

Here is the caller graph for this function:

int SMDS_MeshInfo::NbQuadrangles ( SMDSAbs_ElementOrder  order = ORDER_ANY) const

Definition at line 192 of file SMDS_MeshInfo.hxx.

References myNbQuadQuadrangles, myNbQuadrangles, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbFaces().

Here is the caller graph for this function:

int SMDS_MeshInfo::NbPolygons ( ) const

Definition at line 48 of file SMDS_MeshInfo.hxx.

int SMDS_MeshInfo::NbVolumes ( SMDSAbs_ElementOrder  order = ORDER_ANY) const

Definition at line 196 of file SMDS_MeshInfo.hxx.

References myNbPolyhedrons, NbHexas(), NbPrisms(), NbPyramids(), NbTetras(), and ORDER_QUADRATIC.

Here is the call graph for this function:

int SMDS_MeshInfo::NbTetras ( SMDSAbs_ElementOrder  order = ORDER_ANY) const

Definition at line 200 of file SMDS_MeshInfo.hxx.

References myNbQuadTetras, myNbTetras, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbVolumes().

Here is the caller graph for this function:

int SMDS_MeshInfo::NbHexas ( SMDSAbs_ElementOrder  order = ORDER_ANY) const

Definition at line 204 of file SMDS_MeshInfo.hxx.

References myNbHexas, myNbQuadHexas, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbVolumes().

Here is the caller graph for this function:

int SMDS_MeshInfo::NbPyramids ( SMDSAbs_ElementOrder  order = ORDER_ANY) const

Definition at line 208 of file SMDS_MeshInfo.hxx.

References myNbPyramids, myNbQuadPyramids, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbVolumes().

Here is the caller graph for this function:

int SMDS_MeshInfo::NbPrisms ( SMDSAbs_ElementOrder  order = ORDER_ANY) const

Definition at line 212 of file SMDS_MeshInfo.hxx.

References myNbPrisms, myNbQuadPrisms, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbVolumes().

Here is the caller graph for this function:

int SMDS_MeshInfo::NbPolyhedrons ( ) const

Definition at line 55 of file SMDS_MeshInfo.hxx.

void SMDS_MeshInfo::remove ( const SMDS_MeshElement el)
private

Definition at line 160 of file SMDS_MeshInfo.hxx.

References SMDS_MeshElement::GetType(), index(), myNb, and SMDS_MeshElement::NbNodes().

Here is the call graph for this function:

void SMDS_MeshInfo::add ( const SMDS_MeshElement el)
private

Definition at line 164 of file SMDS_MeshInfo.hxx.

References SMDS_MeshElement::GetType(), index(), myNb, and SMDS_MeshElement::NbNodes().

Here is the call graph for this function:

int SMDS_MeshInfo::index ( SMDSAbs_ElementType  type,
int  nbNodes 
)
private

Definition at line 156 of file SMDS_MeshInfo.hxx.

References myShift.

Referenced by add(), remove(), and SMDS_MeshInfo().

Here is the caller graph for this function:

void SMDS_MeshInfo::RemoveEdge ( const SMDS_MeshElement el)
private

Definition at line 168 of file SMDS_MeshInfo.hxx.

References SMDS_MeshElement::IsQuadratic(), myNbEdges, and myNbQuadEdges.

Here is the call graph for this function:

void SMDS_MeshInfo::RemoveFace ( const SMDS_MeshElement el)
private

Definition at line 172 of file SMDS_MeshInfo.hxx.

References SMDS_MeshElement::IsPoly(), and myNbPolygons.

Here is the call graph for this function:

void SMDS_MeshInfo::RemoveVolume ( const SMDS_MeshElement el)
private

Definition at line 176 of file SMDS_MeshInfo.hxx.

References SMDS_MeshElement::IsPoly(), and myNbPolyhedrons.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class SMDS_Mesh
friend

Definition at line 58 of file SMDS_MeshInfo.hxx.

Field Documentation

int SMDS_MeshInfo::myNbNodes
private

Definition at line 69 of file SMDS_MeshInfo.hxx.

Referenced by SMDS_MeshInfo().

int SMDS_MeshInfo::myNbEdges
private

Definition at line 71 of file SMDS_MeshInfo.hxx.

Referenced by NbEdges(), RemoveEdge(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbQuadEdges
private

Definition at line 71 of file SMDS_MeshInfo.hxx.

Referenced by NbEdges(), RemoveEdge(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbTriangles
private

Definition at line 72 of file SMDS_MeshInfo.hxx.

Referenced by NbTriangles(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbQuadTriangles
private

Definition at line 72 of file SMDS_MeshInfo.hxx.

Referenced by NbTriangles(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbQuadrangles
private

Definition at line 73 of file SMDS_MeshInfo.hxx.

Referenced by NbQuadrangles(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbQuadQuadrangles
private

Definition at line 73 of file SMDS_MeshInfo.hxx.

Referenced by NbQuadrangles(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbPolygons
private

Definition at line 74 of file SMDS_MeshInfo.hxx.

Referenced by Clear(), NbFaces(), and RemoveFace().

int SMDS_MeshInfo::myNbTetras
private

Definition at line 76 of file SMDS_MeshInfo.hxx.

Referenced by NbTetras(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbQuadTetras
private

Definition at line 76 of file SMDS_MeshInfo.hxx.

Referenced by NbTetras(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbHexas
private

Definition at line 77 of file SMDS_MeshInfo.hxx.

Referenced by NbHexas(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbQuadHexas
private

Definition at line 77 of file SMDS_MeshInfo.hxx.

Referenced by NbHexas(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbPyramids
private

Definition at line 78 of file SMDS_MeshInfo.hxx.

Referenced by NbPyramids(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbQuadPyramids
private

Definition at line 78 of file SMDS_MeshInfo.hxx.

Referenced by NbPyramids(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbPrisms
private

Definition at line 79 of file SMDS_MeshInfo.hxx.

Referenced by NbPrisms(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbQuadPrisms
private

Definition at line 79 of file SMDS_MeshInfo.hxx.

Referenced by NbPrisms(), and SMDS_MeshInfo().

int SMDS_MeshInfo::myNbPolyhedrons
private

Definition at line 80 of file SMDS_MeshInfo.hxx.

Referenced by Clear(), NbVolumes(), and RemoveVolume().

std::vector<int*> SMDS_MeshInfo::myNb
private

Definition at line 82 of file SMDS_MeshInfo.hxx.

Referenced by add(), Clear(), remove(), and SMDS_MeshInfo().

std::vector<int> SMDS_MeshInfo::myShift
private

Definition at line 83 of file SMDS_MeshInfo.hxx.

Referenced by index(), and SMDS_MeshInfo().