Salome HOME
0022661: EDF GEOM: [HYDRO] Integration of the polyline editor in GEOM
[modules/geom.git] / src / CurveCreator / CurveCreator_Displayer.hxx
1 #ifndef CURVECREATOR_DISPLAYER_H
2 #define CURVECREATOR_DISPLAYER_H
3
4 #include "CurveCreator_Macro.hxx"
5
6 #include <AIS_InteractiveObject.hxx>
7 #include <AIS_InteractiveContext.hxx>
8
9 #include <vector>
10
11 class CURVECREATOR_EXPORT CurveCreator_Displayer
12 {
13 typedef std::vector<Handle_AIS_InteractiveObject> AISObjectsList;
14
15 public:
16   CurveCreator_Displayer( Handle_AIS_InteractiveContext theContext,
17                           const int theZLayer = -1 );
18   ~CurveCreator_Displayer(void);
19
20   void display( const Handle_AIS_InteractiveObject& theObject, bool isUpdate );
21   void eraseAll( bool isUpdate );
22   //void highlight( const AISObjectsList& theObjects, bool isHL );
23
24 protected:
25   Quantity_Color getActiveColor( bool isHL );
26
27 private:
28   Handle_AIS_InteractiveContext myContext;
29   AISObjectsList                myObjects;
30   int                           myZLayer;
31 };
32
33 #endif