#include <SMESH_subMesh.hxx>
|
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,
MODIF_HYP
} |
|
enum | compute_event {
MODIF_ALGO_STATE,
COMPUTE,
CLEAN,
SUBMESH_COMPUTED,
SUBMESH_RESTORED,
MESH_ENTITY_REMOVED,
CHECK_COMPUTE_STATE
} |
|
enum | event_type { ALGO_EVENT,
COMPUTE_EVENT
} |
|
Definition at line 59 of file SMESH_subMesh.hxx.
◆ compute_state
Enumerator |
---|
NOT_READY | |
READY_TO_COMPUTE | |
COMPUTE_OK | |
FAILED_TO_COMPUTE | |
Definition at line 87 of file SMESH_subMesh.hxx.
◆ algo_state
◆ algo_event
Enumerator |
---|
ADD_HYP | |
ADD_ALGO | |
REMOVE_HYP | |
REMOVE_ALGO | |
ADD_FATHER_HYP | |
ADD_FATHER_ALGO | |
REMOVE_FATHER_HYP | |
REMOVE_FATHER_ALGO | |
MODIF_HYP | |
Definition at line 96 of file SMESH_subMesh.hxx.
◆ compute_event
Enumerator |
---|
MODIF_ALGO_STATE | |
COMPUTE | |
CLEAN | |
SUBMESH_COMPUTED | |
SUBMESH_RESTORED | |
MESH_ENTITY_REMOVED | |
CHECK_COMPUTE_STATE | |
Definition at line 104 of file SMESH_subMesh.hxx.
◆ event_type
◆ SMESH_subMesh()
◆ ~ SMESH_subMesh()
◆ GetId()
int SMESH_subMesh::GetId |
( |
| ) |
const |
◆ GetFather()
◆ GetSubMeshDS()
◆ CreateSubMeshDS()
◆ GetFirstToCompute()
◆ DependsOn()
◆ getDependsOnIterator()
Return iterator on the submeshes this one depends on.
◆ GetSubShape()
const TopoDS_Shape& SMESH_subMesh::GetSubShape |
( |
| ) |
const |
◆ SetEventListener() [1/2]
Sets an event listener and its data to a submesh.
- Parameters
-
listener | - the listener to store |
data | - the listener data to store |
where | - the submesh to store the listener and it's data |
The method remembers the submesh it puts the listener in order to delete them when HYP_OK algo_state is lost After being set, event listener is notified on each event of submesh.
◆ GetEventListenerData()
Return an event listener data.
- Parameters
-
listener | - the listener whose data is |
- Return values
-
EventListenerData* | - found data, maybe NULL |
◆ DeleteEventListener()
void SMESH_subMesh::DeleteEventListener |
( |
EventListener * |
listener | ) |
|
Unregister the listener and delete it and it's data.
- Parameters
-
listener | - the event listener to delete |
◆ SetEventListener() [2/2]
Sets an event listener and its data to a submesh.
- Parameters
-
listener | - the listener to store |
data | - the listener data to store |
After being set, event listener is notified on each event of a submesh.
◆ NotifyListenersOnEvent()
Notify stored event listeners on the occured event.
- Parameters
-
event | - algo_event or compute_event itself |
eventType | - algo_event or compute_event |
hyp | - hypothesis, if eventType is algo_event |
◆ DeleteOwnListeners()
void SMESH_subMesh::DeleteOwnListeners |
( |
| ) |
|
|
protected |
Delete event listeners depending on algo of this submesh.
◆ AlgoStateEngine()
◆ SubMeshesAlgoStateEngine()
◆ GetAlgoState()
int SMESH_subMesh::GetAlgoState |
( |
| ) |
const |
◆ GetComputeState()
int SMESH_subMesh::GetComputeState |
( |
| ) |
const |
◆ GetComputeError()
◆ DumpAlgoState()
void SMESH_subMesh::DumpAlgoState |
( |
bool |
isMain | ) |
|
◆ ComputeStateEngine()
bool SMESH_subMesh::ComputeStateEngine |
( |
int |
event | ) |
|
◆ Evaluate()
◆ IsConform()
bool SMESH_subMesh::IsConform |
( |
const SMESH_Algo * |
theAlgo | ) |
|
◆ CanAddHypothesis()
bool SMESH_subMesh::CanAddHypothesis |
( |
const SMESH_Hypothesis * |
theHypothesis | ) |
const |
◆ IsApplicableHypotesis() [1/2]
static bool SMESH_subMesh::IsApplicableHypotesis |
( |
const SMESH_Hypothesis * |
theHypothesis, |
|
|
const TopAbs_ShapeEnum |
theShapeType |
|
) |
| |
|
static |
◆ IsApplicableHypotesis() [2/2]
bool SMESH_subMesh::IsApplicableHypotesis |
( |
const SMESH_Hypothesis * |
theHypothesis | ) |
const |
◆ CheckConcurentHypothesis()
◆ IsEmpty()
bool SMESH_subMesh::IsEmpty |
( |
| ) |
const |
Return true if no mesh entities is bound to the submesh.
◆ IsMeshComputed()
bool SMESH_subMesh::IsMeshComputed |
( |
| ) |
const |
◆ SetIsAlwaysComputed()
void SMESH_subMesh::SetIsAlwaysComputed |
( |
bool |
isAlCo | ) |
|
Allow algo->Compute() if a subshape of lower dim is meshed but none mesh entity is bound to it.
◆ IsAlwaysComputed()
bool SMESH_subMesh::IsAlwaysComputed |
( |
| ) |
|
◆ InsertDependence()
void SMESH_subMesh::InsertDependence |
( |
const TopoDS_Shape |
aSubShape | ) |
|
|
protected |
◆ SubMeshesComputed()
bool SMESH_subMesh::SubMeshesComputed |
( |
| ) |
|
|
protected |
◆ SubMeshesReady()
bool SMESH_subMesh::SubMeshesReady |
( |
| ) |
|
|
protected |
◆ RemoveSubMeshElementsAndNodes()
void SMESH_subMesh::RemoveSubMeshElementsAndNodes |
( |
| ) |
|
|
protected |
◆ UpdateDependantsState()
void SMESH_subMesh::UpdateDependantsState |
( |
const compute_event |
theEvent | ) |
|
|
protected |
◆ UpdateSubMeshState()
void SMESH_subMesh::UpdateSubMeshState |
( |
const compute_state |
theState | ) |
|
|
protected |
◆ ComputeSubMeshStateEngine()
void SMESH_subMesh::ComputeSubMeshStateEngine |
( |
int |
event | ) |
|
|
protected |
◆ CleanDependants()
void SMESH_subMesh::CleanDependants |
( |
| ) |
|
|
protected |
◆ CleanDependsOn()
void SMESH_subMesh::CleanDependsOn |
( |
| ) |
|
|
protected |
◆ SetAlgoState()
void SMESH_subMesh::SetAlgoState |
( |
int |
state | ) |
|
|
protected |
◆ GetCollection()
TopoDS_Shape SMESH_subMesh::GetCollection |
( |
SMESH_Gen * |
theGen, |
|
|
SMESH_Algo * |
theAlgo, |
|
|
bool & |
theSubComputed |
|
) |
| |
|
protected |
Return a shape containing all sub-shapes of the MainShape that can be meshed at once along with _subShape.
◆ ApplyToCollection()
bool SMESH_subMesh::ApplyToCollection |
( |
SMESH_Algo * |
theAlgo, |
|
|
const TopoDS_Shape & |
theCollection |
|
) |
| |
|
protected |
Apply theAlgo to all subshapes in theCollection.
◆ CheckComputeError()
bool SMESH_subMesh::CheckComputeError |
( |
SMESH_Algo * |
theAlgo, |
|
|
const TopoDS_Shape & |
theShape = TopoDS_Shape() |
|
) |
| |
|
protected |
Update compute_state by _computeError.
- Return values
-
bool | - false if there are errors |
◆ GetSimilarAttached()
Return a hypothesis attached to theShape.
If theHyp is provided, similar but not same hypotheses is returned; else an applicable ones having theHypType is returned
◆ myEventListeners
< event listeners to notify
event listeners to delete when HYP_OK algo_state is lost
Definition at line 149 of file SMESH_subMesh.hxx.
◆ myOwnListeners
◆ _subShape
TopoDS_Shape SMESH_subMesh::_subShape |
|
protected |
◆ _subMeshDS
◆ _father
◆ _Id
◆ _mapDepend
◆ _dependenceAnalysed
bool SMESH_subMesh::_dependenceAnalysed |
|
protected |
◆ _algoState
int SMESH_subMesh::_algoState |
|
protected |
◆ _computeState
int SMESH_subMesh::_computeState |
|
protected |
◆ _computeError
◆ _alwaysComputed
bool SMESH_subMesh::_alwaysComputed |
|
protected |