#include <NETGENPlugin_Hypothesis.hxx>
Public Types | |
enum Fineness { VeryCoarse, Coarse, Moderate, Fine, VeryFine, UserDefined } | |
typedef std::map< std::string, double > TLocalSize | |
![]() | |
enum Hypothesis_Status { HYP_OK = 0, HYP_MISSING, HYP_CONCURENT, HYP_BAD_PARAMETER, HYP_HIDDEN_ALGO, HYP_HIDING_ALGO, HYP_UNKNOWN_FATAL, HYP_INCOMPATIBLE, HYP_NOTCONFORM, HYP_ALREADY_EXIST, HYP_BAD_DIM, HYP_BAD_SUBSHAPE, HYP_BAD_GEOMETRY, HYP_NEED_SHAPE, HYP_INCOMPAT_HYPS } | |
![]() | |
enum hypothesis_type { PARAM_ALGO, ALGO_0D, ALGO_1D, ALGO_2D, ALGO_3D } | |
Public Member Functions | |
Fineness GetFineness () const | |
bool GetFuseEdges () const | |
double GetGrowthRate () const | |
double GetLocalSizeOnEntry (const std::string &entry) | |
const TLocalSize & GetLocalSizesAndEntries () const | |
double GetMaxSize () const | |
double GetMinSize () const | |
double GetNbSegPerEdge () const | |
double GetNbSegPerRadius () const | |
bool GetOptimize () const | |
bool GetQuadAllowed () const | |
bool GetSecondOrder () const | |
bool GetSurfaceCurvature () const | |
virtual istream & LoadFrom (istream &load) | |
NETGENPlugin_Hypothesis (int hypId, int studyId, SMESH_Gen *gen) | |
virtual ostream & SaveTo (ostream &save) | |
void SetFineness (Fineness theFineness) | |
void SetFuseEdges (bool theVal) | |
void SetGrowthRate (double theRate) | |
void SetLocalSizeOnEntry (const std::string &entry, double localSize) | |
void SetMaxSize (double theSize) | |
void SetMinSize (double theSize) | |
void SetNbSegPerEdge (double theVal) | |
void SetNbSegPerRadius (double theVal) | |
void SetOptimize (bool theVal) | |
virtual bool SetParametersByDefaults (const TDefaults &dflts, const SMESH_Mesh *theMesh=0) | |
Initialize my parameter values by default parameters. More... | |
virtual bool SetParametersByMesh (const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape) | |
Does nothing. More... | |
void SetQuadAllowed (bool theVal) | |
void SetSecondOrder (bool theVal) | |
void SetSurfaceCurvature (bool theVal) | |
void UnsetLocalSizeOnEntry (const std::string &entry) | |
![]() | |
void ClearParameters () | |
virtual bool DataDependOnParams () const | |
The returned value is used by NotifySubMeshesHypothesisModification() to decide to call subMesh->AlgoStateEngine( MODIF_HYP, hyp ) or not if subMesh is ready to be computed (algo+hyp==OK) but not yet computed. True result is reasonable for example if EventListeners depend on parameters of hypothesis. More... | |
virtual int GetDim () const | |
SMESH_Gen * GetGen () const | |
char * GetLastParameters () const | |
virtual const char * GetLibName () const | |
SMESH_Mesh * GetMeshByPersistentID (int id) | |
Find a mesh with given persistent ID. More... | |
char * GetParameters () const | |
virtual int GetShapeType () const | |
int GetStudyId () const | |
virtual bool IsAuxiliary () const | |
Return true if me is an auxiliary hypothesis. More... | |
virtual void NotifySubMeshesHypothesisModification () | |
void SetLastParameters (const char *theParameters) | |
void SetLibName (const char *theLibName) | |
void SetParameters (const char *theParameters) | |
SMESH_Hypothesis (int hypId, int studyId, SMESH_Gen *gen) | |
virtual ~SMESH_Hypothesis () | |
![]() | |
int GetID () const | |
const char * GetName () const | |
int GetType () const | |
bool IsSameName (const SMESHDS_Hypothesis &other) const | |
Compare types of hypotheses. More... | |
bool operator!= (const SMESHDS_Hypothesis &other) const | |
virtual bool operator== (const SMESHDS_Hypothesis &other) const | |
SMESHDS_Hypothesis (int hypId) | |
virtual ~SMESHDS_Hypothesis () | |
Static Public Member Functions | |
static Fineness GetDefaultFineness () | |
static bool GetDefaultFuseEdges () | |
static double GetDefaultGrowthRate () | |
static TLocalSize GetDefaultLocalSize () | |
static double GetDefaultMaxSize () | |
static double GetDefaultNbSegPerEdge () | |
static double GetDefaultNbSegPerRadius () | |
static bool GetDefaultOptimize () | |
static bool GetDefaultQuadAllowed () | |
static bool GetDefaultSecondOrder () | |
static bool GetDefaultSurfaceCurvature () | |
![]() | |
static bool IsStatusFatal (Hypothesis_Status theStatus) | |
Friends | |
NETGENPLUGIN_EXPORT ostream & operator<< (ostream &save, NETGENPlugin_Hypothesis &hyp) | |
NETGENPLUGIN_EXPORT istream & operator>> (istream &load, NETGENPlugin_Hypothesis &hyp) | |
Member Typedef Documentation
◆ TLocalSize
typedef std::map<std::string, double> NETGENPlugin_Hypothesis::TLocalSize |
Member Enumeration Documentation
◆ Fineness
Constructor & Destructor Documentation
◆ NETGENPlugin_Hypothesis()
NETGENPlugin_Hypothesis::NETGENPlugin_Hypothesis | ( | int | hypId, |
int | studyId, | ||
SMESH_Gen * | gen | ||
) |
Member Function Documentation
◆ GetDefaultFineness()
|
static |
Referenced by NETGENPlugin_Mesher::SetDefaultParameters().
◆ GetDefaultFuseEdges()
|
static |
Referenced by NETGENPlugin_Mesher::SetDefaultParameters().
◆ GetDefaultGrowthRate()
|
static |
Referenced by NETGENPlugin_Mesher::SetDefaultParameters().
◆ GetDefaultLocalSize()
|
static |
◆ GetDefaultMaxSize()
|
static |
◆ GetDefaultNbSegPerEdge()
|
static |
Referenced by NETGENPlugin_Mesher::SetDefaultParameters().
◆ GetDefaultNbSegPerRadius()
|
static |
Referenced by NETGENPlugin_Mesher::SetDefaultParameters().
◆ GetDefaultOptimize()
|
static |
◆ GetDefaultQuadAllowed()
|
static |
Referenced by NETGENPlugin_Mesher::SetDefaultParameters().
◆ GetDefaultSecondOrder()
|
static |
Referenced by NETGENPlugin_Mesher::SetDefaultParameters().
◆ GetDefaultSurfaceCurvature()
|
static |
Referenced by NETGENPlugin_Mesher::SetDefaultParameters().
◆ GetFineness()
Fineness NETGENPlugin_Hypothesis::GetFineness | ( | ) | const |
◆ GetFuseEdges()
bool NETGENPlugin_Hypothesis::GetFuseEdges | ( | ) | const |
◆ GetGrowthRate()
double NETGENPlugin_Hypothesis::GetGrowthRate | ( | ) | const |
◆ GetLocalSizeOnEntry()
double NETGENPlugin_Hypothesis::GetLocalSizeOnEntry | ( | const std::string & | entry | ) |
◆ GetLocalSizesAndEntries()
const TLocalSize& NETGENPlugin_Hypothesis::GetLocalSizesAndEntries | ( | ) | const |
◆ GetMaxSize()
double NETGENPlugin_Hypothesis::GetMaxSize | ( | ) | const |
◆ GetMinSize()
double NETGENPlugin_Hypothesis::GetMinSize | ( | ) | const |
◆ GetNbSegPerEdge()
double NETGENPlugin_Hypothesis::GetNbSegPerEdge | ( | ) | const |
◆ GetNbSegPerRadius()
double NETGENPlugin_Hypothesis::GetNbSegPerRadius | ( | ) | const |
◆ GetOptimize()
bool NETGENPlugin_Hypothesis::GetOptimize | ( | ) | const |
◆ GetQuadAllowed()
bool NETGENPlugin_Hypothesis::GetQuadAllowed | ( | ) | const |
◆ GetSecondOrder()
bool NETGENPlugin_Hypothesis::GetSecondOrder | ( | ) | const |
◆ GetSurfaceCurvature()
bool NETGENPlugin_Hypothesis::GetSurfaceCurvature | ( | ) | const |
◆ LoadFrom()
|
virtual |
Implements SMESHDS_Hypothesis.
◆ SaveTo()
|
virtual |
Implements SMESHDS_Hypothesis.
References OfflineRenderingUtils::save().
◆ SetFineness()
void NETGENPlugin_Hypothesis::SetFineness | ( | Fineness | theFineness | ) |
◆ SetFuseEdges()
void NETGENPlugin_Hypothesis::SetFuseEdges | ( | bool | theVal | ) |
◆ SetGrowthRate()
void NETGENPlugin_Hypothesis::SetGrowthRate | ( | double | theRate | ) |
◆ SetLocalSizeOnEntry()
void NETGENPlugin_Hypothesis::SetLocalSizeOnEntry | ( | const std::string & | entry, |
double | localSize | ||
) |
◆ SetMaxSize()
void NETGENPlugin_Hypothesis::SetMaxSize | ( | double | theSize | ) |
◆ SetMinSize()
void NETGENPlugin_Hypothesis::SetMinSize | ( | double | theSize | ) |
◆ SetNbSegPerEdge()
void NETGENPlugin_Hypothesis::SetNbSegPerEdge | ( | double | theVal | ) |
◆ SetNbSegPerRadius()
void NETGENPlugin_Hypothesis::SetNbSegPerRadius | ( | double | theVal | ) |
◆ SetOptimize()
void NETGENPlugin_Hypothesis::SetOptimize | ( | bool | theVal | ) |
◆ SetParametersByDefaults()
|
virtual |
Initialize my parameter values by default parameters.
- Return values
-
bool - true if parameter values have been successfully defined
Implements SMESH_Hypothesis.
References NETGENPlugin_Mesher::GetDefaultMinSize(), SMESH_Mesh::GetShapeToMesh(), and SMESH_Mesh::HasShapeToMesh().
◆ SetParametersByMesh()
|
virtual |
Does nothing.
- Parameters
-
theMesh - the built mesh theShape - the geometry of interest
- Return values
-
bool - always false
Implements SMESH_Hypothesis.
◆ SetQuadAllowed()
void NETGENPlugin_Hypothesis::SetQuadAllowed | ( | bool | theVal | ) |
◆ SetSecondOrder()
void NETGENPlugin_Hypothesis::SetSecondOrder | ( | bool | theVal | ) |
◆ SetSurfaceCurvature()
void NETGENPlugin_Hypothesis::SetSurfaceCurvature | ( | bool | theVal | ) |
◆ UnsetLocalSizeOnEntry()
void NETGENPlugin_Hypothesis::UnsetLocalSizeOnEntry | ( | const std::string & | entry | ) |
Friends And Related Function Documentation
◆ operator<<
|
friend |
◆ operator>>
|
friend |
The documentation for this class was generated from the following files:
- src/3rdParty/salomesmesh/inc/NETGENPlugin_Hypothesis.hxx
- src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Hypothesis.cpp