SALOME - SMESH
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 NbElements (SMDSAbs_ElementType type=SMDSAbs_All) const
 
int NbEntities (SMDSAbs_EntityType type) const
 
int Nb0DElements () 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) const
 
void RemoveEdge (const SMDS_MeshElement *el)
 
void RemoveFace (const SMDS_MeshElement *el)
 
void RemoveVolume (const SMDS_MeshElement *el)
 

Private Attributes

int myNbNodes
 
int myNb0DElements
 
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 40 of file SMDS_MeshInfo.hxx.

Constructor & Destructor Documentation

◆ SMDS_MeshInfo()

Member Function Documentation

◆ Clear()

void SMDS_MeshInfo::Clear ( )

Definition at line 169 of file SMDS_MeshInfo.hxx.

References myNb, myNbPolygons, and myNbPolyhedrons.

◆ NbNodes()

int SMDS_MeshInfo::NbNodes ( ) const

Definition at line 47 of file SMDS_MeshInfo.hxx.

References SMDSAbs_All.

◆ NbElements()

◆ NbEntities()

◆ Nb0DElements()

int SMDS_MeshInfo::Nb0DElements ( ) const

Definition at line 51 of file SMDS_MeshInfo.hxx.

References ORDER_ANY.

◆ NbEdges()

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

Definition at line 199 of file SMDS_MeshInfo.hxx.

References myNbEdges, myNbQuadEdges, ORDER_ANY, and ORDER_LINEAR.

◆ NbFaces()

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

Definition at line 203 of file SMDS_MeshInfo.hxx.

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

Here is the call graph for this function:

◆ NbTriangles()

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

Definition at line 207 of file SMDS_MeshInfo.hxx.

References myNbQuadTriangles, myNbTriangles, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbFaces().

Here is the caller graph for this function:

◆ NbQuadrangles()

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

Definition at line 211 of file SMDS_MeshInfo.hxx.

References myNbQuadQuadrangles, myNbQuadrangles, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbFaces().

Here is the caller graph for this function:

◆ NbPolygons()

int SMDS_MeshInfo::NbPolygons ( ) const

Definition at line 56 of file SMDS_MeshInfo.hxx.

References ORDER_ANY.

◆ NbVolumes()

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

Definition at line 215 of file SMDS_MeshInfo.hxx.

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

Here is the call graph for this function:

◆ NbTetras()

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

Definition at line 219 of file SMDS_MeshInfo.hxx.

References myNbQuadTetras, myNbTetras, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbVolumes().

Here is the caller graph for this function:

◆ NbHexas()

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

Definition at line 223 of file SMDS_MeshInfo.hxx.

References myNbHexas, myNbQuadHexas, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbVolumes().

Here is the caller graph for this function:

◆ NbPyramids()

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

Definition at line 227 of file SMDS_MeshInfo.hxx.

References myNbPyramids, myNbQuadPyramids, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbVolumes().

Here is the caller graph for this function:

◆ NbPrisms()

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

Definition at line 231 of file SMDS_MeshInfo.hxx.

References myNbPrisms, myNbQuadPrisms, ORDER_ANY, and ORDER_LINEAR.

Referenced by NbVolumes().

Here is the caller graph for this function:

◆ NbPolyhedrons()

int SMDS_MeshInfo::NbPolyhedrons ( ) const

Definition at line 63 of file SMDS_MeshInfo.hxx.

◆ remove()

void SMDS_MeshInfo::remove ( const SMDS_MeshElement el)
private

Definition at line 179 of file SMDS_MeshInfo.hxx.

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

Here is the call graph for this function:

◆ add()

void SMDS_MeshInfo::add ( const SMDS_MeshElement el)
private

Definition at line 183 of file SMDS_MeshInfo.hxx.

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

Here is the call graph for this function:

◆ index()

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

Definition at line 175 of file SMDS_MeshInfo.hxx.

References myShift.

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

Here is the caller graph for this function:

◆ RemoveEdge()

void SMDS_MeshInfo::RemoveEdge ( const SMDS_MeshElement el)
private

