Version: 9.16.0
SMESH::MeshInfo Class Reference

Store statistics on mesh object. More...

#include <SMESHGUI_SelectionProxy.h>

Public Member Functions

 MeshInfo ()
 Constructor. More...
 
uint info (int) const
 Get number of entities of given type. More...
 
uint operator[] (int)
 Access operator. More...
 
uint count (int, int) const
 Get total number of entities for types in given range. More...
 

Private Member Functions

void addInfo (int, long)
 Add information on given entity type. More...
 

Private Attributes

QMap< int, long > myInfo
 

Friends

class SelectionProxy
 

Detailed Description

Store statistics on mesh object.

Constructor & Destructor Documentation

◆ MeshInfo()

SMESH::MeshInfo::MeshInfo ( )

Constructor.

Member Function Documentation

◆ addInfo()

void SMESH::MeshInfo::addInfo ( int  type,
long  value 
)
private

Add information on given entity type.

Parameters
typeEntity type.
valueNumber of entities.

Referenced by SMESH::SelectionProxy::meshInfo().

◆ count()

uint SMESH::MeshInfo::count ( int  fromType,
int  toType 
) const

Get total number of entities for types in given range.

Parameters
fromTypeLower entity type.
toTypeUpper entity type.
Returns
Number of entities.

Referenced by SMESHGUI_BaseInfo::showInfo().

◆ info()

uint SMESH::MeshInfo::info ( int  type) const

Get number of entities of given type.

Parameters
typeEntity type.
Returns
Number of entities.

◆ operator[]()

uint SMESH::MeshInfo::operator[] ( int  type)

Access operator.

Parameters
typeEntity type.
Returns
Number of entities.

Friends And Related Function Documentation

◆ SelectionProxy

friend class SelectionProxy
friend

Field Documentation

◆ myInfo

QMap<int, long> SMESH::MeshInfo::myInfo
private