Salome HOME
HYDROGUI_Wizard has been refactored and now uses QStackedWidget instead of QWizard.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_AISCurve.h
index 52dd9d2a8e71233dd2d52c23925c1dc5af9f515f..f1fca75aefcaf7a5e9b0c709ff8e96cf2bebbc3a 100755 (executable)
@@ -1,69 +1,77 @@
-#ifndef HYDROGUI_AIS_CURVE_H\r
-#define HYDROGUI_AIS_CURVE_H\r
-\r
-#include <vector>\r
-#include <list>\r
-\r
-#include <AIS_InteractiveContext.hxx>\r
-#include <AIS_Point.hxx>\r
-#include <AIS_Line.hxx>\r
-#include <CurveCreator_Listener.hxx>\r
-\r
-class CurveCreator_Curve;\r
-class AIS_InteractiveObject;\r
-class AIS_Point;\r
-class AIS_Line;\r
-\r
-class HYDROGUI_AISCurveSection\r
-{\r
-public:\r
-  HYDROGUI_AISCurveSection(  Handle_AIS_InteractiveContext theContext, \r
-    CurveCreator_Curve* theCurve, int theSection );\r
-  virtual ~HYDROGUI_AISCurveSection();\r
-\r
-  void Display();\r
-  void Erase();\r
-\r
-  void  highlight( bool isHL );\r
-protected:\r
-  virtual void buildSection();\r
-  void    getPoint( int theIndx, double& theX, double& theY, double& theZ );\r
-  Handle_AIS_Point getAISPoint( int theIndx );\r
-  Handle_AIS_Line  getAISLine( int theIndx1, int theIndx2 );\r
-  Quantity_Color getActiveColor();\r
-\r
-private:\r
-  CurveCreator_Curve*                                 myCurve;\r
-  int                                                 mySection;\r
-  std::vector< Handle_AIS_InteractiveObject >         myObjects;\r
-  Handle_AIS_InteractiveContext                       myContext;\r
-  bool                                                myIsHighlight;\r
-  bool                                                myIsHL;\r
-};\r
-\r
-class HYDROGUI_AISCurve : public CurveCreator_Listener\r
-{\r
-public:\r
-  HYDROGUI_AISCurve(CurveCreator_Curve* theCurve, Handle_AIS_InteractiveContext theContext );\r
-  ~HYDROGUI_AISCurve(void);\r
-\r
-  void setCurve( CurveCreator_Curve* theCurve );\r
-\r
-  void Display();\r
-\r
-  virtual void pointInserted( int theSection, int theIndx );\r
-\r
-  void  highlightSection( int theSection, bool isHL );\r
-  void  clearSelection();\r
-\r
-protected:\r
-  virtual void  buildCurve();\r
-  Quantity_Color getActiveColor();\r
-\r
-private:\r
-  CurveCreator_Curve*                                 myCurve;\r
-  Handle_AIS_InteractiveContext                       myContext;\r
-  std::vector< HYDROGUI_AISCurveSection* >            myCurveRepresentation; \r
-};\r
-\r
-#endif
\ No newline at end of file
+#ifndef HYDROGUI_AIS_CURVE_H
+#define HYDROGUI_AIS_CURVE_H
+
+#include <vector>
+#include <list>
+
+#include <AIS_InteractiveContext.hxx>
+#include <AIS_Point.hxx>
+#include <AIS_Line.hxx>
+
+#include <CurveCreator_Listener.hxx>
+
+class CurveCreator_Curve;
+
+class AIS_InteractiveObject;
+class AIS_Point;
+class AIS_Line;
+
+class HYDROGUI_AISCurveSection
+{
+public:
+  HYDROGUI_AISCurveSection(  Handle_AIS_InteractiveContext theContext, 
+    CurveCreator_Curve* theCurve, int theSection );
+  virtual ~HYDROGUI_AISCurveSection();
+
+  void Display();
+  void Erase();
+
+  void  highlight( bool isHL );
+
+protected:
+  virtual void buildSection();
+
+  void    getPoint( int theIndx, double& theX, double& theY, double& theZ );
+
+  Handle_AIS_Point getAISPoint( int theIndx );
+  Handle_AIS_Line  getAISLine( int theIndx1, int theIndx2 );
+
+  Quantity_Color getActiveColor();
+
+private:
+  CurveCreator_Curve*                                 myCurve;
+  int                                                 mySection;
+  std::vector< Handle_AIS_InteractiveObject >         myObjects;
+  Handle_AIS_InteractiveContext                       myContext;
+  bool                                                myIsHighlight;
+  bool                                                myIsHL;
+};
+
+class HYDROGUI_AISCurve : public CurveCreator_Listener
+{
+public:
+  HYDROGUI_AISCurve(CurveCreator_Curve* theCurve, Handle_AIS_InteractiveContext theContext );
+  ~HYDROGUI_AISCurve(void);
+
+  void setCurve( CurveCreator_Curve* theCurve );
+
+  void Display();
+  void Erase();
+
+  virtual void pointInserted( int theSection, int theIndx );
+
+  void  highlightSection( int theSection, bool isHL );
+
+  void  clearSelection();
+
+protected:
+  virtual void  buildCurve();
+  Quantity_Color getActiveColor();
+
+private:
+  CurveCreator_Curve*                                 myCurve;
+  Handle_AIS_InteractiveContext                       myContext;
+  std::vector< HYDROGUI_AISCurveSection* >            myCurveRepresentation; 
+};
+
+#endif