X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_AISCurve.h;h=f1fca75aefcaf7a5e9b0c709ff8e96cf2bebbc3a;hb=de7cf9bb0a7a41d6487013c87f4a54d0664cd303;hp=88390a7eaafc377842eecdf3ce88d1a2d30fa9d1;hpb=f96113cb7e3ebc96e9ce6230234c68afe9c7e34c;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_AISCurve.h b/src/HYDROGUI/HYDROGUI_AISCurve.h index 88390a7e..f1fca75a 100755 --- a/src/HYDROGUI/HYDROGUI_AISCurve.h +++ b/src/HYDROGUI/HYDROGUI_AISCurve.h @@ -1,137 +1,77 @@ #ifndef HYDROGUI_AIS_CURVE_H - #define HYDROGUI_AIS_CURVE_H - - #include - #include - - #include - #include - #include #include - - 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 \ No newline at end of file +#endif