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)
60 throw ( SALOME_Exception );
70 bool IsCompoundSource()
const
71 {
return !_sourceEdge.IsNull() && _sourceEdge.ShapeType() == TopAbs_COMPOUND; }
87 void SetVertexAssociation(
const TopoDS_Shape& sourceVertex,
88 const TopoDS_Shape& targetVertex)
89 throw ( SALOME_Exception );
107 bool HasVertexAssociation()
const
108 {
return ( !_sourceVertex.IsNull() && !_targetVertex.IsNull() ); }
113 void GetStoreParams(TopoDS_Shape& s1,
115 TopoDS_Shape& s3)
const;
120 void RestoreParams(
const TopoDS_Shape& s1,
121 const TopoDS_Shape& s2,
122 const TopoDS_Shape& s3,
125 virtual std::ostream &
SaveTo(std::ostream & save);
126 virtual std::istream &
LoadFrom(std::istream & load);