Class loading and holding information of a mesh object (mesh, group, submesh) not yet loaded from HDF file of study. More...
#include <SMESH_PreMeshInfo.hxx>
Public Member Functions | |
void | FullLoadFromFile () const |
Reads all data and remove all SMESH_PreMeshInfo fields from objects. More... | |
void | ForgetAllData () const |
Remove all SMESH_PreMeshInfo fields from objects w/o data loading. More... | |
void | ForgetOrLoad () const |
Calls either FullLoadFromFile() or ForgetAllData() depending on preferences. More... | |
SMESH::array_of_ElementType * | GetTypes () const |
Method of SMESH_IDSource interface. More... | |
SMESH::smIdType_array * | GetMeshInfo () const |
Method of SMESH_IDSource interface returning nb elements by element type. More... | |
bool | IsMeshInfoCorrect () const |
Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet fully loaded from the file of study. More... | |
~SMESH_PreMeshInfo () | |
Release temporary files. More... | |
void | Clear () |
smIdType | NbElements (SMDSAbs_ElementType type=SMDSAbs_All) const |
smIdType | NbElements (SMDSAbs_EntityType type) const |
smIdType | NbElements (SMDSAbs_GeometryType type) const |
smIdType | NbEntities (SMDSAbs_EntityType type) const |
smIdType | NbElementsOfGeom (SMDSAbs_GeometryType geom) const |
smIdType | NbNodes () const |
smIdType | Nb0DElements () const |
smIdType | NbBalls () const |
smIdType | NbEdges (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbFaces (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbTriangles (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbQuadrangles (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbBiQuadTriangles () const |
smIdType | NbBiQuadQuadrangles () const |
smIdType | NbPolygons (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbVolumes (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbTetras (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbHexas (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbPyramids (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbPrisms (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbHexPrisms (SMDSAbs_ElementOrder order=ORDER_ANY) const |
smIdType | NbTriQuadHexas () const |
smIdType | NbQuadPrisms () const |
smIdType | NbBiQuadPrisms () const |
smIdType | NbPolyhedrons () const |
Static Public Member Functions | |
static void | LoadFromFile (SMESH_Mesh_i *mesh, const int meshID, const std::string &medFile, const std::string &hdfFile, const bool toRemoveFiles) |
fills SMESH_PreMeshInfo field of all objects of mesh More... | |
static void | SaveToFile (SMESH_Mesh_i *mesh, const int meshID, HDFfile *hdfFile) |
Saves SMESH_PreMeshInfo to the study file. More... | |
static void | ForgetAllData (SMESH_Mesh_i *mesh) |
remove all SMESH_PreMeshInfo fields from mesh and its child objects w/o data loading More... | |
static void | RemoveStudyFiles_TMP_METHOD (SALOMEDS::SComponent_ptr smeshComp) |
TEMPORARY method to remove study files on closing study; RIGHT WAY: study files are remove automatically when meshes are destroyed. More... | |
Protected Member Functions | |
void | addWithPoly (const SMDS_MeshElement *el) |
void | setNb (const SMDSAbs_EntityType geomType, const smIdType nb) |
Private Member Functions | |
SMESH_PreMeshInfo (SMESH_Mesh_i *mesh, const int meshID, const std::string &medFile, const std::string &hdfFile) | |
Constructor callable by SMESH_PreMeshInfo only. More... | |
SMESH_PreMeshInfo * | newInstance () |
bool | readPreInfoFromHDF () |
Tries to read all SMESH_PreMeshInfo from a HDF file. More... | |
void | hdf2meshInfo (const std::string &dataSetName, HDFgroup *infoHdfGroup, const TColStd_MapOfAsciiString &allHdfNames) |
Reads meshInfo from a HDF file. More... | |
bool | readMeshInfo () |
Reads mesh info of mesh from the med file. More... | |
void | readGroupInfo () |
Reads info of groups from the med file. More... | |
void | readSubMeshInfo () |
Reads info of sub-meshes from hdf file of old study. More... | |
SMDSAbs_EntityType | getElemType (const TopAbs_ShapeEnum shapeType, const int nbElemsInSubMesh, bool &isKoType) const |
Return type of element for sub-mesh on a shape of given type. More... | |
void | readSubMeshes (DriverMED_R_SMESHDS_Mesh *reader) const |
Reads full data of sub-meshes. More... | |
void | remove (const SMDS_MeshElement *el) |
void | add (const SMDS_MeshElement *el) |
smIdType | 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 | |
std::string | _medFileName |
std::string | _hdfFileName |
bool | _toRemoveFiles |
int | _meshID |
SMESH_Mesh_i * | _mesh |
bool | _isInfoOk |
int | _elemCounter |
smIdType | myNbNodes |
smIdType | myNb0DElements |
smIdType | myNbBalls |
smIdType | myNbEdges |
smIdType | myNbQuadEdges |
smIdType | myNbTriangles |
smIdType | myNbQuadTriangles |
smIdType | myNbBiQuadTriangles |
smIdType | myNbQuadrangles |
smIdType | myNbQuadQuadrangles |
smIdType | myNbBiQuadQuadrangles |
smIdType | myNbPolygons |
smIdType | myNbQuadPolygons |
smIdType | myNbTetras |
smIdType | myNbQuadTetras |
smIdType | myNbHexas |
smIdType | myNbQuadHexas |
smIdType | myNbTriQuadHexas |
smIdType | myNbPyramids |
smIdType | myNbQuadPyramids |
smIdType | myNbPrisms |
smIdType | myNbQuadPrisms |
smIdType | myNbBiQuadPrisms |
smIdType | myNbHexPrism |
smIdType | myNbPolyhedrons |
std::vector< smIdType * > | myNb |
std::vector< int > | myShift |
Class loading and holding information of a mesh object (mesh, group, submesh) not yet loaded from HDF file of study.
Usage scenario:
SMESH_PreMeshInfo::~SMESH_PreMeshInfo | ( | ) |
Release temporary files.
References _hdfFileName, _medFileName, _mesh, and _toRemoveFiles.
|
private |
Constructor callable by SMESH_PreMeshInfo only.
Referenced by LoadFromFile(), and newInstance().
|
privateinherited |
|
protectedinherited |
|
inherited |
References SMDS_MeshInfo::myNb, SMDS_MeshInfo::myNbPolygons, SMDS_MeshInfo::myNbPolyhedrons, and SMDS_MeshInfo::myNbQuadPolygons.
Referenced by SMDS_Mesh::Clear().
void SMESH_PreMeshInfo::ForgetAllData | ( | ) | const |
Remove all SMESH_PreMeshInfo fields from objects w/o data loading.
References SMESH_Mesh_i::_mapGroups, SMESH_Mesh_i::_mapSubMeshIor, _mesh, SMESH_Mesh_i::changePreMeshInfo(), SMESH::doNothing(), ForgetAllData(), SMESH_CATCH, and SMESH_TRY.
Referenced by ForgetOrLoad(), and FullLoadFromFile().
|
static |
remove all SMESH_PreMeshInfo fields from mesh and its child objects w/o data loading
References SMESH_Mesh_i::changePreMeshInfo(), and ForgetAllData().
Referenced by SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::CheckGeomModif(), and ForgetAllData().
void SMESH_PreMeshInfo::ForgetOrLoad | ( | ) | const |
Calls either FullLoadFromFile() or ForgetAllData() depending on preferences.
References _mesh, ForgetAllData(), FullLoadFromFile(), SMESH_Gen_i::GetSMESHGen(), and SMESH_Mesh_i::HasShapeToMesh().
Referenced by SMESH_Mesh_i::AddHypothesis(), SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::Clear(), SMESH_Mesh_i::onHypothesisModified(), SMESH_Mesh_i::RemoveHypothesis(), SMESH_Mesh_i::removeHypothesis(), SMESH_Mesh_i::RemoveSubMesh(), SMESH_Mesh_i::removeSubMesh(), and SMESH_Mesh_i::SetMeshOrder().
void SMESH_PreMeshInfo::FullLoadFromFile | ( | ) | const |
Reads all data and remove all SMESH_PreMeshInfo fields from objects.
References _medFileName, _mesh, _meshID, SMESH_Mesh_i::changePreMeshInfo(), SMESH_subMesh::ComputeStateEngine(), SMESH::doNothing(), ForgetAllData(), DriverMED_R_SMESHDS_Mesh::GetGroup(), SMESHDS_Mesh::GetGroups(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetMeshDS(), SMESH_Mesh::GetShapeToMesh(), SMESH_Mesh::GetSubMesh(), SMDS_Mesh::Modified(), MYDEBUGOUT, DriverMED_R_SMESHDS_Mesh::Perform(), readSubMeshes(), Driver_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), SMESH_CATCH, SMESH_TRY, SMESH_subMesh::SUBMESH_LOADED, and SMESH_subMesh::SUBMESH_RESTORED.
Referenced by SMESH_Group_i::Add(), SMESH_Group_i::AddByPredicate(), SMESH_Group_i::AddFrom(), SMESH_Mesh_i::BaryCenter(), SMESH_Group_i::Clear(), SMESH_Mesh_i::ClearSubMesh(), SMESH_GroupBase_i::Contains(), SMESH_Mesh_i::ConvertToStandalone(), SMESH_Mesh_i::CreateDimGroup(), SMESH_Mesh_i::CreateGroup(), SMESH_Mesh_i::CreateGroupFromFilter(), SMESH_Mesh_i::CreateGroupFromGEOM(), SMESH_Mesh_i::CutGroups(), SMESH_Mesh_i::CutListOfGroups(), SMESH_Mesh_i::ElemNbEdges(), SMESH_Mesh_i::ElemNbFaces(), SMESH_Mesh_i::ExportCGNS(), SMESH_Mesh_i::ExportDAT(), SMESH_Mesh_i::ExportGMF(), SMESH_Mesh_i::ExportMED(), SMESH_Mesh_i::ExportMEDCoupling(), SMESH_Mesh_i::ExportPartToMEDCommon(), SMESH_Mesh_i::ExportPartToSTL(), SMESH_Mesh_i::ExportPartToUNV(), SMESH_Mesh_i::ExportSTL(), SMESH_Mesh_i::ExportUNV(), SMESH_Mesh_i::FaceGroupsSeparatedByEdges(), SMESH_Mesh_i::FindElementByNodes(), ForgetOrLoad(), SMESH_Mesh_i::GetBallDiameter(), SMESH_Mesh_i::GetElementGeomType(), SMESH_Mesh_i::GetElementPosition(), SMESH_Mesh_i::GetElementsByNodes(), SMESH_Mesh_i::GetElementsByType(), SMESH_subMesh_i::GetElementsByType(), SMESH_Mesh_i::GetElementShape(), SMESH_Mesh_i::GetElementsId(), SMESH_subMesh_i::GetElementsId(), SMESH_Mesh_i::GetElementType(), SMESH_subMesh_i::GetElementType(), SMESH_Mesh_i::GetElemFaceNodes(), SMESH_Mesh_i::GetElemNbNodes(), SMESH_Mesh_i::GetElemNode(), SMESH_Mesh_i::GetElemNodes(), SMESH_Mesh_i::GetFaceNormal(), SMESH_GroupBase_i::GetID(), SMESH_GroupBase_i::GetListOfID(), SMESH_GroupOnFilter_i::GetListOfID(), SMESH_Mesh_i::GetLog(), SMESH_Mesh_i::GetMeshEditor(), SMESH_Mesh_i::GetMeshEditPreviewer(), SMESH_Mesh_i::GetMeshPtr(), SMESH_GroupBase_i::GetNodeIDs(), SMESH_Mesh_i::GetNodeInverseElements(), SMESH_Mesh_i::GetNodePosition(), SMESH_Mesh_i::GetNodesId(), SMESH_Mesh_i::GetNodeXYZ(), SMESH_GroupBase_i::GetNumberOfNodes(), SMESH_subMesh_i::GetNumberOfNodes(), SMESH_Mesh_i::GetShapeID(), SMESH_Mesh_i::GetShapeIDForElem(), SMESH_Mesh_i::GetSubMeshElementsId(), SMESH_Mesh_i::GetSubMeshElementType(), SMESH_Mesh_i::GetSubMeshNodesId(), SMESH_Mesh_i::IntersectGroups(), SMESH_Mesh_i::IntersectListOfGroups(), SMESH_Mesh_i::IsMediumNode(), SMESH_Mesh_i::IsMediumNodeOfAnyElem(), SMESH_Mesh_i::IsPoly(), SMESH_Mesh_i::IsQuadratic(), SMESH_Mesh_i::Load(), LoadFromFile(), SMESH_GroupOnFilter_i::OnBaseObjModified(), SMESH_Group_i::Remove(), SMESH_Group_i::RemoveByPredicate(), SMESH_Mesh_i::RemoveGroupWithContents(), SMESH_GroupOnFilter_i::SetFilter(), SMESH_Mesh_i::UnionGroups(), and SMESH_Mesh_i::UnionListOfGroups().
|
private |
Return type of element for sub-mesh on a shape of given type.
References _mesh, SMESH_Mesh_i::changePreMeshInfo(), SMDS_MeshInfo::NbEntities(), SMDS_MeshInfo::NbFaces(), SMDS_MeshInfo::NbVolumes(), SMDSEntity_0D, SMDSEntity_Edge, SMDSEntity_Last, SMDSEntity_Tetra, and SMDSEntity_Triangle.
Referenced by readSubMeshInfo().
SMESH::smIdType_array * SMESH_PreMeshInfo::GetMeshInfo | ( | ) | const |
Method of SMESH_IDSource interface returning nb elements by element type.
References SMESH::Entity_Last, SMESH::Entity_Node, and SMDS_MeshInfo::NbEntities().
Referenced by SMESH_GroupBase_i::GetMeshInfo(), SMESH_GroupOnFilter_i::GetMeshInfo(), SMESH_Mesh_i::GetMeshInfo(), SMESH_subMesh_i::GetMeshInfo(), and SaveToFile().
SMESH::array_of_ElementType * SMESH_PreMeshInfo::GetTypes | ( | ) | const |
Method of SMESH_IDSource interface.
References SMESH::BALL, SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, SMDS_MeshInfo::Nb0DElements(), SMDS_MeshInfo::NbBalls(), SMDS_MeshInfo::NbEdges(), SMDS_MeshInfo::NbFaces(), SMDS_MeshInfo::NbVolumes(), and SMESH::VOLUME.
Referenced by SMESH_Mesh_i::GetTypes(), and SMESH_subMesh_i::GetTypes().
|
private |
Reads meshInfo from a HDF file.
References SMDSEntity_Last, and SMDSEntity_Node.
Referenced by readPreInfoFromHDF().
|
privateinherited |
References SMDS_MeshInfo::myShift.
Referenced by SMDS_MeshInfo::add(), SMDS_MeshInfo::NbElements(), SMDS_MeshInfo::remove(), and SMDS_MeshInfo::SMDS_MeshInfo().
bool SMESH_PreMeshInfo::IsMeshInfoCorrect | ( | ) | const |
Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet fully loaded from the file of study.
References _isInfoOk.
Referenced by SMESH_GroupBase_i::IsMeshInfoCorrect(), SMESH_GroupOnFilter_i::IsMeshInfoCorrect(), SMESH_Mesh_i::IsMeshInfoCorrect(), and SMESH_subMesh_i::IsMeshInfoCorrect().
|
static |
fills SMESH_PreMeshInfo field of all objects of mesh
References _toRemoveFiles, SMESH_Mesh_i::changePreMeshInfo(), SMESH::doNothing(), FullLoadFromFile(), readGroupInfo(), readMeshInfo(), readPreInfoFromHDF(), readSubMeshInfo(), SMESH_CATCH, SMESH_PreMeshInfo(), and SMESH_TRY.
Referenced by SMESH_Gen_i::Load().
|
inherited |
|
inherited |
|
inherited |
Referenced by SMESH_Mesh::NbBiQuadPrisms(), and DriverMED_W_SMESHDS_Mesh::PerformInternal().
|
inherited |
|
inherited |
|
inherited |
References SMDS_MeshInfo::myNbEdges, SMDS_MeshInfo::myNbQuadEdges, ORDER_ANY, and ORDER_LINEAR.
Referenced by SMDS_Mesh::edgesIterator(), GetTypes(), SMESH_Mesh_i::NbEdges(), SMDS_Mesh::NbEdges(), SMESH_Mesh::NbEdges(), SMESH_Mesh_i::NbEdgesOfOrder(), and DriverMED_W_SMESHDS_Mesh::PerformInternal().
|
inherited |
References SMDS_MeshInfo::index(), SMDS_MeshInfo::myNb, SMDS_MeshInfo::myNb0DElements, SMDS_MeshInfo::myNbBalls, SMDS_MeshInfo::myNbBiQuadPrisms, SMDS_MeshInfo::myNbBiQuadQuadrangles, SMDS_MeshInfo::myNbBiQuadTriangles, SMDS_MeshInfo::myNbEdges, SMDS_MeshInfo::myNbHexas, SMDS_MeshInfo::myNbHexPrism, SMDS_MeshInfo::myNbNodes, SMDS_MeshInfo::myNbPolygons, SMDS_MeshInfo::myNbPolyhedrons, SMDS_MeshInfo::myNbPrisms, SMDS_MeshInfo::myNbPyramids, SMDS_MeshInfo::myNbQuadEdges, SMDS_MeshInfo::myNbQuadHexas, SMDS_MeshInfo::myNbQuadPolygons, SMDS_MeshInfo::myNbQuadPrisms, SMDS_MeshInfo::myNbQuadPyramids, SMDS_MeshInfo::myNbQuadQuadrangles, SMDS_MeshInfo::myNbQuadrangles, SMDS_MeshInfo::myNbQuadTetras, SMDS_MeshInfo::myNbQuadTriangles, SMDS_MeshInfo::myNbTetras, SMDS_MeshInfo::myNbTriangles, SMDS_MeshInfo::myNbTriQuadHexas, SMDSAbs_0DElement, SMDSAbs_All, SMDSAbs_Ball, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, and SMDSAbs_Volume.
Referenced by SMESH_Gen_i::CopyMesh(), SMESH_Gen_i::CopyMeshWithGeom(), SMESH_MeshEditor::DoubleElements(), SMDS_Mesh::elementEntityIterator(), SMDS_Mesh::elementGeomIterator(), SMDS_Mesh::elementsIterator(), SMESHDS_GroupOnFilter::GetElements(), MeshEditor_I::getElementsAround(), SMESH_GroupOnFilter_i::GetListOfID(), SMESH_GroupBase_i::GetNbElementsByType(), SMESH_Mesh_i::GetNbElementsByType(), SMESH_subMesh_i::GetNbElementsByType(), SMESHGUI_PreVisualObj::GetNbEntities(), SMESH_subMesh_i::GetNumberOfElements(), SMESH_MeshEditor_i::GetPreviewData(), SMESH_ElementSearcherImpl::getTolerance(), SMESH_MeshEditor_i::idSourceToSet(), SMESHDS_GroupBase::IsEmpty(), SMESH::Controls::ConnectedElements::IsSatisfy(), SMESH_Mesh_i::NbElements(), SMDS_Mesh::NbElements(), DriverCGNS_Read::Perform(), DriverCGNS_Write::Perform(), DriverGMF_Read::Perform(), SMESH::Controls::ElementsOnSurface::process(), SMESH_ElementSearcherImpl::Project(), SMESH_Gen_i::Save(), SaveToFile(), DriverMED_W_Field::Set(), and SMESH_GroupBase_i::Size().
|
inherited |
|
inherited |
|
inherited |
References SMDS_MeshInfo::myNb0DElements, SMDS_MeshInfo::myNbBalls, SMDS_MeshInfo::myNbBiQuadPrisms, SMDS_MeshInfo::myNbBiQuadQuadrangles, SMDS_MeshInfo::myNbBiQuadTriangles, SMDS_MeshInfo::myNbEdges, SMDS_MeshInfo::myNbHexas, SMDS_MeshInfo::myNbHexPrism, SMDS_MeshInfo::myNbPolygons, SMDS_MeshInfo::myNbPolyhedrons, SMDS_MeshInfo::myNbPrisms, SMDS_MeshInfo::myNbPyramids, SMDS_MeshInfo::myNbQuadEdges, SMDS_MeshInfo::myNbQuadHexas, SMDS_MeshInfo::myNbQuadPolygons, SMDS_MeshInfo::myNbQuadPrisms, SMDS_MeshInfo::myNbQuadPyramids, SMDS_MeshInfo::myNbQuadQuadrangles, SMDS_MeshInfo::myNbQuadrangles, SMDS_MeshInfo::myNbQuadTetras, SMDS_MeshInfo::myNbQuadTriangles, SMDS_MeshInfo::myNbTetras, SMDS_MeshInfo::myNbTriangles, SMDS_MeshInfo::myNbTriQuadHexas, SMDSGeom_BALL, SMDSGeom_EDGE, SMDSGeom_HEXA, SMDSGeom_HEXAGONAL_PRISM, SMDSGeom_NONE, SMDSGeom_PENTA, SMDSGeom_POINT, SMDSGeom_POLYGON, SMDSGeom_POLYHEDRA, SMDSGeom_PYRAMID, SMDSGeom_QUADRANGLE, SMDSGeom_TETRA, and SMDSGeom_TRIANGLE.
|
inherited |
References SMDS_MeshInfo::myNb0DElements, SMDS_MeshInfo::myNbBalls, SMDS_MeshInfo::myNbBiQuadPrisms, SMDS_MeshInfo::myNbBiQuadQuadrangles, SMDS_MeshInfo::myNbBiQuadTriangles, SMDS_MeshInfo::myNbEdges, SMDS_MeshInfo::myNbHexas, SMDS_MeshInfo::myNbHexPrism, SMDS_MeshInfo::myNbNodes, SMDS_MeshInfo::myNbPolygons, SMDS_MeshInfo::myNbPolyhedrons, SMDS_MeshInfo::myNbPrisms, SMDS_MeshInfo::myNbPyramids, SMDS_MeshInfo::myNbQuadEdges, SMDS_MeshInfo::myNbQuadHexas, SMDS_MeshInfo::myNbQuadPolygons, SMDS_MeshInfo::myNbQuadPrisms, SMDS_MeshInfo::myNbQuadPyramids, SMDS_MeshInfo::myNbQuadQuadrangles, SMDS_MeshInfo::myNbQuadrangles, SMDS_MeshInfo::myNbQuadTetras, SMDS_MeshInfo::myNbQuadTriangles, SMDS_MeshInfo::myNbTetras, SMDS_MeshInfo::myNbTriangles, SMDS_MeshInfo::myNbTriQuadHexas, SMDSEntity_0D, SMDSEntity_Ball, SMDSEntity_BiQuad_Penta, SMDSEntity_BiQuad_Quadrangle, SMDSEntity_BiQuad_Triangle, SMDSEntity_Edge, SMDSEntity_Hexa, SMDSEntity_Hexagonal_Prism, SMDSEntity_Last, SMDSEntity_Node, SMDSEntity_Penta, SMDSEntity_Polygon, SMDSEntity_Polyhedra, SMDSEntity_Pyramid, SMDSEntity_Quad_Edge, SMDSEntity_Quad_Hexa, SMDSEntity_Quad_Penta, SMDSEntity_Quad_Polygon, SMDSEntity_Quad_Polyhedra, SMDSEntity_Quad_Pyramid, SMDSEntity_Quad_Quadrangle, SMDSEntity_Quad_Tetra, SMDSEntity_Quad_Triangle, SMDSEntity_Quadrangle, SMDSEntity_Tetra, SMDSEntity_Triangle, and SMDSEntity_TriQuad_Hexa.
Referenced by StdMeshers_Import_1D::Evaluate(), StdMeshers_Import_1D2D::Evaluate(), getElemType(), SMESH_Mesh_i::GetMeshInfo(), GetMeshInfo(), SMESH_ProxyMesh::NbFaces(), and readGroupInfo().
|
inherited |
References SMDS_MeshInfo::myNbPolygons, SMDS_MeshInfo::myNbQuadPolygons, SMDS_MeshInfo::NbQuadrangles(), SMDS_MeshInfo::NbTriangles(), ORDER_ANY, and ORDER_LINEAR.
Referenced by StdMeshers_PolyhedronPerSolid_3D::Compute(), SMDS_Mesh::facesIterator(), getElemType(), GetTypes(), SMESH_Pattern::Load(), SMESH_MeshAlgos::MakeOffset(), SMESH_Mesh_i::NbFaces(), SMDS_Mesh::NbFaces(), SMESH_Mesh::NbFaces(), and SMESH_Mesh_i::NbFacesOfOrder().
|
inherited |
References SMDS_MeshInfo::myNbHexas, SMDS_MeshInfo::myNbQuadHexas, SMDS_MeshInfo::myNbTriQuadHexas, ORDER_ANY, and ORDER_LINEAR.
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity(), SMESH_Mesh_i::NbHexas(), SMESH_Mesh::NbHexas(), SMESH_Mesh_i::NbHexasOfOrder(), SMDS_MeshInfo::NbVolumes(), and DriverMED_W_SMESHDS_Mesh::PerformInternal().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
References SMDS_MeshInfo::myNbBiQuadPrisms, SMDS_MeshInfo::myNbPrisms, SMDS_MeshInfo::myNbQuadPrisms, ORDER_ANY, and ORDER_LINEAR.
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity(), SMESH_Mesh_i::NbPrisms(), SMESH_Mesh::NbPrisms(), SMESH_Mesh_i::NbPrismsOfOrder(), SMDS_MeshInfo::NbVolumes(), and DriverMED_W_SMESHDS_Mesh::PerformInternal().
|
inherited |
References SMDS_MeshInfo::myNbPyramids, SMDS_MeshInfo::myNbQuadPyramids, ORDER_ANY, and ORDER_LINEAR.
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity(), SMESH_Mesh_i::NbPyramids(), SMESH_Mesh::NbPyramids(), SMESH_Mesh_i::NbPyramidsOfOrder(), SMDS_MeshInfo::NbVolumes(), and DriverMED_W_SMESHDS_Mesh::PerformInternal().
|
inherited |
Referenced by SMESH_Mesh::NbQuadPrisms(), and DriverMED_W_SMESHDS_Mesh::PerformInternal().
|
inherited |
References SMDS_MeshInfo::myNbBiQuadQuadrangles, SMDS_MeshInfo::myNbQuadQuadrangles, SMDS_MeshInfo::myNbQuadrangles, ORDER_ANY, and ORDER_LINEAR.
Referenced by SMDS_MeshInfo::NbFaces(), SMESH_Mesh_i::NbQuadrangles(), SMESH_Mesh::NbQuadrangles(), SMESH_Mesh_i::NbQuadranglesOfOrder(), and DriverMED_W_SMESHDS_Mesh::PerformInternal().
|
inherited |
References SMDS_MeshInfo::myNbQuadTetras, SMDS_MeshInfo::myNbTetras, ORDER_ANY, and ORDER_LINEAR.
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity(), SMESH_Mesh_i::NbTetras(), SMESH_Mesh::NbTetras(), SMESH_Mesh_i::NbTetrasOfOrder(), SMDS_MeshInfo::NbVolumes(), and DriverMED_W_SMESHDS_Mesh::PerformInternal().
|
inherited |
References SMDS_MeshInfo::myNbBiQuadTriangles, SMDS_MeshInfo::myNbQuadTriangles, SMDS_MeshInfo::myNbTriangles, ORDER_ANY, and ORDER_LINEAR.
Referenced by SMESH_MeshAlgos::MakeOffset(), SMDS_MeshInfo::NbFaces(), SMESH_Mesh_i::NbTriangles(), SMESH_Mesh::NbTriangles(), SMESH_Mesh_i::NbTrianglesOfOrder(), and DriverMED_W_SMESHDS_Mesh::PerformInternal().
|
inherited |
|
inherited |
References SMDS_MeshInfo::myNbPolyhedrons, SMDS_MeshInfo::NbHexas(), SMDS_MeshInfo::NbHexPrisms(), SMDS_MeshInfo::NbPrisms(), SMDS_MeshInfo::NbPyramids(), SMDS_MeshInfo::NbTetras(), and ORDER_QUADRATIC.
Referenced by getElemType(), GetTypes(), SMESH_Mesh_i::NbVolumes(), SMDS_Mesh::NbVolumes(), SMESH_Mesh::NbVolumes(), SMESH_Mesh_i::NbVolumesOfOrder(), and SMDS_Mesh::volumesIterator().
|
private |
References _hdfFileName, _medFileName, _mesh, _meshID, and SMESH_PreMeshInfo().
Referenced by readGroupInfo(), readPreInfoFromHDF(), and readSubMeshInfo().
|
private |
Reads info of groups from the med file.
References _elemCounter, _isInfoOk, SMESH_Mesh_i::_mapGroups, _medFileName, _mesh, _meshID, MED::CrWrapperR(), SMDS_MeshInfo::NbEntities(), newInstance(), and SMDS_MeshInfo::setNb().
Referenced by LoadFromFile().
|
private |
Reads mesh info of mesh from the med file.
References _isInfoOk, _medFileName, _meshID, MED::CrWrapperR(), SMDS_MeshInfo::setNb(), and SMDSEntity_Node.
Referenced by LoadFromFile().
|
private |
Tries to read all SMESH_PreMeshInfo from a HDF file.
bool | - true if succeeded |
This method is symmetrical to SaveToFile()
References _hdfFileName, SMESH_Mesh_i::_mapGroups, SMESH_Mesh_i::_mapSubMeshIor, _mesh, _meshID, SMESH_Mesh_i::changePreMeshInfo(), hdf2meshInfo(), and newInstance().
Referenced by LoadFromFile().
|
private |
Reads full data of sub-meshes.
References _hdfFileName, _mesh, _meshID, SMESHDS_SubMesh::AddElement(), SMESHDS_SubMesh::AddNode(), DriverMED_R_SMESHDS_Mesh::CreateAllSubMeshes(), SMDS_Mesh::elementsIterator(), SMDS_Mesh::FindNode(), SMESHDS_SubMesh::GetID(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetMeshDS(), SMDS_MeshNode::GetPosition(), SMESH_Mesh::HasShapeToMesh(), SMESHDS_Mesh::IndexToShape(), SMESHDS_Mesh::MaxShapeIndex(), SMESHDS_Mesh::MaxSubMeshIndex(), SMESHDS_Mesh::NewSubMesh(), SMDS_Mesh::nodesIterator(), SMESHDS_Mesh::RemoveElement(), SMESH_Mesh::SetIsModified(), SMDS_MeshNode::SetPosition(), SMDS_TOP_EDGE, and SMDS_TOP_FACE.
Referenced by FullLoadFromFile().
|
private |
Reads info of sub-meshes from hdf file of old study.
References _elemCounter, _hdfFileName, _isInfoOk, SMESH_Mesh_i::_mapSubMeshIor, _mesh, _meshID, getElemType(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetMeshDS(), SMESH::if(), SMESHDS_Mesh::IndexToShape(), SMESHDS_Mesh::MaxShapeIndex(), SMESHDS_Mesh::MaxSubMeshIndex(), newInstance(), SMDS_MeshInfo::setNb(), and SMDSEntity_Node.
Referenced by LoadFromFile().
|
privateinherited |
References SMDS_MeshElement::GetType(), SMDS_MeshInfo::index(), SMDS_MeshInfo::myNb, and SMDS_MeshElement::NbNodes().
Referenced by SMDS_MeshInfo::RemoveFace(), SMDS_Mesh::RemoveFreeElement(), and SMDS_MeshInfo::RemoveVolume().
|
privateinherited |
References SMDS_MeshElement::IsQuadratic(), SMDS_MeshInfo::myNbEdges, and SMDS_MeshInfo::myNbQuadEdges.
Referenced by SMDS_Mesh::RemoveElement(), and SMDS_Mesh::RemoveFreeElement().
|
privateinherited |
|
static |
TEMPORARY method to remove study files on closing study; RIGHT WAY: study files are remove automatically when meshes are destroyed.
References SMESH_Gen_i::GetSMESHGen(), SMESH_Gen_i::getStudyServant(), and SMESH_Gen_i::SObjectToObject().
Referenced by SMESH_Gen_i::Close().
|
privateinherited |
References SMDS_MeshElement::IsPoly(), SMDS_MeshInfo::myNbPolyhedrons, and SMDS_MeshInfo::remove().
Referenced by SMDS_Mesh::RemoveElement(), and SMDS_Mesh::RemoveFreeElement().
|
static |
Saves SMESH_PreMeshInfo to the study file.
References SMESH_Mesh_i::_mapGroups, SMESH_Mesh_i::_mapSubMeshIor, SMESH::doNothing(), SMESH_Mesh_i::GetImpl(), SMESH_Mesh::GetMeshDS(), SMESH_Mesh_i::GetMeshInfo(), SMDS_Mesh::GetMeshInfo(), GetMeshInfo(), SMESHDS_GroupBase::GetStoreName(), SMDS_MeshInfo::NbElements(), SMDS_MeshInfo::setNb(), SMDSEntity_Node, SMESH_CATCH, and SMESH_TRY.
Referenced by SMESH_Gen_i::Save().
|
protectedinherited |
References SMDS_MeshInfo::myNb0DElements, SMDS_MeshInfo::myNbBalls, SMDS_MeshInfo::myNbBiQuadPrisms, SMDS_MeshInfo::myNbBiQuadQuadrangles, SMDS_MeshInfo::myNbBiQuadTriangles, SMDS_MeshInfo::myNbEdges, SMDS_MeshInfo::myNbHexas, SMDS_MeshInfo::myNbHexPrism, SMDS_MeshInfo::myNbNodes, SMDS_MeshInfo::myNbPolygons, SMDS_MeshInfo::myNbPolyhedrons, SMDS_MeshInfo::myNbPrisms, SMDS_MeshInfo::myNbPyramids, SMDS_MeshInfo::myNbQuadEdges, SMDS_MeshInfo::myNbQuadHexas, SMDS_MeshInfo::myNbQuadPolygons, SMDS_MeshInfo::myNbQuadPrisms, SMDS_MeshInfo::myNbQuadPyramids, SMDS_MeshInfo::myNbQuadQuadrangles, SMDS_MeshInfo::myNbQuadrangles, SMDS_MeshInfo::myNbQuadTetras, SMDS_MeshInfo::myNbQuadTriangles, SMDS_MeshInfo::myNbTetras, SMDS_MeshInfo::myNbTriangles, SMDS_MeshInfo::myNbTriQuadHexas, SMDSEntity_0D, SMDSEntity_Ball, SMDSEntity_BiQuad_Penta, SMDSEntity_BiQuad_Quadrangle, SMDSEntity_BiQuad_Triangle, SMDSEntity_Edge, SMDSEntity_Hexa, SMDSEntity_Hexagonal_Prism, SMDSEntity_Last, SMDSEntity_Node, SMDSEntity_Penta, SMDSEntity_Polygon, SMDSEntity_Polyhedra, SMDSEntity_Pyramid, SMDSEntity_Quad_Edge, SMDSEntity_Quad_Hexa, SMDSEntity_Quad_Penta, SMDSEntity_Quad_Polygon, SMDSEntity_Quad_Polyhedra, SMDSEntity_Quad_Pyramid, SMDSEntity_Quad_Quadrangle, SMDSEntity_Quad_Tetra, SMDSEntity_Quad_Triangle, SMDSEntity_Quadrangle, SMDSEntity_Tetra, SMDSEntity_Triangle, and SMDSEntity_TriQuad_Hexa.
Referenced by readGroupInfo(), readMeshInfo(), readSubMeshInfo(), and SaveToFile().
|
private |
Referenced by readGroupInfo(), and readSubMeshInfo().
|
private |
Referenced by newInstance(), readPreInfoFromHDF(), readSubMeshes(), readSubMeshInfo(), and ~SMESH_PreMeshInfo().
|
private |
Referenced by IsMeshInfoCorrect(), readGroupInfo(), readMeshInfo(), and readSubMeshInfo().
|
private |
Referenced by FullLoadFromFile(), newInstance(), readGroupInfo(), readMeshInfo(), and ~SMESH_PreMeshInfo().
|
private |
|
private |
Referenced by FullLoadFromFile(), newInstance(), readGroupInfo(), readMeshInfo(), readPreInfoFromHDF(), readSubMeshes(), and readSubMeshInfo().
|
private |
Referenced by LoadFromFile(), and ~SMESH_PreMeshInfo().
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
Referenced by SMDS_Mesh::AddPolygonalFaceWithID(), SMDS_MeshInfo::addWithPoly(), SMDS_MeshInfo::Clear(), SMDS_MeshInfo::NbElements(), SMDS_MeshInfo::NbElementsOfGeom(), SMDS_MeshInfo::NbEntities(), SMDS_MeshInfo::NbFaces(), SMDS_MeshInfo::NbPolygons(), SMDS_MeshInfo::operator=(), SMDS_MeshInfo::RemoveFace(), and SMDS_MeshInfo::setNb().
|
privateinherited |
Referenced by SMDS_Mesh::AddPolyhedralVolumeWithID(), SMDS_MeshInfo::addWithPoly(), SMDS_MeshInfo::Clear(), SMDS_MeshInfo::NbElements(), SMDS_MeshInfo::NbElementsOfGeom(), SMDS_MeshInfo::NbEntities(), SMDS_MeshInfo::NbVolumes(), SMDS_MeshInfo::operator=(), SMDS_MeshInfo::RemoveVolume(), and SMDS_MeshInfo::setNb().
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
Referenced by SMDS_Mesh::AddQuadPolygonalFaceWithID(), SMDS_MeshInfo::addWithPoly(), SMDS_MeshInfo::Clear(), SMDS_MeshInfo::NbElements(), SMDS_MeshInfo::NbElementsOfGeom(), SMDS_MeshInfo::NbEntities(), SMDS_MeshInfo::NbFaces(), SMDS_MeshInfo::NbPolygons(), SMDS_MeshInfo::operator=(), SMDS_MeshInfo::RemoveFace(), and SMDS_MeshInfo::setNb().
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
Referenced by SMDS_MeshInfo::index(), and SMDS_MeshInfo::SMDS_MeshInfo().