Salome HOME
Coloring of objects (Bug #219).
[modules/hydro.git] / src / HYDROData / HYDROData_Digue.h
1
2 #ifndef HYDROData_Digue_HeaderFile
3 #define HYDROData_Digue_HeaderFile
4
5 #include "HYDROData_Channel.h"
6
7 DEFINE_STANDARD_HANDLE(HYDROData_Digue, HYDROData_Channel)
8
9 /**\class HYDROData_Digue
10  * \brief 
11  *
12  */
13 class HYDROData_Digue : public HYDROData_Channel
14 {
15 protected:
16   /**
17    * Enumeration of tags corresponding to the persistent object parameters.
18    */
19   enum DataTag
20   {
21     DataTag_First = HYDROData_Channel::DataTag_First + 100, ///< first tag, to reserve
22   };
23
24 public:
25   DEFINE_STANDARD_RTTI(HYDROData_Digue);
26
27   /**
28    * Returns the kind of this object. Must be redefined in all objects of known type.
29    */
30   HYDRODATA_EXPORT virtual const ObjectKind GetKind() const {return KIND_DIGUE;}
31
32   /**
33    * Dump object to Python script representation.
34    */
35   HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
36
37   /**
38    * Returns default filling color for new digue.
39    */
40   HYDRODATA_EXPORT static QColor DefaultFillingColor();
41
42   /**
43    * Returns default border color for new digue.
44    */
45   HYDRODATA_EXPORT static QColor DefaultBorderColor();
46
47 protected:
48
49   /**
50    * Returns default filling color for new object.
51    */
52   HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
53
54   /**
55    * Returns default border color for new object.
56    */
57   HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
58
59 protected:
60
61   friend class HYDROData_Iterator;
62
63   /**
64    * Creates new object in the internal data structure. Use higher level objects 
65    * to create objects with real content.
66    */
67   HYDRODATA_EXPORT HYDROData_Digue();
68
69   /**
70    * Destructs properties of the object and object itself, removes it from the document.
71    */
72   virtual HYDRODATA_EXPORT ~HYDROData_Digue();
73 };
74
75 #endif