Salome HOME
NRI : Check if a component-username is already associated with a component-name.
[modules/kernel.git] / src / Plot2d / Plot2d_CurveContainer.h
1 //  File      : Plot2d_CurveContainer.h
2 //  Created   : UI team, 05.09.00
3 //  Descrip   : Curve container class
4
5 //  Modified  : Mon Dec 03 15:37:21 2001
6 //  Author    : Vadim SANDLER
7 //  Project   : SALOME
8 //  Module    : Plot2d
9 //  Copyright : Open CASCADE 2001
10 //  $Header$
11
12 #ifndef Plot2d_CurveContainer_h
13 #define Plot2d_CurveContainer_h
14
15 #include "Plot2d_Curve.h"
16 #include <qlist.h>
17
18 class Plot2d_CurveContainer 
19 {
20 public:
21   Plot2d_CurveContainer();
22   ~Plot2d_CurveContainer();
23
24   void                addCurve( Plot2d_Curve* curve );
25   void                removeCurve( const int index, bool alsoDelete = false ) ;
26   void                clear( bool alsoDelete = false );
27   int                 count();
28   bool                isEmpty();
29   Plot2d_Curve*       curve( const int index );
30
31 private:
32   QList<Plot2d_Curve>  myCurves;
33 };
34
35 #endif // Plot2d_CurveContainer_h
36
37