SMESH_Hypothesis Class Reference

#include <SMESH_Hypothesis.hxx>

Inheritance diagram for SMESH_Hypothesis:

Inheritance graph

Public Types

enum  Hypothesis_Status {
  HYP_OK, HYP_MISSING, HYP_CONCURENT, HYP_BAD_PARAMETER,
  HYP_UNKNOWN_FATAL, HYP_INCOMPATIBLE, HYP_NOTCONFORM, HYP_ALREADY_EXIST,
  HYP_BAD_DIM, HYP_BAD_SUBSHAPE
}
enum  hypothesis_type {
  PARAM_ALGO, ALGO, ALGO_1D, ALGO_2D,
  ALGO_3D
}

Public Member Functions

 SMESH_Hypothesis (int hypId, int studyId, SMESH_Gen *gen)
virtual ~SMESH_Hypothesis ()
virtual int GetDim () const
int GetStudyId () const
virtual void NotifySubMeshesHypothesisModification ()
virtual int GetShapeType () const
virtual const char * GetLibName () const
void SetLibName (const char *theLibName)
virtual bool SetParametersByMesh (const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape)=0
 Initialize my parameter values by the mesh built on the geometry.
virtual bool IsAuxiliary () const
 Return true if me is an auxiliary hypothesis.
const char * GetName () const
int GetID () const
int GetType () const
virtual std::ostream & SaveTo (std::ostream &save)=0
virtual std::istream & LoadFrom (std::istream &load)=0

Static Public Member Functions

static bool IsStatusFatal (Hypothesis_Status theStatus)

Protected Attributes

SMESH_Gen_gen
int _studyId
int _shapeType
int _param_algo_dim
std::string _name
int _hypId
int _type

Private Attributes

std::string _libName

Member Enumeration Documentation

enum SMESH_Hypothesis::Hypothesis_Status
 

Enumerator:
HYP_OK 
HYP_MISSING 
HYP_CONCURENT 
HYP_BAD_PARAMETER 
HYP_UNKNOWN_FATAL 
HYP_INCOMPATIBLE 
HYP_NOTCONFORM 
HYP_ALREADY_EXIST 
HYP_BAD_DIM 
HYP_BAD_SUBSHAPE 

enum SMESHDS_Hypothesis::hypothesis_type [inherited]
 

Enumerator:
PARAM_ALGO 
ALGO 
ALGO_1D 
ALGO_2D 
ALGO_3D 


Constructor & Destructor Documentation

SMESH_Hypothesis.SMESH_Hypothesis int  hypId,
int  studyId,
SMESH_Gen gen
 

virtual SMESH_Hypothesis.~SMESH_Hypothesis  )  [virtual]
 


Member Function Documentation

static bool SMESH_Hypothesis.IsStatusFatal Hypothesis_Status  theStatus  )  [static]
 

virtual int SMESH_Hypothesis.GetDim  )  const [virtual]
 

int SMESH_Hypothesis.GetStudyId  )  const
 

virtual void SMESH_Hypothesis.NotifySubMeshesHypothesisModification  )  [virtual]
 

virtual int SMESH_Hypothesis.GetShapeType  )  const [virtual]
 

virtual const char* SMESH_Hypothesis.GetLibName  )  const [virtual]
 

void SMESH_Hypothesis.SetLibName const char *  theLibName  ) 
 

virtual bool SMESH_Hypothesis.SetParametersByMesh const SMESH_Mesh theMesh,
const TopoDS_Shape theShape
[pure virtual]
 

Parameters:
theMesh - the built mesh
theShape - the geometry of interest
Return values:
bool - true if parameter values have been successfully defined

Implemented in SMESH_Algo, StdMeshers_Arithmetic1D, StdMeshers_AutomaticLength, StdMeshers_Deflection1D, StdMeshers_LengthFromEdges, StdMeshers_LocalLength, StdMeshers_MaxElementArea, StdMeshers_MaxElementVolume, StdMeshers_NotConformAllowed, StdMeshers_NumberOfSegments, StdMeshers_Propagation, StdMeshers_QuadranglePreference, StdMeshers_QuadraticMesh, and StdMeshers_StartEndLength.

virtual bool SMESH_Hypothesis.IsAuxiliary  )  const [virtual]
 

Return values:
bool - auxiliary or not
An auxiliary hypothesis is optional, i.e. an algorithm can work without it and another hypothesis of the same dimention can be assigned to the shape

const char * SMESHDS_Hypothesis::GetName  )  const [inherited]
 

int SMESHDS_Hypothesis::GetID  )  const [inherited]
 

int SMESHDS_Hypothesis::GetType  )  const [inherited]
 

virtual std::ostream& SMESHDS_Hypothesis.SaveTo std::ostream &  save  )  [pure virtual, inherited]
 

Implemented in StdMeshers_Arithmetic1D, StdMeshers_AutomaticLength, StdMeshers_Deflection1D, StdMeshers_LengthFromEdges, StdMeshers_LocalLength, StdMeshers_MaxElementArea, StdMeshers_MaxElementVolume, StdMeshers_NotConformAllowed, StdMeshers_NumberOfSegments, StdMeshers_Propagation, StdMeshers_QuadranglePreference, StdMeshers_QuadraticMesh, and StdMeshers_StartEndLength.

virtual std::istream& SMESHDS_Hypothesis.LoadFrom std::istream &  load  )  [pure virtual, inherited]
 

Implemented in StdMeshers_Arithmetic1D, StdMeshers_AutomaticLength, StdMeshers_Deflection1D, StdMeshers_LengthFromEdges, StdMeshers_LocalLength, StdMeshers_MaxElementArea, StdMeshers_MaxElementVolume, StdMeshers_NotConformAllowed, StdMeshers_NumberOfSegments, StdMeshers_Propagation, StdMeshers_QuadranglePreference, StdMeshers_QuadraticMesh, and StdMeshers_StartEndLength.


Field Documentation

SMESH_Gen* SMESH_Hypothesis._gen [protected]
 

int SMESH_Hypothesis._studyId [protected]
 

int SMESH_Hypothesis._shapeType [protected]
 

int SMESH_Hypothesis._param_algo_dim [protected]
 

std::string SMESH_Hypothesis._libName [private]
 

std::string SMESHDS_Hypothesis._name [protected, inherited]
 

int SMESHDS_Hypothesis._hypId [protected, inherited]
 

int SMESHDS_Hypothesis._type [protected, inherited]