#include <StdMeshers_ProjectionSource3D.hxx>
Public Member Functions | |
| TopoDS_Shape | GetSource3DShape () const |
| SMESH_Mesh * | GetSourceMesh () const |
| TopoDS_Vertex | GetSourceVertex (int i) const |
| void | GetStoreParams (TopoDS_Shape &s1, TopoDS_Shape &s2, TopoDS_Shape &s3, TopoDS_Shape &s4, TopoDS_Shape &s5) const |
| Return all parameters. More... | |
| TopoDS_Vertex | GetTargetVertex (int i) const |
| bool | HasVertexAssociation () const |
| Test if vertex association defined. More... | |
| virtual std::istream & | LoadFrom (std::istream &load) |
| 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 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) |
| Initialize parameters by the mesh built on the geometry. More... | |
| void | SetSource3DShape (const TopoDS_Shape &shape) |
| void | SetSourceMesh (SMESH_Mesh *mesh) |
| void | SetVertexAssociation (const TopoDS_Shape &sourceVertex1, const TopoDS_Shape &sourceVertex2, const TopoDS_Shape &targetVertex1, const TopoDS_Shape &targetVertex2) |
| StdMeshers_ProjectionSource3D (int hypId, int studyId, SMESH_Gen *gen) | |
| virtual | ~StdMeshers_ProjectionSource3D () |
Public Member Functions inherited from SMESH_Hypothesis | |
| 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) |
| virtual bool | SetParametersByDefaults (const TDefaults &dflts, const SMESH_Mesh *theMesh=0)=0 |
| Initialize my parameter values by default parameters. More... | |
| virtual bool | SetParametersByMesh (const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape)=0 |
| Initialize my parameter values by the mesh built on the geometry. More... | |
| SMESH_Hypothesis (int hypId, int studyId, SMESH_Gen *gen) | |
| virtual | ~SMESH_Hypothesis () |
Public Member Functions inherited from SMESHDS_Hypothesis | |
| int | GetID () const |
| const char * | GetName () const |
| int | GetType () const |
| bool | IsSameName (const SMESHDS_Hypothesis &other) const |
| Compare types of hypotheses. More... | |
| virtual std::istream & | LoadFrom (std::istream &load)=0 |
| bool | operator!= (const SMESHDS_Hypothesis &other) const |
| virtual bool | operator== (const SMESHDS_Hypothesis &other) const |
| virtual std::ostream & | SaveTo (std::ostream &save)=0 |
| SMESHDS_Hypothesis (int hypId) | |
| virtual | ~SMESHDS_Hypothesis () |
Friends | |
| std::ostream & | operator<< (std::ostream &save, StdMeshers_ProjectionSource3D &hyp) |
| std::istream & | operator>> (std::istream &load, StdMeshers_ProjectionSource3D &hyp) |
Additional Inherited Members | |
Public Types inherited from SMESH_Hypothesis | |
| 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 } |
Public Types inherited from SMESHDS_Hypothesis | |
| enum | hypothesis_type { PARAM_ALGO , ALGO_0D , ALGO_1D , ALGO_2D , ALGO_3D } |
Static Public Member Functions inherited from SMESH_Hypothesis | |
| static bool | IsStatusFatal (Hypothesis_Status theStatus) |
This hypothesis specifies a meshed shell or solid to take a mesh pattern from and optionally association of vertices between the source shape and a target one (where a hipothesis is assigned to)
|
virtual |
| TopoDS_Shape StdMeshers_ProjectionSource3D::GetSource3DShape | ( | ) | const |
Returns the source shape
Returns the source face
Referenced by StdMeshers_ProjectionUtils::MakeComputed().
| SMESH_Mesh * StdMeshers_ProjectionSource3D::GetSourceMesh | ( | ) | const |
Return source mesh
Referenced by StdMeshers_ProjectionUtils::MakeComputed().
| TopoDS_Vertex StdMeshers_ProjectionSource3D::GetSourceVertex | ( | int | i | ) | const |
Returns the -th source vertex associated with the -th target vertex. Result may be nil if association not set.
Returns the vertex associated with the target vertex. Result may be nil if association not set
Referenced by StdMeshers_ProjectionUtils::InitVertexAssociation().
| void StdMeshers_ProjectionSource3D::GetStoreParams | ( | TopoDS_Shape & | s1, |
| TopoDS_Shape & | s2, | ||
| TopoDS_Shape & | s3, | ||
| TopoDS_Shape & | s4, | ||
| TopoDS_Shape & | s5 | ||
| ) | const |
Return all parameters.
| TopoDS_Vertex StdMeshers_ProjectionSource3D::GetTargetVertex | ( | int | i | ) | const |
Returns the -th target vertex associated with the -th source vertex. Result may be nil if association not set.
Referenced by StdMeshers_ProjectionUtils::InitVertexAssociation().
| bool StdMeshers_ProjectionSource3D::HasVertexAssociation | ( | ) | const |
Test if vertex association defined.
| bool | - test result |
Referenced by StdMeshers_ProjectionUtils::InitVertexAssociation().
|
virtual |
Implements SMESHDS_Hypothesis.
| void StdMeshers_ProjectionSource3D::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.
|
virtual |
Implements SMESHDS_Hypothesis.
References OfflineRenderingUtils::save().
|
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_ProjectionSource3D::SetSource3DShape | ( | const TopoDS_Shape & | Shape | ) |
Sets a source <shape> to take a mesh pattern from
Sets a source <face> to take a mesh pattern from
References SMESH_Gen::GetShapeDim(), and SMESH_Hypothesis::NotifySubMeshesHypothesisModification().
| void StdMeshers_ProjectionSource3D::SetSourceMesh | ( | SMESH_Mesh * | mesh | ) |
Sets source <mesh> to take a mesh pattern from
References SMESH_Hypothesis::NotifySubMeshesHypothesisModification().
| void StdMeshers_ProjectionSource3D::SetVertexAssociation | ( | const TopoDS_Shape & | sourceVertex1, |
| const TopoDS_Shape & | sourceVertex2, | ||
| const TopoDS_Shape & | targetVertex1, | ||
| const TopoDS_Shape & | targetVertex2 | ||
| ) |
Sets vertex association between the source shape and the target one. This parameter is optional. Two vertices must belong to one edge of a shape
References SMESH_Hypothesis::NotifySubMeshesHypothesisModification().
|
friend |
|
friend |