Salome HOME
refs #1330: basic implementation of the not zoomable polyline arrows
[modules/hydro.git] / src / HYDROData / HYDROData_Channel.h
index 372e57a7a46facbf470ec4881cf62f43562ad9cc..3ba6e2c9a2e4cc15defffc426515226b706bc9f1 100644 (file)
 #include <TopoDS_Face.hxx>
 #include <TopoDS_Wire.hxx>
 
-class Handle(HYDROData_Polyline3D);
-class Handle(HYDROData_Profile);
-class TopTools_SequenceOfShape;
-class TopTools_ListOfShape;
-
-DEFINE_STANDARD_HANDLE(HYDROData_Channel, HYDROData_ArtificialObject)
+class HYDROData_Polyline3D;
+class HYDROData_Profile;
 
 /**\class HYDROData_Channel
  * \brief 
@@ -43,10 +39,10 @@ public:
   {
     TopoDS_Shape myPrs3D;
     TopoDS_Face  myPrs2D;
-    TopoDS_Wire  myLeftBank;
-    TopoDS_Wire  myRightBank;
-    TopoDS_Wire  myInlet;
-    TopoDS_Wire  myOutlet;
+    TopoDS_Shape myLeftBank;
+    TopoDS_Shape myRightBank;
+    TopoDS_Shape myInlet;
+    TopoDS_Shape myOutlet;
   };
 
 protected:
@@ -58,11 +54,11 @@ protected:
     DataTag_First = HYDROData_ArtificialObject::DataTag_First + 100, ///< first tag, to reserve
     DataTag_GuideLine, 
     DataTag_Profile,
+    DataTag_EquiDistance,
   };
 
 public:
-
-  DEFINE_STANDARD_RTTI(HYDROData_Channel);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Channel, HYDROData_ArtificialObject);
 
 public:
 
@@ -71,7 +67,8 @@ public:
    */
   HYDRODATA_EXPORT static bool CreatePresentations( const Handle(HYDROData_Polyline3D)& theGuideLine,
                                                     const Handle(HYDROData_Profile)&    theProfile,
-                                                    PrsDefinition&                      thePrs );
+                                                    PrsDefinition&                      thePrs,
+                                                    double                              theEquiDistance );
 
 public:
 
@@ -157,6 +154,8 @@ public:
    */
   HYDRODATA_EXPORT virtual void RemoveProfile();
 
+  HYDRODATA_EXPORT void SetEquiDistance( double );
+  HYDRODATA_EXPORT double GetEquiDistance() const;
 
 protected:
   /**