SMESH_subMesh Class Reference

#include <SMESH_subMesh.hxx>


Public Types

enum  compute_state { NOT_READY, READY_TO_COMPUTE, COMPUTE_OK, FAILED_TO_COMPUTE }
enum  algo_state { NO_ALGO, MISSING_HYP, HYP_OK }
enum  algo_event {
  ADD_HYP, ADD_ALGO, REMOVE_HYP, REMOVE_ALGO,
  ADD_FATHER_HYP, ADD_FATHER_ALGO, REMOVE_FATHER_HYP, REMOVE_FATHER_ALGO
}
enum  compute_event {
  MODIF_HYP, MODIF_ALGO_STATE, COMPUTE, CLEAN,
  SUBMESH_COMPUTED, SUBMESH_RESTORED, MESH_ENTITY_REMOVED, CHECK_COMPUTE_STATE
}

Public Member Functions

 SMESH_subMesh (int Id, SMESH_Mesh *father, SMESHDS_Mesh *meshDS, const TopoDS_Shape &aSubShape)
virtual ~SMESH_subMesh ()
int GetId () const
SMESH_MeshGetFather ()
SMESHDS_SubMeshGetSubMeshDS ()
SMESHDS_SubMeshCreateSubMeshDS ()
SMESH_subMeshGetFirstToCompute ()
const map< int, SMESH_subMesh * > & DependsOn ()
const TopoDS_ShapeGetSubShape () const
SMESH_Hypothesis::Hypothesis_Status AlgoStateEngine (int event, SMESH_Hypothesis *anHyp)
SMESH_Hypothesis::Hypothesis_Status SubMeshesAlgoStateEngine (int event, SMESH_Hypothesis *anHyp)
int GetAlgoState () const
int GetComputeState () const
void DumpAlgoState (bool isMain)
bool ComputeStateEngine (int event)
bool IsConform (const SMESH_Algo *theAlgo)
bool CanAddHypothesis (const SMESH_Hypothesis *theHypothesis) const
bool IsApplicableHypotesis (const SMESH_Hypothesis *theHypothesis) const
SMESH_Hypothesis::Hypothesis_Status CheckConcurentHypothesis (const int theHypType)

Static Public Member Functions

static bool IsApplicableHypotesis (const SMESH_Hypothesis *theHypothesis, const TopAbs_ShapeEnum theShapeType)

Protected Member Functions

void InsertDependence (const TopoDS_Shape aSubShape)
bool SubMeshesComputed ()
bool SubMeshesReady ()
void RemoveSubMeshElementsAndNodes ()
void UpdateDependantsState (const compute_event theEvent)
void UpdateSubMeshState (const compute_state theState)
void ComputeSubMeshStateEngine (int event)
void CleanDependants ()
void CleanDependsOn ()
void SetAlgoState (int state)
bool IsMeshComputed () const
TopoDS_Shape GetCollection (SMESH_Gen *theGen, SMESH_Algo *theAlgo)
bool ApplyToCollection (SMESH_Algo *theAlgo, const TopoDS_Shape &theCollection)
const SMESH_HypothesisGetSimilarAttached (const TopoDS_Shape &theShape, const SMESH_Hypothesis *theHyp, const int theHypType=0)

Protected Attributes

TopoDS_Shape _subShape
SMESHDS_Mesh_meshDS
SMESHDS_SubMesh_subMeshDS
int _Id
SMESH_Mesh_father
map< int, SMESH_subMesh * > _mapDepend
bool _dependenceAnalysed
int _algoState
int _computeState


Member Enumeration Documentation

enum SMESH_subMesh::compute_state
 

Enumerator:
NOT_READY 
READY_TO_COMPUTE 
COMPUTE_OK 
FAILED_TO_COMPUTE 

enum SMESH_subMesh::algo_state
 

Enumerator:
NO_ALGO 
MISSING_HYP 
HYP_OK 

enum SMESH_subMesh::algo_event
 

Enumerator:
ADD_HYP 
ADD_ALGO 
REMOVE_HYP 
REMOVE_ALGO 
ADD_FATHER_HYP 
ADD_FATHER_ALGO 
REMOVE_FATHER_HYP 
REMOVE_FATHER_ALGO 

enum SMESH_subMesh::compute_event
 

Enumerator:
MODIF_HYP 
MODIF_ALGO_STATE 
COMPUTE 
CLEAN 
SUBMESH_COMPUTED 
SUBMESH_RESTORED 
MESH_ENTITY_REMOVED 
CHECK_COMPUTE_STATE 


