This hypothesis specifies a meshed face to take a mesh pattern from and optionally association of vertices between the source face and a target one (where a hipothesis is assigned to) More...
#include <StdMeshers_ProjectionSource2D.hxx>
Public Types | |
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 | |
StdMeshers_ProjectionSource2D (int hypId, int studyId, SMESH_Gen *gen) | |
StdMeshers_ProjectionSource2D::StdMeshers_ProjectionSource2D. More... | |
virtual | ~StdMeshers_ProjectionSource2D () |
StdMeshers_ProjectionSource2D::~StdMeshers_ProjectionSource2D. More... | |
void | SetSourceFace (const TopoDS_Shape &face) throw ( SALOME_Exception ) |
Sets a source <face> to take a mesh pattern from. More... | |
TopoDS_Shape | GetSourceFace () const |
Returns the source face or a group containing faces. More... | |
bool | IsCompoundSource () const |
Returns true the source face is a group of faces. More... | |
void | SetSourceMesh (SMESH_Mesh *mesh) |
Sets source <mesh> to take a mesh pattern from. More... | |
SMESH_Mesh * | GetSourceMesh () const |
Return source mesh. More... | |
void | SetVertexAssociation (const TopoDS_Shape &sourceVertex1, const TopoDS_Shape &sourceVertex2, const TopoDS_Shape &targetVertex1, const TopoDS_Shape &targetVertex2) throw ( SALOME_Exception ) |
Sets vertex association between the source face and the target one. More... | |
TopoDS_Vertex | GetSourceVertex (int i) const throw ( SALOME_Exception ) |
Returns the -th source vertex associated with the -th target vertex. More... | |
TopoDS_Vertex | GetTargetVertex (int i) const throw ( SALOME_Exception ) |
Returns the -th target vertex associated with the -th source vertex. More... | |
bool | HasVertexAssociation () const |
Test if vertex association defined. More... | |
void | GetStoreParams (TopoDS_Shape &s1, TopoDS_Shape &s2, TopoDS_Shape &s3, TopoDS_Shape &s4, TopoDS_Shape &s5) const |
Return all parameters. More... | |
void | RestoreParams (const TopoDS_Shape &s1, const TopoDS_Shape &s2, const TopoDS_Shape &s3, const TopoDS_Shape &s4, const TopoDS_Shape &s5, SMESH_Mesh *mesh) |
Set all parameters without notifying on modification. More... | |
virtual std::ostream & | SaveTo (std::ostream &save) |
virtual std::istream & | LoadFrom (std::istream &load) |
virtual bool | SetParametersByMesh (const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape) |
Initialize parameters by the mesh built on the geometry. More... | |
virtual bool | SetParametersByDefaults (const TDefaults &dflts, const SMESH_Mesh *theMesh=0) |
Initialize my parameter values by default parameters. More... | |
virtual int | GetDim () const |
int | GetStudyId () const |
SMESH_Gen * | GetGen () const |
virtual int | GetShapeType () const |
virtual const char * | GetLibName () const |
virtual void | NotifySubMeshesHypothesisModification () |
void | SetLibName (const char *theLibName) |
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. More... | |
virtual bool | IsAuxiliary () const |
Return true if me is an auxiliary hypothesis. More... | |
SMESH_Mesh * | GetMeshByPersistentID (int id) |
Find a mesh with given persistent ID. More... | |
const char * | GetName () const |
int | GetID () const |
int | GetType () const |
bool | IsSameName (const SMESHDS_Hypothesis &other) const |
Compare types of hypotheses. More... | |
virtual bool | operator== (const SMESHDS_Hypothesis &other) const |
Equality. More... | |
bool | operator!= (const SMESHDS_Hypothesis &other) const |
Static Public Member Functions | |
static bool | IsStatusFatal (Hypothesis_Status theStatus) |
Protected Attributes | |
TopoDS_Shape | _sourceFace |
SMESH_Mesh * | _sourceMesh |
TopoDS_Vertex | _sourceVertex1 |
TopoDS_Vertex | _sourceVertex2 |
TopoDS_Vertex | _targetVertex1 |
TopoDS_Vertex | _targetVertex2 |
SMESH_Gen * | _gen |
int | _studyId |
int | _shapeType |
int | _param_algo_dim |
std::string | _name |
int | _hypId |
hypothesis_type | _type |
Friends | |
std::ostream & | operator<< (std::ostream &save, StdMeshers_ProjectionSource2D &hyp) |
std::istream & | operator>> (std::istream &load, StdMeshers_ProjectionSource2D &hyp) |
This hypothesis specifies a meshed face to take a mesh pattern from and optionally association of vertices between the source face and a target one (where a hipothesis is assigned to)
|
inherited |
|
inherited |
StdMeshers_ProjectionSource2D::StdMeshers_ProjectionSource2D | ( | int | hypId, |
int | studyId, | ||
SMESH_Gen * | gen | ||
) |
StdMeshers_ProjectionSource2D::StdMeshers_ProjectionSource2D.
Constructor
References SMESHDS_Hypothesis::_name, SMESH_Hypothesis::_param_algo_dim, and _sourceMesh.
|
virtual |
|
virtualinherited |
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.
Reimplemented in StdMeshers_ImportSource1D.
|
virtualinherited |
Referenced by SMESH_Gen::TAlgoStateError::Set().
|
inherited |
Referenced by StdMeshers_Hexa_3D::Compute().
|
inherited |
Referenced by SMESHDS_Document::AddHypothesis().
|
virtualinherited |
|
inherited |
Find a mesh with given persistent ID.
References studyContextStruct::mapMesh.
|
inherited |
Referenced by StdMeshers_Projection_3D::CheckHypothesis(), StdMeshers_Projection_2D::CheckHypothesis(), StdMeshers_Import_1D::CheckHypothesis(), StdMeshers_Projection_1D::CheckHypothesis(), StdMeshers_Import_1D2D::CheckHypothesis(), StdMeshers_RadialQuadrangle_1D2D::CheckHypothesis(), StdMeshers_RadialPrism_3D::CheckHypothesis(), StdMeshers_Regular_1D::CheckHypothesis(), StdMeshers_MEFISTO_2D::CheckHypothesis(), and StdMeshers_Quadrangle_2D::CheckHypothesis().
|
virtualinherited |
TopoDS_Shape StdMeshers_ProjectionSource2D::GetSourceFace | ( | ) | const |
Returns the source face or a group containing faces.
Returns the source face.
References _sourceFace.
SMESH_Mesh* StdMeshers_ProjectionSource2D::GetSourceMesh | ( | ) | const |
Return source mesh.
TopoDS_Vertex StdMeshers_ProjectionSource2D::GetSourceVertex | ( | int | i | ) | const throw ( SALOME_Exception ) |
Returns the -th source vertex associated with the -th target vertex.
Returns the vertex associated with the target vertex.
Result may be nil if association not set. Valid indices are 1 and 2
Result may be nil if association not set
void StdMeshers_ProjectionSource2D::GetStoreParams | ( | TopoDS_Shape & | s1, |
TopoDS_Shape & | s2, | ||
TopoDS_Shape & | s3, | ||
TopoDS_Shape & | s4, | ||
TopoDS_Shape & | s5 | ||
) | const |
Return all parameters.
References _sourceFace, _sourceVertex1, _sourceVertex2, _targetVertex1, and _targetVertex2.
|
inherited |
TopoDS_Vertex StdMeshers_ProjectionSource2D::GetTargetVertex | ( | int | i | ) | const throw ( SALOME_Exception ) |
Returns the -th target vertex associated with the -th source vertex.
Result may be nil if association not set. Valid indices are 1 and 2
Result may be nil if association not set.
|
inherited |
Referenced by checkConformIgnoredAlgos(), SMESH_Hypothesis::IsAuxiliary(), and SMESH_Mesh::IsUsedHypothesis().
bool StdMeshers_ProjectionSource2D::HasVertexAssociation | ( | ) | const |
Test if vertex association defined.
bool | - test result |
|
virtualinherited |
Return true if me is an auxiliary hypothesis.
bool | - auxiliary or not |
An auxiliary hypothesis is optional, i.e. an algorithm can work without it and another hypothesis of the same dimension can be assigned to the shape
References SMESHDS_Hypothesis::GetType().
bool StdMeshers_ProjectionSource2D::IsCompoundSource | ( | ) | const |
Returns true the source face is a group of faces.
|
inherited |
Compare types of hypotheses.
References SMESHDS_Hypothesis::_name.
Referenced by StdMeshers_Regular_1D::CheckHypothesis().
|
staticinherited |
|
virtual |
Implements SMESHDS_Hypothesis.
Referenced by operator>>().
|
virtualinherited |
References studyContextStruct::mapMesh.
Referenced by StdMeshers_Reversible1D::SetReversedEdges(), and SetSourceMesh().
|
inherited |
|
virtualinherited |
Equality.
References SMESHDS_Hypothesis::_name.
void StdMeshers_ProjectionSource2D::RestoreParams | ( | const TopoDS_Shape & | s1, |
const TopoDS_Shape & | s2, | ||
const TopoDS_Shape & | s3, | ||
const TopoDS_Shape & | s4, | ||
const TopoDS_Shape & | s5, | ||
SMESH_Mesh * | mesh | ||
) |
Set all parameters without notifying on modification.
References _sourceFace, _sourceMesh, _sourceVertex1, _sourceVertex2, _targetVertex1, and _targetVertex2.
|
virtual |
Implements SMESHDS_Hypothesis.
References _sourceFace, _sourceMesh, _sourceVertex1, _sourceVertex2, _targetVertex1, and _targetVertex2.
Referenced by operator<<().
|
inherited |
|
virtual |
Initialize my parameter values by default parameters.
bool | - true if parameter values have been successfully defined |
Implements SMESH_Hypothesis.
|
virtual |
Initialize parameters by the mesh built on the geometry.
Initialize start and end length by the mesh built on the geometry.
theMesh | - the built mesh |
theShape | - the geometry of interest |
bool | - true if parameter values have been successfully defined |
Implementation does noting
theMesh | - the built mesh |
theShape | - the geometry of interest |
bool | - true if parameter values have been successfully defined |
Implements SMESH_Hypothesis.
void StdMeshers_ProjectionSource2D::SetSourceFace | ( | const TopoDS_Shape & | face | ) | throw ( SALOME_Exception ) |
Sets a source <face> to take a mesh pattern from.
References Face.
void StdMeshers_ProjectionSource2D::SetSourceMesh | ( | SMESH_Mesh * | mesh | ) |
Sets source <mesh> to take a mesh pattern from.
References _sourceMesh, and SMESH_Hypothesis::NotifySubMeshesHypothesisModification().
void StdMeshers_ProjectionSource2D::SetVertexAssociation | ( | const TopoDS_Shape & | sourceVertex1, |
const TopoDS_Shape & | sourceVertex2, | ||
const TopoDS_Shape & | targetVertex1, | ||
const TopoDS_Shape & | targetVertex2 | ||
) | throw ( SALOME_Exception ) |
Sets vertex association between the source face and the target one.
This parameter is optional. Two vertices must belong to one edge of a face
References SMESH_MesherHelper::Count().
|
friend |
|
friend |
|
protectedinherited |
Referenced by SMESH_Hypothesis::SMESH_Hypothesis().
|
protectedinherited |
|
protectedinherited |
Referenced by SMESHDS_Hypothesis::IsSameName(), SMESHDS_Hypothesis::operator==(), StdMeshers_Adaptive1D::StdMeshers_Adaptive1D(), StdMeshers_Arithmetic1D::StdMeshers_Arithmetic1D(), StdMeshers_AutomaticLength::StdMeshers_AutomaticLength(), StdMeshers_Cartesian_3D::StdMeshers_Cartesian_3D(), StdMeshers_CartesianParameters3D::StdMeshers_CartesianParameters3D(), StdMeshers_CompositeHexa_3D::StdMeshers_CompositeHexa_3D(), StdMeshers_CompositeSegment_1D::StdMeshers_CompositeSegment_1D(), StdMeshers_Deflection1D::StdMeshers_Deflection1D(), StdMeshers_FixedPoints1D::StdMeshers_FixedPoints1D(), StdMeshers_Geometric1D::StdMeshers_Geometric1D(), StdMeshers_Hexa_3D::StdMeshers_Hexa_3D(), StdMeshers_HexaFromSkin_3D::StdMeshers_HexaFromSkin_3D(), StdMeshers_Import_1D::StdMeshers_Import_1D(), StdMeshers_Import_1D2D::StdMeshers_Import_1D2D(), 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_MEFISTO_2D::StdMeshers_MEFISTO_2D(), StdMeshers_NotConformAllowed::StdMeshers_NotConformAllowed(), StdMeshers_NumberOfLayers::StdMeshers_NumberOfLayers(), StdMeshers_NumberOfLayers2D::StdMeshers_NumberOfLayers2D(), StdMeshers_NumberOfSegments::StdMeshers_NumberOfSegments(), StdMeshers_PolygonPerFace_2D::StdMeshers_PolygonPerFace_2D(), StdMeshers_Prism_3D::StdMeshers_Prism_3D(), StdMeshers_Projection_1D::StdMeshers_Projection_1D(), StdMeshers_Projection_1D2D::StdMeshers_Projection_1D2D(), StdMeshers_Projection_2D::StdMeshers_Projection_2D(), StdMeshers_Projection_3D::StdMeshers_Projection_3D(), StdMeshers_ProjectionSource1D::StdMeshers_ProjectionSource1D(), StdMeshers_ProjectionSource2D(), StdMeshers_ProjectionSource3D::StdMeshers_ProjectionSource3D(), StdMeshers_Propagation::StdMeshers_Propagation(), StdMeshers_PropagOfDistribution::StdMeshers_PropagOfDistribution(), StdMeshers_QuadFromMedialAxis_1D2D::StdMeshers_QuadFromMedialAxis_1D2D(), StdMeshers_Quadrangle_2D::StdMeshers_Quadrangle_2D(), StdMeshers_QuadrangleParams::StdMeshers_QuadrangleParams(), StdMeshers_QuadranglePreference::StdMeshers_QuadranglePreference(), StdMeshers_QuadraticMesh::StdMeshers_QuadraticMesh(), StdMeshers_RadialPrism_3D::StdMeshers_RadialPrism_3D(), StdMeshers_RadialQuadrangle_1D2D::StdMeshers_RadialQuadrangle_1D2D(), StdMeshers_Regular_1D::StdMeshers_Regular_1D(), StdMeshers_StartEndLength::StdMeshers_StartEndLength(), StdMeshers_ViscousLayers::StdMeshers_ViscousLayers(), and StdMeshers_ViscousLayers2D::StdMeshers_ViscousLayers2D().
|
protectedinherited |
Referenced by SMESH_Hypothesis::SMESH_Hypothesis(), StdMeshers_Adaptive1D::StdMeshers_Adaptive1D(), StdMeshers_Arithmetic1D::StdMeshers_Arithmetic1D(), StdMeshers_AutomaticLength::StdMeshers_AutomaticLength(), StdMeshers_CartesianParameters3D::StdMeshers_CartesianParameters3D(), 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_ProjectionSource3D::StdMeshers_ProjectionSource3D(), StdMeshers_Propagation::StdMeshers_Propagation(), StdMeshers_QuadrangleParams::StdMeshers_QuadrangleParams(), StdMeshers_QuadranglePreference::StdMeshers_QuadranglePreference(), StdMeshers_QuadraticMesh::StdMeshers_QuadraticMesh(), StdMeshers_Reversible1D::StdMeshers_Reversible1D(), StdMeshers_StartEndLength::StdMeshers_StartEndLength(), StdMeshers_ViscousLayers::StdMeshers_ViscousLayers(), and StdMeshers_ViscousLayers2D::StdMeshers_ViscousLayers2D().
|
protectedinherited |
Referenced by SMESH_0D_Algo::SMESH_0D_Algo(), SMESH_1D_Algo::SMESH_1D_Algo(), SMESH_2D_Algo::SMESH_2D_Algo(), SMESH_3D_Algo::SMESH_3D_Algo(), SMESH_Hypothesis::SMESH_Hypothesis(), StdMeshers_Cartesian_3D::StdMeshers_Cartesian_3D(), StdMeshers_CompositeHexa_3D::StdMeshers_CompositeHexa_3D(), StdMeshers_Hexa_3D::StdMeshers_Hexa_3D(), StdMeshers_Import_1D::StdMeshers_Import_1D(), StdMeshers_Import_1D2D::StdMeshers_Import_1D2D(), StdMeshers_MEFISTO_2D::StdMeshers_MEFISTO_2D(), StdMeshers_Prism_3D::StdMeshers_Prism_3D(), StdMeshers_Projection_1D::StdMeshers_Projection_1D(), StdMeshers_Projection_3D::StdMeshers_Projection_3D(), StdMeshers_QuadFromMedialAxis_1D2D::StdMeshers_QuadFromMedialAxis_1D2D(), StdMeshers_Quadrangle_2D::StdMeshers_Quadrangle_2D(), StdMeshers_RadialPrism_3D::StdMeshers_RadialPrism_3D(), StdMeshers_RadialQuadrangle_1D2D::StdMeshers_RadialQuadrangle_1D2D(), and StdMeshers_Regular_1D::StdMeshers_Regular_1D().
|
protected |
Referenced by GetSourceFace(), GetStoreParams(), RestoreParams(), and SaveTo().
|
protected |
Referenced by RestoreParams(), SaveTo(), SetSourceMesh(), and StdMeshers_ProjectionSource2D().
|
protected |
Referenced by GetStoreParams(), RestoreParams(), and SaveTo().
|
protected |
Referenced by GetStoreParams(), RestoreParams(), and SaveTo().
|
protectedinherited |
Referenced by SMESH_Hypothesis::SMESH_Hypothesis().
|
protected |
Referenced by GetStoreParams(), RestoreParams(), and SaveTo().
|
protected |
Referenced by GetStoreParams(), RestoreParams(), and SaveTo().
|
protectedinherited |