28 #ifndef _SMESH_ProjectionSource2D_HXX_
29 #define _SMESH_ProjectionSource2D_HXX_
34 #include "Utils_SALOME_Exception.hxx"
36 #include <TopoDS_Vertex.hxx>
59 void SetSourceFace(
const TopoDS_Shape& face)
60 throw ( SALOME_Exception );
65 TopoDS_Shape GetSourceFace()
const;
70 bool IsCompoundSource()
const
71 {
return !_sourceFace.IsNull() && _sourceFace.ShapeType() == TopAbs_COMPOUND; }
88 void SetVertexAssociation(
const TopoDS_Shape& sourceVertex1,
89 const TopoDS_Shape& sourceVertex2,
90 const TopoDS_Shape& targetVertex1,
91 const TopoDS_Shape& targetVertex2)
92 throw ( SALOME_Exception );
99 TopoDS_Vertex GetSourceVertex(
int i)
const throw ( SALOME_Exception );
106 TopoDS_Vertex GetTargetVertex(
int i)
const throw ( SALOME_Exception );
112 bool HasVertexAssociation()
const
113 {
return ( !_sourceVertex1.IsNull() && !_targetVertex1.IsNull() &&
114 !_sourceVertex2.IsNull() && !_targetVertex2.IsNull()); }
119 void GetStoreParams(TopoDS_Shape& s1,
123 TopoDS_Shape& s5)
const;
128 void RestoreParams(
const TopoDS_Shape& s1,
129 const TopoDS_Shape& s2,
130 const TopoDS_Shape& s3,
131 const TopoDS_Shape& s4,
132 const TopoDS_Shape& s5,
135 virtual std::ostream &
SaveTo(std::ostream & save);
136 virtual std::istream &
LoadFrom(std::istream & load);