Definition at line 187 of file SMDS_MeshInfo.hxx.

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

Here is the call graph for this function:

◆ RemoveFace()

void SMDS_MeshInfo::RemoveFace ( const SMDS_MeshElement el)
private

Definition at line 191 of file SMDS_MeshInfo.hxx.

References SMDS_MeshElement::IsPoly(), and myNbPolygons.

Here is the call graph for this function:

◆ RemoveVolume()

void SMDS_MeshInfo::RemoveVolume ( const SMDS_MeshElement el)
private

Definition at line 195 of file SMDS_MeshInfo.hxx.

References SMDS_MeshElement::IsPoly(), and myNbPolyhedrons.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ SMDS_Mesh

friend class SMDS_Mesh
friend

Definition at line 66 of file SMDS_MeshInfo.hxx.

Field Documentation

◆ myNbNodes

int SMDS_MeshInfo::myNbNodes
private

Definition at line 77 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), and SMDS_MeshInfo().

◆ myNb0DElements

int SMDS_MeshInfo::myNb0DElements
private

Definition at line 79 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), and SMDS_MeshInfo().

◆ myNbEdges

int SMDS_MeshInfo::myNbEdges
private

Definition at line 80 of file SMDS_MeshInfo.hxx.

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

◆ myNbQuadEdges

int SMDS_MeshInfo::myNbQuadEdges
private

Definition at line 80 of file SMDS_MeshInfo.hxx.

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

◆ myNbTriangles

int SMDS_MeshInfo::myNbTriangles
private

Definition at line 81 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbTriangles(), and SMDS_MeshInfo().

◆ myNbQuadTriangles

int SMDS_MeshInfo::myNbQuadTriangles
private

Definition at line 81 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbTriangles(), and SMDS_MeshInfo().

◆ myNbQuadrangles

int SMDS_MeshInfo::myNbQuadrangles
private

Definition at line 82 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbQuadrangles(), and SMDS_MeshInfo().

◆ myNbQuadQuadrangles

int SMDS_MeshInfo::myNbQuadQuadrangles
private

Definition at line 82 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbQuadrangles(), and SMDS_MeshInfo().

◆ myNbPolygons

int SMDS_MeshInfo::myNbPolygons
private

Definition at line 83 of file SMDS_MeshInfo.hxx.

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

◆ myNbTetras

int SMDS_MeshInfo::myNbTetras
private

Definition at line 85 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbTetras(), and SMDS_MeshInfo().

◆ myNbQuadTetras

int SMDS_MeshInfo::myNbQuadTetras
private

Definition at line 85 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbTetras(), and SMDS_MeshInfo().

◆ myNbHexas

int SMDS_MeshInfo::myNbHexas
private

Definition at line 86 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbHexas(), and SMDS_MeshInfo().

◆ myNbQuadHexas

int SMDS_MeshInfo::myNbQuadHexas
private

Definition at line 86 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbHexas(), and SMDS_MeshInfo().

◆ myNbPyramids

int SMDS_MeshInfo::myNbPyramids
private

Definition at line 87 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbPyramids(), and SMDS_MeshInfo().

◆ myNbQuadPyramids

int SMDS_MeshInfo::myNbQuadPyramids
private

Definition at line 87 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbPyramids(), and SMDS_MeshInfo().

◆ myNbPrisms

int SMDS_MeshInfo::myNbPrisms
private

Definition at line 88 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbPrisms(), and SMDS_MeshInfo().

◆ myNbQuadPrisms

int SMDS_MeshInfo::myNbQuadPrisms
private

Definition at line 88 of file SMDS_MeshInfo.hxx.

Referenced by NbElements(), NbEntities(), NbPrisms(), and SMDS_MeshInfo().

◆ myNbPolyhedrons

int SMDS_MeshInfo::myNbPolyhedrons
private

Definition at line 89 of file SMDS_MeshInfo.hxx.

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

◆ myNb

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

Definition at line 91 of file SMDS_MeshInfo.hxx.

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

◆ myShift

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

Definition at line 92 of file SMDS_MeshInfo.hxx.

Referenced by index(), and SMDS_MeshInfo().