28 #ifndef _SMESH_ProjectionSource1D_HXX_
29 #define _SMESH_ProjectionSource1D_HXX_
34 #include "Utils_SALOME_Exception.hxx"
36 #include <TopoDS_Vertex.hxx>
59 void SetSourceEdge(
const TopoDS_Shape& edge);
70 {
return !_sourceEdge.IsNull() && _sourceEdge.ShapeType() == TopAbs_COMPOUND; }
86 void SetVertexAssociation(
const TopoDS_Shape& sourceVertex,
87 const TopoDS_Shape& targetVertex);
106 {
return ( !_sourceVertex.IsNull() && !_targetVertex.IsNull() ); }
111 void GetStoreParams(TopoDS_Shape& s1,
113 TopoDS_Shape& s3)
const;
118 void RestoreParams(
const TopoDS_Shape& s1,
119 const TopoDS_Shape& s2,
120 const TopoDS_Shape& s3,
123 virtual std::ostream &
SaveTo(std::ostream & save);
124 virtual std::istream &
LoadFrom(std::istream & load);
ostream & operator<<(ostream &OS, const SMDS_MeshElement *e)
Definition: SMDS_MeshElement.cxx:212
#define STDMESHERS_EXPORT
Definition: SMESH_StdMeshers.hxx:38
istream & operator>>(istream &load, StdMeshers_AutomaticLength &hyp)
Definition: StdMeshers_AutomaticLength.cxx:326
virtual std::ostream & SaveTo(std::ostream &save)=0
virtual std::istream & LoadFrom(std::istream &load)=0
Definition: SMESH_Gen.hxx:68
Definition: SMESH_Hypothesis.hxx:48
virtual bool SetParametersByDefaults(const TDefaults &dflts, const SMESH_Mesh *theMesh=0)=0
Initialize my parameter values by default parameters.
virtual bool SetParametersByMesh(const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape)=0
Initialize my parameter values by the mesh built on the geometry.
Definition: SMESH_Mesh.hxx:80
This hypothesis specifies a meshed edge to take a mesh pattern from and optionally association of ver...
Definition: StdMeshers_ProjectionSource1D.hxx:49
TopoDS_Shape GetSourceEdge() const
Returns the source edge or a group containing edges.
Definition: StdMeshers_ProjectionSource1D.hxx:64
TopoDS_Vertex GetSourceVertex() const
Returns the vertex associated with the target vertex.
Definition: StdMeshers_ProjectionSource1D.hxx:93
SMESH_Mesh * GetSourceMesh() const
Return source mesh.
Definition: StdMeshers_ProjectionSource1D.hxx:80
TopoDS_Vertex _targetVertex
Definition: StdMeshers_ProjectionSource1D.hxx:149
SMESH_Mesh * _sourceMesh
Definition: StdMeshers_ProjectionSource1D.hxx:147
bool HasVertexAssociation() const
Test if vertex association defined.
Definition: StdMeshers_ProjectionSource1D.hxx:105
TopoDS_Vertex GetTargetVertex() const
Returns the vertex associated with the source vertex.
Definition: StdMeshers_ProjectionSource1D.hxx:99
bool IsCompoundSource() const
Returns true the source edge is a group of edges.
Definition: StdMeshers_ProjectionSource1D.hxx:69
TopoDS_Vertex _sourceVertex
Definition: StdMeshers_ProjectionSource1D.hxx:148
TopoDS_Shape _sourceEdge
Definition: StdMeshers_ProjectionSource1D.hxx:146