Mesh to apply modifications for preview purposes. More...
Public Types | |
typedef TopTools_IndexedDataMapOfShapeListOfShape | TAncestorMap |
Return data map of descendant to ancestor shapes. More... | |
typedef boost::shared_ptr < SMDS_Iterator< SMESH_Group * > > | GroupIteratorPtr |
Public Member Functions | |
TPreviewMesh (SMDSAbs_ElementType previewElements=SMDSAbs_All) | |
< Constructor More... | |
void | Copy (const TIDSortedElemSet &theElements, TIDSortedElemSet &theCopyElements, SMDSAbs_ElementType theSelectType=SMDSAbs_All, SMDSAbs_ElementType theAvoidType=SMDSAbs_All) |
Copy an element. More... | |
SMDS_MeshElement * | Copy (const SMDS_MeshElement *anElem) |
Copy a node. More... | |
SMDS_MeshNode * | Copy (const SMDS_MeshNode *anElemNode) |
void | RemoveAll () |
void | Remove (SMDSAbs_ElementType type) |
void | ShapeToMesh (const TopoDS_Shape &aShape) |
Set geometry to be meshed. More... | |
TopoDS_Shape | GetShapeToMesh () const |
Return geometry to be meshed. More... | |
bool | HasShapeToMesh () const |
Return true if there is a geometry to be meshed, not PseudoShape() More... | |
double | GetShapeDiagonalSize () const |
Return diagonal size of bounding box of shape to mesh. More... | |
void | Load () |
Load mesh from study file. More... | |
void | Clear () |
Remove all nodes and elements. More... | |
void | ClearSubMesh (const int theShapeId) |
Remove all nodes and elements of indicated shape. More... | |
int | UNVToMesh (const char *theFileName) |
consult DriverMED_R_SMESHDS_Mesh::ReadStatus for returned value More... | |
int | MEDToMesh (const char *theFileName, const char *theMeshName) |
std::string | STLToMesh (const char *theFileName) |
int | CGNSToMesh (const char *theFileName, const int theMeshIndex, std::string &theMeshName) |
Reads the given mesh from the CGNS file. More... | |
SMESH_ComputeErrorPtr | GMFToMesh (const char *theFileName, bool theMakeRequiredGroups=true) |
Fill its data by reading a GMF file. More... | |
SMESH_Hypothesis::Hypothesis_Status | AddHypothesis (const TopoDS_Shape &aSubShape, int anHypId, std::string *error=0) throw (SALOME_Exception) |
SMESH_Hypothesis::Hypothesis_Status | RemoveHypothesis (const TopoDS_Shape &aSubShape, int anHypId) throw (SALOME_Exception) |
const std::list< const SMESHDS_Hypothesis * > & | GetHypothesisList (const TopoDS_Shape &aSubShape) const throw (SALOME_Exception) |
const SMESH_Hypothesis * | GetHypothesis (const TopoDS_Shape &aSubShape, const SMESH_HypoFilter &aFilter, const bool andAncestors, TopoDS_Shape *assignedTo=0) const |
const SMESH_Hypothesis * | GetHypothesis (const SMESH_subMesh *aSubMesh, const SMESH_HypoFilter &aFilter, const bool andAncestors, TopoDS_Shape *assignedTo=0) const |
SMESH_Hypothesis * | GetHypothesis (const int aHypID) const |
int | GetHypotheses (const TopoDS_Shape &aSubShape, const SMESH_HypoFilter &aFilter, std::list< const SMESHDS_Hypothesis * > &aHypList, const bool andAncestors, std::list< TopoDS_Shape > *assignedTo=0) const |
int | GetHypotheses (const SMESH_subMesh *aSubMesh, const SMESH_HypoFilter &aFilter, std::list< const SMESHDS_Hypothesis * > &aHypList, const bool andAncestors, std::list< TopoDS_Shape > *assignedTo=0) const |
const std::list < SMESHDS_Command * > & | GetLog () throw (SALOME_Exception) |
void | ClearLog () throw (SALOME_Exception) |
int | GetId () const |
bool | MeshExists (int meshId) const |
Return true if a mesh with given id exists. More... | |
SMESH_Mesh * | FindMesh (int meshId) const |
Return a mesh by id. More... | |
SMESHDS_Mesh * | GetMeshDS () |
const SMESHDS_Mesh * | GetMeshDS () const |
SMESH_Gen * | GetGen () |
SMESH_subMesh * | GetSubMesh (const TopoDS_Shape &aSubShape) throw (SALOME_Exception) |
Get or Create the SMESH_subMesh object implementation. More... | |
SMESH_subMesh * | GetSubMeshContaining (const TopoDS_Shape &aSubShape) const throw (SALOME_Exception) |
SMESH_subMesh * | GetSubMeshContaining (const int aShapeID) const throw (SALOME_Exception) |
std::list< SMESH_subMesh * > | GetGroupSubMeshesContaining (const TopoDS_Shape &shape) const throw (SALOME_Exception) |
Return submeshes of groups containing the given subshape. More... | |
void | NotifySubMeshesHypothesisModification (const SMESH_Hypothesis *theChangedHyp) |
Say all submeshes that theChangedHyp has been modified. More... | |
bool | IsUsedHypothesis (SMESHDS_Hypothesis *anHyp, const SMESH_subMesh *aSubMesh) |
Return True if anHyp is used to mesh aSubShape. More... | |
bool | IsNotConformAllowed () const |
check if a hypothesis allowing notconform mesh is present More... | |
bool | IsMainShape (const TopoDS_Shape &theShape) const |
const TopTools_ListOfShape & | GetAncestors (const TopoDS_Shape &theSubShape) const |
Return list of ancestors of theSubShape in the order that lower dimension shapes come first. More... | |
void | SetAutoColor (bool theAutoColor) throw (SALOME_Exception) |
Auto color functionality. More... | |
bool | GetAutoColor () throw (SALOME_Exception) |
void | SetIsModified (bool isModified) |
Set the flag meaning that the mesh has been edited "manually". More... | |
bool | GetIsModified () const |
bool | HasModificationsToDiscard () const |
Return true if the mesh has been edited since a total re-compute and those modifications may prevent successful partial re-compute. More... | |
const TAncestorMap & | GetAncestorMap () const |
bool | HasDuplicatedGroupNamesMED () |
Check group names for duplications. More... | |
void | ExportMED (const char *theFile, const char *theMeshName=NULL, bool theAutoGroups=true, int theVersion=0, const SMESHDS_Mesh *theMeshPart=0, bool theAutoDimension=false, bool theAddODOnVertices=false, bool theAllElemsToGroup=false) throw (SALOME_Exception) |
void | ExportDAT (const char *file, const SMESHDS_Mesh *meshPart=0) throw (SALOME_Exception) |
void | ExportUNV (const char *file, const SMESHDS_Mesh *meshPart=0) throw (SALOME_Exception) |
void | ExportSTL (const char *file, const bool isascii, const char *name=0, const SMESHDS_Mesh *meshPart=0) throw (SALOME_Exception) |
void | ExportCGNS (const char *file, const SMESHDS_Mesh *mesh, const char *meshName=0) |
void | ExportGMF (const char *file, const SMESHDS_Mesh *mesh, bool withRequiredGroups=true) |
void | ExportSAUV (const char *file, const char *theMeshName=NULL, bool theAutoGroups=true) throw (SALOME_Exception) |
double | GetComputeProgress () const |
int | NbNodes () const throw (SALOME_Exception) |
int | Nb0DElements () const throw (SALOME_Exception) |
int | NbBalls () const throw (SALOME_Exception) |
int | NbEdges (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbFaces (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbTriangles (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbQuadrangles (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbBiQuadQuadrangles () const throw (SALOME_Exception) |
int | NbBiQuadTriangles () const throw (SALOME_Exception) |
int | NbPolygons (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbVolumes (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbTetras (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbHexas (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbTriQuadraticHexas () const throw (SALOME_Exception) |
int | NbPyramids (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbPrisms (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception) |
int | NbHexagonalPrisms () const throw (SALOME_Exception) |
int | NbPolyhedrons () const throw (SALOME_Exception) |
int | NbSubMesh () const throw (SALOME_Exception) |
int | NbGroup () const |
int | NbMeshes () const |
Returns number of meshes in the Study, that is supposed to be equal to SMESHDS_Document::NbMeshes() More... | |
SMESH_Group * | AddGroup (const SMDSAbs_ElementType theType, const char *theName, int &theId, const TopoDS_Shape &theShape=TopoDS_Shape(), const SMESH_PredicatePtr &thePredicate=SMESH_PredicatePtr()) |
SMESH_Group * | AddGroup (SMESHDS_GroupBase *groupDS) throw (SALOME_Exception) |
Creates a group based on an existing SMESHDS group. More... | |
GroupIteratorPtr | GetGroups () const |
std::list< int > | GetGroupIds () const |
Return IDs of all groups. More... | |
SMESH_Group * | GetGroup (const int theGroupID) |
Return a group by ID. More... | |
bool | RemoveGroup (const int theGroupID) |
SMESH_Group * | ConvertToStandalone (int theGroupID) |
Convert group on geometry into standalone group. More... | |
void | SetCallUp (TCallUp *upCaller) |
Set a caller of methods at level of CORBA API implementation. More... | |
bool | SynchronizeGroups () |
Creates SMESH_Groups for not wrapped SMESHDS_Groups. More... | |
SMDSAbs_ElementType | GetElementType (const int id, const bool iselem) |
void | ClearMeshOrder () |
remove submesh order from Mesh More... | |
void | SetMeshOrder (const TListOfListOfInt &theOrder) |
remove submesh order from Mesh More... | |
const TListOfListOfInt & | GetMeshOrder () const |
bool | SortByMeshOrder (std::vector< SMESH_subMesh * > &theListToSort) const |
sort submeshes according to stored mesh order More... | |
bool | IsOrderOK (const SMESH_subMesh *smBefore, const SMESH_subMesh *smAfter) const |
Return true if given order of sub-meshes is OK. More... | |
std::ostream & | Dump (ostream &save) |
Static Public Member Functions | |
static double | GetShapeDiagonalSize (const TopoDS_Shape &aShape) |
Return diagonal size of bounding box of a shape. More... | |
static const TopoDS_Solid & | PseudoShape () |
Return a solid which is returned by GetShapeToMesh() if a real geometry to be meshed was not set. More... | |
Data Fields | |
SMDSAbs_ElementType | myPreviewType |
Protected Attributes | |
int | _id |
int | _studyId |
int | _groupId |
int | _nbSubShapes |
bool | _isShapeToMesh |
SMESHDS_Document * | _myDocument |
SMESHDS_Mesh * | _myMeshDS |
SMESH_Gen * | _gen |
std::map< int, SMESH_Group * > | _mapGroup |
SubMeshHolder * | _subMeshHolder |
bool | _isAutoColor |
bool | _isModified |
modified since last total re-compute, issue 0020693 More... | |
double | _shapeDiagonal |
diagonal size of bounding box of shape to mesh More... | |
TopTools_IndexedDataMapOfShapeListOfShape | _mapAncestors |
std::vector< SMESH_subMesh * > | _ancestorSubMeshes |
TListOfListOfInt | _mySubMeshOrder |
TCallUp * | _callUp |
Mesh to apply modifications for preview purposes.
|
inherited |
|
inherited |
Return data map of descendant to ancestor shapes.
MeshEditor_I::TPreviewMesh::TPreviewMesh | ( | SMDSAbs_ElementType | previewElements = SMDSAbs_All | ) |
< Constructor
Copy a set of elements
|
inherited |
|
inherited |
Creates a group based on an existing SMESHDS group.
Group ID should be unique
|
inherited |
|
inherited |
Reads the given mesh from the CGNS file.
theFileName | - name of the file |
int | - Driver_Mesh::Status |
References Driver_Mesh::DRS_FAIL, Driver_Mesh::GetMeshName(), DriverCGNS_Read::Perform(), Driver_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), and Driver_Mesh::SetMeshId().
|
inherited |
Remove all nodes and elements.
Referenced by SMESH_MeshEditor_i::getPreviewMesh().
|
inherited |
|
inherited |
remove submesh order from Mesh
|
inherited |
Remove all nodes and elements of indicated shape.
References SMESH_subMesh::CHECK_COMPUTE_STATE, and SMESH_subMesh::CLEAN.
|
inherited |
Convert group on geometry into standalone group.
References SMESHDS_Group::Add(), SMESHDS_GroupBase::GetColor(), SMESHDS_GroupBase::GetElements(), SMESHDS_GroupBase::GetType(), and SMESHDS_GroupBase::SetColor().
void MeshEditor_I::TPreviewMesh::Copy | ( | const TIDSortedElemSet & | theElements, |
TIDSortedElemSet & | theCopyElements, | ||
SMDSAbs_ElementType | theSelectType = SMDSAbs_All , |
||
SMDSAbs_ElementType | theAvoidType = SMDSAbs_All |
||
) |
Copy an element.
References cast2Node, SMDS_MeshElement::GetType(), SMDSAbs_All, and SMDSAbs_Node.
Referenced by SMESH_MeshEditor_i::ExtrusionAlongPathObjects(), SMESH_MeshEditor_i::ExtrusionByNormal(), SMESH_MeshEditor_i::ExtrusionSweepObjects(), SMESH_MeshEditor_i::mirror(), SMESH_MeshEditor_i::MoveClosestNodeToPoint(), SMESH_MeshEditor_i::MoveNode(), SMESH_MeshEditor_i::rotate(), SMESH_MeshEditor_i::RotationSweepObjects(), SMESH_MeshEditor_i::scale(), and SMESH_MeshEditor_i::translate().
SMDS_MeshElement* MeshEditor_I::TPreviewMesh::Copy | ( | const SMDS_MeshElement * | anElem | ) |
SMDS_MeshNode* MeshEditor_I::TPreviewMesh::Copy | ( | const SMDS_MeshNode * | anElemNode | ) |
References SMDS_MeshElement::GetID(), SMDS_MeshNode::X(), SMDS_MeshNode::Y(), and SMDS_MeshNode::Z().
|
inherited |
References ORDER_LINEAR, and ORDER_QUADRATIC.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Return a mesh by id.
|
inherited |
|
inherited |
Return list of ancestors of theSubShape in the order that lower dimension shapes come first.
Referenced by SMESH_ProxyMesh::GetProxyNode().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Return a group by ID.
|
inherited |
Return IDs of all groups.
|
inherited |
|
inherited |
Return submeshes of groups containing the given subshape.
Return sub-meshes of groups containing the given sub-shape.
References SMESHDS_SubMesh::IsComplexSubmesh(), and SMESH_MesherHelper::IsSubShape().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Return diagonal size of bounding box of shape to mesh.
Referenced by SMESH_Gen_i::GetHypothesisParameterValues().
|
staticinherited |
Return diagonal size of bounding box of a shape.
|
inherited |
Return geometry to be meshed.
(It may be a PseudoShape()!)
Referenced by SMESH_ProxyMesh::NbFaces().
|
inherited |
Get or Create the SMESH_subMesh object implementation.
Referenced by StdMeshers_UseExisting_2D::Compute(), and StdMeshers_UseExisting_1D::Compute().
|
inherited |
|
inherited |
|
inherited |
Fill its data by reading a GMF file.
References Driver_Mesh::GetError(), DriverGMF_Read::Perform(), Driver_Mesh::SetFile(), DriverGMF_Read::SetMakeRequiredGroups(), and Driver_SMESHDS_Mesh::SetMesh().
|
inherited |
Check group names for duplications.
Consider maximum group name length stored in MED file
|
inherited |
Return true if the mesh has been edited since a total re-compute and those modifications may prevent successful partial re-compute.
As a side effect reset _isModified flag if mesh is empty
|
inherited |
Return true if there is a geometry to be meshed, not PseudoShape()
Referenced by SMESH_ProxyMesh::GetFaces(), SMESH_ProxyMesh::NbFaces(), and SMESH_ProxyMesh::shapeIndex().
|
inherited |
|
inherited |
check if a hypothesis allowing notconform mesh is present
References SMESH_HypoFilter::HasName(), MESSAGE, and MYDEBUG.
|
inherited |
Return true if given order of sub-meshes is OK.
|
inherited |
Return True if anHyp is used to mesh aSubShape.
References SMESHDS_Hypothesis::GetType(), and SMESHDS_Hypothesis::PARAM_ALGO.
|
inherited |
Load mesh from study file.
|
inherited |
References SMESH::AddGroup(), Driver_Mesh::GetError(), DriverMED_R_SMESHDS_Mesh::GetGroup(), DriverMED_R_SMESHDS_Mesh::GetGroupNamesAndTypes(), DriverMED_R_SMESHDS_Mesh::Perform(), Driver_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), DriverMED_R_SMESHDS_Mesh::SetMeshName(), and SMESHDS_GroupBase::SetStoreName().
Return true if a mesh with given id exists.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Referenced by SMESH_ProxyMesh::GetFaces().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Returns number of meshes in the Study, that is supposed to be equal to SMESHDS_Document::NbMeshes()
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Say all submeshes that theChangedHyp has been modified.
References SMESH_subMesh::COMPUTE_OK, SMESH_subMesh::FAILED_TO_COMPUTE, SMESH_HypoFilter::IsOk(), SMESH_subMesh::MISSING_HYP, and SMESH_subMesh::MODIF_HYP.
|
staticinherited |
Return a solid which is returned by GetShapeToMesh() if a real geometry to be meshed was not set.
Referenced by SMESH_Gen_i::CancelCompute(), SMESH_Gen_i::Compute(), SMESH_Gen_i::Evaluate(), SMESH_Gen_i::GetAlgoState(), SMESH_Gen_i::GetComputeErrors(), SMESH_Gen_i::GetMeshOrSubmeshByShape(), SMESH_Gen_i::Load(), and SMESH_Mesh::SMESH_Mesh().
void MeshEditor_I::TPreviewMesh::Remove | ( | SMDSAbs_ElementType | type | ) |
References SMDS_MeshNode::elementsIterator().
void MeshEditor_I::TPreviewMesh::RemoveAll | ( | ) |
Referenced by SMESH_MeshEditor_i::initData().
|
inherited |
References SMESH_Gen::GetShapeDim(), SMESH_Hypothesis::HYP_CONCURENT, SMESH_Hypothesis::HYP_OK, SMESH_Hypothesis::IsStatusFatal(), studyContextStruct::mapHypothesis, MESSAGE, MYDEBUG, SMESHDS_Hypothesis::PARAM_ALGO, SMESH_subMesh::REMOVE_ALGO, SMESH_subMesh::REMOVE_FATHER_ALGO, SMESH_subMesh::REMOVE_FATHER_HYP, and SMESH_subMesh::REMOVE_HYP.
|
inherited |
Auto color functionality.
|
inherited |
Set a caller of methods at level of CORBA API implementation.
The set upCaller will be deleted by SMESH_Mesh
|
inherited |
Set the flag meaning that the mesh has been edited "manually".
It is to set to false after Clear() and to set to true by MeshEditor
|
inherited |
remove submesh order from Mesh
|
inherited |
|
inherited |
sort submeshes according to stored mesh order
theListToSort | in out list to be sorted |
References SMESHDS_SubMesh::GetID().
|
inherited |
|
inherited |
Creates SMESH_Groups for not wrapped SMESHDS_Groups.
bool | - true if new SMESH_Groups have been created |
References SMESHDS_GroupBase::GetID().
|
inherited |
consult DriverMED_R_SMESHDS_Mesh::ReadStatus for returned value
References SMDS_MeshGroup::Add(), SMESH::AddGroup(), DriverUNV_R_SMDS_Mesh::GetGroup(), DriverUNV_R_SMDS_Mesh::GetGroupNamesMap(), SMDS_MeshGroup::GetType(), SMDS_MeshElement::GetType(), SMDS_MeshGroup::InitIterator(), SMDS_MeshGroup::More(), SMDS_MeshGroup::Next(), SMDS_MeshGroup::NextSubGroup(), DriverUNV_R_SMDS_Mesh::Perform(), Driver_Mesh::SetFile(), Driver_SMDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), SMESHDS_GroupBase::SetStoreName(), SMESHDS_Group::SetType(), and SMESHDS_Group::SMDSGroup().
|
mutableprotectedinherited |
|
protectedinherited |
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
|
protectedinherited |
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
modified since last total re-compute, issue 0020693
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
diagonal size of bounding box of shape to mesh
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
Referenced by SMESH_Mesh::SMESH_Mesh().
|
protectedinherited |
Referenced by SMESH_Mesh::SMESH_Mesh().
SMDSAbs_ElementType MeshEditor_I::TPreviewMesh::myPreviewType |
Referenced by SMESH_MeshEditor_i::getPreviewMesh().