#include <SMESHDS_Hypothesis.hxx>

Public Types | |
| enum | hypothesis_type { PARAM_ALGO, ALGO_0D, ALGO_1D, ALGO_2D, ALGO_3D } |
Public Member Functions | |
| SMESHDS_Hypothesis (int hypId) | |
| virtual | ~SMESHDS_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 |
| virtual bool | operator== (const SMESHDS_Hypothesis &other) const |
| Equality. | |
| bool | operator!= (const SMESHDS_Hypothesis &other) const |
Protected Attributes | |
| std::string | _name |
| int | _hypId |
| int | _type |
Definition at line 37 of file SMESHDS_Hypothesis.hxx.
Definition at line 53 of file SMESHDS_Hypothesis.hxx.
{PARAM_ALGO, ALGO_0D, ALGO_1D, ALGO_2D, ALGO_3D};
| SMESHDS_Hypothesis::SMESHDS_Hypothesis | ( | int | hypId | ) |
Definition at line 40 of file SMESHDS_Hypothesis.cxx.
| SMESHDS_Hypothesis::~SMESHDS_Hypothesis | ( | ) | [virtual] |
Definition at line 52 of file SMESHDS_Hypothesis.cxx.
{
}
| int SMESHDS_Hypothesis::GetID | ( | ) | const |
Definition at line 73 of file SMESHDS_Hypothesis.cxx.
Referenced by SMESHDS_Document.AddHypothesis(), and SMESH_Mesh_i.GetHypothesisList().
{
return _hypId;
}
| const char * SMESHDS_Hypothesis::GetName | ( | ) | const |
Definition at line 62 of file SMESHDS_Hypothesis.cxx.
Referenced by SMESH_DimHyp.checkAlgo(), StdMeshers_Quadrangle_2D.CheckHypothesis(), and StdMeshers_Projection_3D.CheckHypothesis().
{
return _name.c_str();
}
| int SMESHDS_Hypothesis::GetType | ( | ) | const |
Definition at line 84 of file SMESHDS_Hypothesis.cxx.
Referenced by SMESH_DimHyp.checkAlgo(), checkConformIgnoredAlgos(), SMESH_Hypothesis.IsAuxiliary(), and SMESH_Mesh.IsUsedHypothesis().
{
return _type;
}
| virtual std::istream& SMESHDS_Hypothesis.LoadFrom | ( | std::istream & | load | ) | [pure virtual] |
Implemented in StdMeshers_Arithmetic1D, StdMeshers_AutomaticLength, StdMeshers_Deflection1D, StdMeshers_FixedPoints1D, StdMeshers_ImportSource1D, StdMeshers_LayerDistribution, StdMeshers_LengthFromEdges, StdMeshers_LocalLength, StdMeshers_MaxElementArea, StdMeshers_MaxElementVolume, StdMeshers_MaxLength, StdMeshers_NotConformAllowed, StdMeshers_NumberOfLayers, StdMeshers_NumberOfSegments, StdMeshers_ProjectionSource1D, StdMeshers_ProjectionSource2D, StdMeshers_ProjectionSource3D, StdMeshers_Propagation, StdMeshers_QuadrangleParams, StdMeshers_QuadranglePreference, StdMeshers_QuadraticMesh, StdMeshers_SegmentLengthAroundVertex, StdMeshers_StartEndLength, StdMeshers_TrianglePreference, and StdMeshers_ViscousLayers.
| bool SMESHDS_Hypothesis.operator!= | ( | const SMESHDS_Hypothesis & | other | ) | const |
Definition at line 51 of file SMESHDS_Hypothesis.hxx.
{ return !(*this==other); }
| bool SMESHDS_Hypothesis::operator== | ( | const SMESHDS_Hypothesis & | other | ) | const [virtual] |
Equality.
Definition at line 95 of file SMESHDS_Hypothesis.cxx.
References _name.
{
if ( this == &other )
return true;
if ( _name != other._name )
return false;
ostringstream mySave, otherSave;
((SMESHDS_Hypothesis*)this )->SaveTo(mySave);
((SMESHDS_Hypothesis*)&other)->SaveTo(otherSave);
return mySave.str() == otherSave.str();
}
| virtual std::ostream& SMESHDS_Hypothesis.SaveTo | ( | std::ostream & | save | ) | [pure virtual] |
Implemented in StdMeshers_Arithmetic1D, StdMeshers_AutomaticLength, StdMeshers_Deflection1D, StdMeshers_FixedPoints1D, StdMeshers_ImportSource1D, StdMeshers_LayerDistribution, StdMeshers_LengthFromEdges, StdMeshers_LocalLength, StdMeshers_MaxElementArea, StdMeshers_MaxElementVolume, StdMeshers_MaxLength, StdMeshers_NotConformAllowed, StdMeshers_NumberOfLayers, StdMeshers_NumberOfSegments, StdMeshers_ProjectionSource1D, StdMeshers_ProjectionSource2D, StdMeshers_ProjectionSource3D, StdMeshers_Propagation, StdMeshers_QuadrangleParams, StdMeshers_QuadranglePreference, StdMeshers_QuadraticMesh, StdMeshers_SegmentLengthAroundVertex, StdMeshers_StartEndLength, StdMeshers_TrianglePreference, and StdMeshers_ViscousLayers.
int SMESHDS_Hypothesis._hypId [protected] |
Definition at line 57 of file SMESHDS_Hypothesis.hxx.
Referenced by SMESH_Hypothesis.SMESH_Hypothesis().
std::string SMESHDS_Hypothesis._name [protected] |
Definition at line 56 of file SMESHDS_Hypothesis.hxx.
Referenced by operator==(), StdMeshers_Arithmetic1D.StdMeshers_Arithmetic1D(), StdMeshers_AutomaticLength.StdMeshers_AutomaticLength(), StdMeshers_Deflection1D.StdMeshers_Deflection1D(), StdMeshers_FixedPoints1D.StdMeshers_FixedPoints1D(), StdMeshers_ImportSource1D.StdMeshers_ImportSource1D(), StdMeshers_ImportSource2D.StdMeshers_ImportSource2D(), StdMeshers_LayerDistribution.StdMeshers_LayerDistribution(), StdMeshers_LayerDistribution2D.StdMeshers_LayerDistribution2D(), StdMeshers_LengthFromEdges.StdMeshers_LengthFromEdges(), StdMeshers_LocalLength.StdMeshers_LocalLength(), StdMeshers_MaxElementArea.StdMeshers_MaxElementArea(), StdMeshers_MaxElementVolume.StdMeshers_MaxElementVolume(), StdMeshers_MaxLength.StdMeshers_MaxLength(), StdMeshers_NotConformAllowed.StdMeshers_NotConformAllowed(), StdMeshers_NumberOfLayers.StdMeshers_NumberOfLayers(), StdMeshers_NumberOfLayers2D.StdMeshers_NumberOfLayers2D(), StdMeshers_NumberOfSegments.StdMeshers_NumberOfSegments(), StdMeshers_ProjectionSource1D.StdMeshers_ProjectionSource1D(), StdMeshers_ProjectionSource2D.StdMeshers_ProjectionSource2D(), StdMeshers_ProjectionSource3D.StdMeshers_ProjectionSource3D(), StdMeshers_Propagation.StdMeshers_Propagation(), StdMeshers_QuadrangleParams.StdMeshers_QuadrangleParams(), StdMeshers_QuadranglePreference.StdMeshers_QuadranglePreference(), StdMeshers_QuadraticMesh.StdMeshers_QuadraticMesh(), StdMeshers_StartEndLength.StdMeshers_StartEndLength(), StdMeshers_TrianglePreference.StdMeshers_TrianglePreference(), and StdMeshers_ViscousLayers.StdMeshers_ViscousLayers().
int SMESHDS_Hypothesis._type [protected] |
Definition at line 58 of file SMESHDS_Hypothesis.hxx.
Referenced by SMESH_Hypothesis.SMESH_Hypothesis().