Constructor & Destructor Documentation

SMESH_subMesh.SMESH_subMesh int  Id,
SMESH_Mesh father,
SMESHDS_Mesh meshDS,
const TopoDS_Shape aSubShape
 

virtual SMESH_subMesh.~SMESH_subMesh  )  [virtual]
 


Member Function Documentation

int SMESH_subMesh.GetId  )  const
 

SMESH_Mesh* SMESH_subMesh.GetFather  ) 
 

SMESHDS_SubMesh* SMESH_subMesh.GetSubMeshDS  ) 
 

SMESHDS_SubMesh* SMESH_subMesh.CreateSubMeshDS  ) 
 

SMESH_subMesh* SMESH_subMesh.GetFirstToCompute  ) 
 

const map< int, SMESH_subMesh * >& SMESH_subMesh.DependsOn  ) 
 

const TopoDS_Shape& SMESH_subMesh.GetSubShape  )  const
 

SMESH_Hypothesis::Hypothesis_Status SMESH_subMesh.AlgoStateEngine int  event,
SMESH_Hypothesis anHyp
 

SMESH_Hypothesis::Hypothesis_Status SMESH_subMesh.SubMeshesAlgoStateEngine int  event,
SMESH_Hypothesis anHyp
 

int SMESH_subMesh.GetAlgoState  )  const
 

int SMESH_subMesh.GetComputeState  )  const
 

void SMESH_subMesh.DumpAlgoState bool  isMain  ) 
 

bool SMESH_subMesh.ComputeStateEngine int  event  ) 
 

bool SMESH_subMesh.IsConform const SMESH_Algo theAlgo  ) 
 

bool SMESH_subMesh.CanAddHypothesis const SMESH_Hypothesis theHypothesis  )  const
 

static bool SMESH_subMesh.IsApplicableHypotesis const SMESH_Hypothesis theHypothesis,
const TopAbs_ShapeEnum  theShapeType
[static]
 

bool SMESH_subMesh.IsApplicableHypotesis const SMESH_Hypothesis theHypothesis  )  const
 

SMESH_Hypothesis::Hypothesis_Status SMESH_subMesh.CheckConcurentHypothesis const int  theHypType  ) 
 

void SMESH_subMesh.InsertDependence const TopoDS_Shape  aSubShape  )  [protected]
 

bool SMESH_subMesh.SubMeshesComputed  )  [protected]
 

bool SMESH_subMesh.SubMeshesReady  )  [protected]
 

void SMESH_subMesh.RemoveSubMeshElementsAndNodes  )  [protected]
 

void SMESH_subMesh.UpdateDependantsState const compute_event  theEvent  )  [protected]
 

void SMESH_subMesh.UpdateSubMeshState const compute_state  theState  )  [protected]
 

void SMESH_subMesh.ComputeSubMeshStateEngine int  event  )  [protected]
 

void SMESH_subMesh.CleanDependants  )  [protected]
 

void SMESH_subMesh.CleanDependsOn  )  [protected]
 

void SMESH_subMesh.SetAlgoState int  state  )  [protected]
 

bool SMESH_subMesh.IsMeshComputed  )  const [protected]
 

TopoDS_Shape SMESH_subMesh.GetCollection SMESH_Gen theGen,
SMESH_Algo theAlgo
[protected]
 

bool SMESH_subMesh.ApplyToCollection SMESH_Algo theAlgo,
const TopoDS_Shape theCollection
[protected]
 

const SMESH_Hypothesis* SMESH_subMesh.GetSimilarAttached const TopoDS_Shape theShape,
const SMESH_Hypothesis theHyp,
const int  theHypType = 0
[protected]
 


Field Documentation

TopoDS_Shape SMESH_subMesh._subShape [protected]
 

SMESHDS_Mesh* SMESH_subMesh._meshDS [protected]
 

SMESHDS_SubMesh* SMESH_subMesh._subMeshDS [protected]
 

int SMESH_subMesh._Id [protected]
 

SMESH_Mesh* SMESH_subMesh._father [protected]
 

map< int, SMESH_subMesh * > SMESH_subMesh._mapDepend [protected]
 

bool SMESH_subMesh._dependenceAnalysed [protected]
 

int SMESH_subMesh._algoState [protected]
 

int SMESH_subMesh._computeState [protected]