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 |
Store statistics on mesh object.
| SMESH::MeshInfo::MeshInfo | ( | ) |
Constructor.
|
private |
Add information on given entity type.
| type | Entity type. |
| value | Number of entities. |
Referenced by SMESH::SelectionProxy::meshInfo().
| uint SMESH::MeshInfo::count | ( | int | fromType, |
| int | toType | ||
| ) | const |
Get total number of entities for types in given range.
| fromType | Lower entity type. |
| toType | Upper entity type. |
Referenced by SMESHGUI_BaseInfo::showInfo().
| uint SMESH::MeshInfo::info | ( | int | type | ) | const |
Get number of entities of given type.
| type | Entity type. |
| uint SMESH::MeshInfo::operator[] | ( | int | type | ) |
Access operator.
| type | Entity type. |
|
friend |
|
private |