#include <SMESH_Mesh.hxx>
Public Types | |
typedef TopTools_IndexedDataMapOfShapeListOfShape | TAncestorMap |
Return data map of descendant to ancestor shapes. | |
typedef boost::shared_ptr < SMDS_Iterator< SMESH_Group * > > | GroupIteratorPtr |
Public Member Functions | |
SMESH_Mesh (int theLocalId, int theStudyId, SMESH_Gen *theGen, bool theIsEmbeddedMode, SMESHDS_Document *theDocument) | |
virtual | ~SMESH_Mesh () |
void | ShapeToMesh (const TopoDS_Shape &aShape) |
Set geometry to be meshed. | |
TopoDS_Shape | GetShapeToMesh () const |
Return geometry to be meshed. (It may be a PseudoShape()!). | |
bool | HasShapeToMesh () const |
Return true if there is a geometry to be meshed, not PseudoShape(). | |
double | GetShapeDiagonalSize () const |
Return diagonal size of bounding box of shape to mesh. | |
void | Clear () |
Remove all nodes and elements. | |
void | ClearSubMesh (const int theShapeId) |
Remove all nodes and elements of indicated shape. | |
int | UNVToMesh (const char *theFileName) |
int | MEDToMesh (const char *theFileName, const char *theMeshName) |
int | STLToMesh (const char *theFileName) |
int | DATToMesh (const char *theFileName) |
SMESH_Hypothesis::Hypothesis_Status | AddHypothesis (const TopoDS_Shape &aSubShape, int anHypId) 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 |
int | GetHypotheses (const TopoDS_Shape &aSubShape, const SMESH_HypoFilter &aFilter, std::list< const SMESHDS_Hypothesis * > &aHypList, const bool andAncestors) const |
const std::list < SMESHDS_Command * > & | GetLog () throw (SALOME_Exception) |
void | ClearLog () throw (SALOME_Exception) |
int | GetId () |
SMESHDS_Mesh * | GetMeshDS () |
SMESH_Gen * | GetGen () |
SMESH_subMesh * | GetSubMesh (const TopoDS_Shape &aSubShape) throw (SALOME_Exception) |
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. | |
void | NotifySubMeshesHypothesisModification (const SMESH_Hypothesis *theChangedHyp) |
Say all submeshes that theChangedHyp has been modified. | |
const std::list< SMESH_subMesh * > & | GetSubMeshUsingHypothesis (SMESHDS_Hypothesis *anHyp) throw (SALOME_Exception) |
bool | IsUsedHypothesis (SMESHDS_Hypothesis *anHyp, const SMESH_subMesh *aSubMesh) |
Return True if anHyp is used to mesh aSubShape. | |
bool | IsNotConformAllowed () const |
check if a hypothesis alowing notconform mesh is present | |
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 dimention shapes come first. | |
void | SetAutoColor (bool theAutoColor) throw (SALOME_Exception) |
bool | GetAutoColor () throw (SALOME_Exception) |
const TAncestorMap & | GetAncestorMap () const |
bool | HasDuplicatedGroupNamesMED () |
Check group names for duplications. Consider maximum group name length stored in MED file. | |
void | ExportMED (const char *file, const char *theMeshName=NULL, bool theAutoGroups=true, int theVersion=0) throw (SALOME_Exception) |
void | ExportDAT (const char *file) throw (SALOME_Exception) |
void | ExportUNV (const char *file) throw (SALOME_Exception) |
void | ExportSTL (const char *file, const bool isascii) throw (SALOME_Exception) |
int | NbNodes () throw (SALOME_Exception) |
int | Nb0DElements () throw (SALOME_Exception) |
int | NbEdges (SMDSAbs_ElementOrder order=ORDER_ANY) throw (SALOME_Exception) |
int | NbFaces (SMDSAbs_ElementOrder order=ORDER_ANY) throw (SALOME_Exception) |
int | NbTriangles (SMDSAbs_ElementOrder order=ORDER_ANY) throw (SALOME_Exception) |
int | NbQuadrangles (SMDSAbs_ElementOrder order=ORDER_ANY) throw (SALOME_Exception) |
int | NbPolygons () throw (SALOME_Exception) |
int | NbVolumes (SMDSAbs_ElementOrder order=ORDER_ANY) throw (SALOME_Exception) |
int | NbTetras (SMDSAbs_ElementOrder order=ORDER_ANY) throw (SALOME_Exception) |
int | NbHexas (SMDSAbs_ElementOrder order=ORDER_ANY) throw (SALOME_Exception) |
int | NbPyramids (SMDSAbs_ElementOrder order=ORDER_ANY) throw (SALOME_Exception) |
int | NbPrisms (SMDSAbs_ElementOrder order=ORDER_ANY) throw (SALOME_Exception) |
int | NbPolyhedrons () throw (SALOME_Exception) |
int | NbSubMesh () throw (SALOME_Exception) |
int | NbGroup () const |
SMESH_Group * | AddGroup (const SMDSAbs_ElementType theType, const char *theName, int &theId, const TopoDS_Shape &theShape=TopoDS_Shape()) |
GroupIteratorPtr | GetGroups () const |
std::list< int > | GetGroupIds () const |
SMESH_Group * | GetGroup (const int theGroupID) |
void | RemoveGroup (const int theGroupID) |
SMESH_Group * | ConvertToStandalone (int theGroupID) |
SMDSAbs_ElementType | GetElementType (const int id, const bool iselem) |
ostream & | Dump (ostream &save) |
Static Public Member Functions | |
static double | GetShapeDiagonalSize (const TopoDS_Shape &aShape) |
Return diagonal size of bounding box of a shape. | |
static const TopoDS_Solid & | PseudoShape () |
Return a solid which is returned by GetShapeToMesh() if a real geometry to be meshed was not set. | |
Protected Member Functions | |
SMESH_Mesh () | |
SMESH_Mesh (const SMESH_Mesh &) | |
Protected Attributes | |
int | _id |
int | _studyId |
int | _idDoc |
int | _groupId |
int | _nbSubShapes |
bool | _isShapeToMesh |
std::list< SMESH_subMesh * > | _subMeshesUsingHypothesisList |
SMESHDS_Document * | _myDocument |
SMESHDS_Mesh * | _myMeshDS |
std::map< int, SMESH_subMesh * > | _mapSubMesh |
std::map< int, SMESH_Group * > | _mapGroup |
SMESH_Gen * | _gen |
bool | _isAutoColor |
double | _shapeDiagonal |
diagonal size of bounding box of shape to mesh | |
TopTools_IndexedDataMapOfShapeListOfShape | _mapAncestors |
Definition at line 54 of file SMESH_Mesh.hxx.
typedef TopTools_IndexedDataMapOfShapeListOfShape SMESH_Mesh.TAncestorMap |
Return data map of descendant to ancestor shapes.
Definition at line 187 of file SMESH_Mesh.hxx.
typedef boost::shared_ptr< SMDS_Iterator<SMESH_Group*> > SMESH_Mesh.GroupIteratorPtr |
Definition at line 240 of file SMESH_Mesh.hxx.
SMESH_Mesh.SMESH_Mesh | ( | int | theLocalId, | |
int | theStudyId, | |||
SMESH_Gen * | theGen, | |||
bool | theIsEmbeddedMode, | |||
SMESHDS_Document * | theDocument | |||
) |
virtual SMESH_Mesh.~SMESH_Mesh | ( | ) | [virtual] |
SMESH_Mesh.SMESH_Mesh | ( | ) | [protected] |
Definition at line 280 of file SMESH_Mesh.hxx.
SMESH_Mesh.SMESH_Mesh | ( | const SMESH_Mesh & | ) | [protected] |
Definition at line 281 of file SMESH_Mesh.hxx.
void SMESH_Mesh.ShapeToMesh | ( | const TopoDS_Shape & | aShape | ) |
Set geometry to be meshed.
TopoDS_Shape SMESH_Mesh.GetShapeToMesh | ( | ) | const |
Return geometry to be meshed. (It may be a PseudoShape()!).
bool SMESH_Mesh.HasShapeToMesh | ( | ) | const |
Return true if there is a geometry to be meshed, not PseudoShape().
Definition at line 76 of file SMESH_Mesh.hxx.
double SMESH_Mesh.GetShapeDiagonalSize | ( | ) | const |
Return diagonal size of bounding box of shape to mesh.
static double SMESH_Mesh.GetShapeDiagonalSize | ( | const TopoDS_Shape & | aShape | ) | [static] |
Return diagonal size of bounding box of a shape.
static const TopoDS_Solid& SMESH_Mesh.PseudoShape | ( | ) | [static] |
Return a solid which is returned by GetShapeToMesh() if a real geometry to be meshed was not set.
void SMESH_Mesh.Clear | ( | ) |
Remove all nodes and elements.
void SMESH_Mesh.ClearSubMesh | ( | const int | theShapeId | ) |
Remove all nodes and elements of indicated shape.
int SMESH_Mesh.UNVToMesh | ( | const char * | theFileName | ) |
int SMESH_Mesh.MEDToMesh | ( | const char * | theFileName, | |
const char * | theMeshName | |||
) |
consult DriverMED_R_SMESHDS_Mesh.ReadStatus for returned value
int SMESH_Mesh.STLToMesh | ( | const char * | theFileName | ) |
int SMESH_Mesh.DATToMesh | ( | const char * | theFileName | ) |
SMESH_Hypothesis::Hypothesis_Status SMESH_Mesh.AddHypothesis | ( | const TopoDS_Shape & | aSubShape, | |
int | anHypId | |||
) | throw (SALOME_Exception) |
SMESH_Hypothesis::Hypothesis_Status SMESH_Mesh.RemoveHypothesis | ( | const TopoDS_Shape & | aSubShape, | |
int | anHypId | |||
) | throw (SALOME_Exception) |
const std::list<const SMESHDS_Hypothesis * >& SMESH_Mesh.GetHypothesisList | ( | const TopoDS_Shape & | aSubShape | ) | const throw (SALOME_Exception) |
const SMESH_Hypothesis* SMESH_Mesh.GetHypothesis | ( | const TopoDS_Shape & | aSubShape, | |
const SMESH_HypoFilter & | aFilter, | |||
const bool | andAncestors, | |||
TopoDS_Shape * | assignedTo = 0 | |||
) | const |
int SMESH_Mesh.GetHypotheses | ( | const TopoDS_Shape & | aSubShape, | |
const SMESH_HypoFilter & | aFilter, | |||
std::list< const SMESHDS_Hypothesis * > & | aHypList, | |||
const bool | andAncestors | |||
) | const |
const std::list<SMESHDS_Command*>& SMESH_Mesh.GetLog | ( | ) | throw (SALOME_Exception) |
void SMESH_Mesh.ClearLog | ( | ) | throw (SALOME_Exception) |
int SMESH_Mesh.GetId | ( | ) |
Definition at line 137 of file SMESH_Mesh.hxx.
SMESHDS_Mesh* SMESH_Mesh.GetMeshDS | ( | ) |
Definition at line 139 of file SMESH_Mesh.hxx.
SMESH_Gen* SMESH_Mesh.GetGen | ( | ) |
Definition at line 141 of file SMESH_Mesh.hxx.
SMESH_subMesh* SMESH_Mesh.GetSubMesh | ( | const TopoDS_Shape & | aSubShape | ) | throw (SALOME_Exception) |
SMESH_subMesh* SMESH_Mesh.GetSubMeshContaining | ( | const TopoDS_Shape & | aSubShape | ) | const throw (SALOME_Exception) |
SMESH_subMesh* SMESH_Mesh.GetSubMeshContaining | ( | const int | aShapeID | ) | const throw (SALOME_Exception) |
std::list<SMESH_subMesh*> SMESH_Mesh.GetGroupSubMeshesContaining | ( | const TopoDS_Shape & | shape | ) | const throw (SALOME_Exception) |
Return submeshes of groups containing the given subshape.
void SMESH_Mesh.NotifySubMeshesHypothesisModification | ( | const SMESH_Hypothesis * | theChangedHyp | ) |
Say all submeshes that theChangedHyp has been modified.
const std::list< SMESH_subMesh * >& SMESH_Mesh.GetSubMeshUsingHypothesis | ( | SMESHDS_Hypothesis * | anHyp | ) | throw (SALOME_Exception) |
bool SMESH_Mesh.IsUsedHypothesis | ( | SMESHDS_Hypothesis * | anHyp, | |
const SMESH_subMesh * | aSubMesh | |||
) |
Return True if anHyp is used to mesh aSubShape.
bool SMESH_Mesh.IsNotConformAllowed | ( | ) | const |
check if a hypothesis alowing notconform mesh is present
bool SMESH_Mesh.IsMainShape | ( | const TopoDS_Shape & | theShape | ) | const |
const TopTools_ListOfShape& SMESH_Mesh.GetAncestors | ( | const TopoDS_Shape & | theSubShape | ) | const |
Return list of ancestors of theSubShape in the order that lower dimention shapes come first.
void SMESH_Mesh.SetAutoColor | ( | bool | theAutoColor | ) | throw (SALOME_Exception) |
bool SMESH_Mesh.GetAutoColor | ( | ) | throw (SALOME_Exception) |
const TAncestorMap& SMESH_Mesh.GetAncestorMap | ( | ) | const |
Definition at line 188 of file SMESH_Mesh.hxx.
bool SMESH_Mesh.HasDuplicatedGroupNamesMED | ( | ) |
Check group names for duplications. Consider maximum group name length stored in MED file.
void SMESH_Mesh.ExportMED | ( | const char * | file, | |
const char * | theMeshName = NULL , |
|||
bool | theAutoGroups = true , |
|||
int | theVersion = 0 | |||
) | throw (SALOME_Exception) |
void SMESH_Mesh.ExportDAT | ( | const char * | file | ) | throw (SALOME_Exception) |
void SMESH_Mesh.ExportUNV | ( | const char * | file | ) | throw (SALOME_Exception) |
void SMESH_Mesh.ExportSTL | ( | const char * | file, | |
const bool | isascii | |||
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbNodes | ( | ) | throw (SALOME_Exception) |
int SMESH_Mesh.Nb0DElements | ( | ) | throw (SALOME_Exception) |
int SMESH_Mesh.NbEdges | ( | SMDSAbs_ElementOrder | order = ORDER_ANY |
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbFaces | ( | SMDSAbs_ElementOrder | order = ORDER_ANY |
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbTriangles | ( | SMDSAbs_ElementOrder | order = ORDER_ANY |
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbQuadrangles | ( | SMDSAbs_ElementOrder | order = ORDER_ANY |
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbPolygons | ( | ) | throw (SALOME_Exception) |
int SMESH_Mesh.NbVolumes | ( | SMDSAbs_ElementOrder | order = ORDER_ANY |
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbTetras | ( | SMDSAbs_ElementOrder | order = ORDER_ANY |
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbHexas | ( | SMDSAbs_ElementOrder | order = ORDER_ANY |
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbPyramids | ( | SMDSAbs_ElementOrder | order = ORDER_ANY |
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbPrisms | ( | SMDSAbs_ElementOrder | order = ORDER_ANY |
) | throw (SALOME_Exception) |
int SMESH_Mesh.NbPolyhedrons | ( | ) | throw (SALOME_Exception) |
int SMESH_Mesh.NbSubMesh | ( | ) | throw (SALOME_Exception) |
int SMESH_Mesh.NbGroup | ( | ) | const |
Definition at line 233 of file SMESH_Mesh.hxx.
SMESH_Group* SMESH_Mesh.AddGroup | ( | const SMDSAbs_ElementType | theType, | |
const char * | theName, | |||
int & | theId, | |||
const TopoDS_Shape & | theShape = TopoDS_Shape() | |||
) |
GroupIteratorPtr SMESH_Mesh.GetGroups | ( | ) | const |
std::list<int> SMESH_Mesh.GetGroupIds | ( | ) | const |
SMESH_Group* SMESH_Mesh.GetGroup | ( | const int | theGroupID | ) |
void SMESH_Mesh.RemoveGroup | ( | const int | theGroupID | ) |
SMESH_Group* SMESH_Mesh.ConvertToStandalone | ( | int | theGroupID | ) |
SMDSAbs_ElementType SMESH_Mesh.GetElementType | ( | const int | id, | |
const bool | iselem | |||
) |
ostream& SMESH_Mesh.Dump | ( | ostream & | save | ) |
int SMESH_Mesh._id [protected] |
Definition at line 260 of file SMESH_Mesh.hxx.
int SMESH_Mesh._studyId [protected] |
Definition at line 261 of file SMESH_Mesh.hxx.
int SMESH_Mesh._idDoc [protected] |
Definition at line 262 of file SMESH_Mesh.hxx.
int SMESH_Mesh._groupId [protected] |
Definition at line 263 of file SMESH_Mesh.hxx.
int SMESH_Mesh._nbSubShapes [protected] |
Definition at line 264 of file SMESH_Mesh.hxx.
bool SMESH_Mesh._isShapeToMesh [protected] |
Definition at line 265 of file SMESH_Mesh.hxx.
std::list<SMESH_subMesh*> SMESH_Mesh._subMeshesUsingHypothesisList [protected] |
Definition at line 266 of file SMESH_Mesh.hxx.
SMESHDS_Document* SMESH_Mesh._myDocument [protected] |
Definition at line 267 of file SMESH_Mesh.hxx.
SMESHDS_Mesh* SMESH_Mesh._myMeshDS [protected] |
Definition at line 268 of file SMESH_Mesh.hxx.
std::map<int, SMESH_subMesh*> SMESH_Mesh._mapSubMesh [protected] |
Definition at line 269 of file SMESH_Mesh.hxx.
std::map<int, SMESH_Group*> SMESH_Mesh._mapGroup [protected] |
Definition at line 270 of file SMESH_Mesh.hxx.
SMESH_Gen* SMESH_Mesh._gen [protected] |
Definition at line 271 of file SMESH_Mesh.hxx.
bool SMESH_Mesh._isAutoColor [protected] |
Definition at line 273 of file SMESH_Mesh.hxx.
double SMESH_Mesh._shapeDiagonal [protected] |
diagonal size of bounding box of shape to mesh
Definition at line 275 of file SMESH_Mesh.hxx.
TopTools_IndexedDataMapOfShapeListOfShape SMESH_Mesh._mapAncestors [protected] |
Definition at line 277 of file SMESH_Mesh.hxx.