Salome HOME
Checkbox for the point C is added in Import Image dialog.
[modules/hydro.git] / src / HYDROData / HYDROData_Zone.h
1
2 #ifndef HYDROData_Zone_HeaderFile
3 #define HYDROData_Zone_HeaderFile
4
5 #include <HYDROData_Domain.h>
6
7 class Handle(HYDROData_Polyline);
8
9 DEFINE_STANDARD_HANDLE(HYDROData_Zone, HYDROData_Domain)
10
11
12 /**\class HYDROData_Zone
13  * \brief Class that stores/retreives information about the 2d face.
14  */
15 class HYDROData_Zone : public HYDROData_Domain
16 {
17
18 protected:
19   /**
20    * Enumeration of tags corresponding to the persistent object parameters.
21    */
22   enum DataTag
23   {
24     DataTag_First = HYDROData_Domain::DataTag_First + 100, ///< first tag, to reserve
25     DataTag_Polyline,     ///< reference polyline
26   };
27
28 public:
29   DEFINE_STANDARD_RTTI(HYDROData_Zone);
30
31   /**
32    * Returns the kind of this object. Must be redefined in all objects of known type.
33    */
34   HYDRODATA_EXPORT virtual const ObjectKind GetKind() const { return KIND_ZONE; }
35
36   /**
37    * Dump object to Python script representation.
38    */
39   HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
40
41
42   /**
43    * Sets reference polyline object for zone.
44    */
45   HYDRODATA_EXPORT virtual void SetPolyline( const Handle(HYDROData_Polyline)& thePolyline );
46
47   /**
48    * Returns reference polyline object of zone.
49    */
50   HYDRODATA_EXPORT virtual Handle(HYDROData_Polyline) GetPolyline() const;
51
52   /**
53    * Remove reference polyline object of zone.
54    */
55   HYDRODATA_EXPORT virtual void RemovePolyline();
56
57
58   /**
59    * Returns data of object wrapped to QVariant.
60    * Reimplemented to wrap and return saved 2d polyline.
61    */
62   //HYDRODATA_EXPORT virtual QVariant GetDataVariant();
63
64   /**
65    * Returns the shape of the the object (redefined method).
66    */
67   HYDRODATA_EXPORT TopoDS_Face Face() const;
68
69 protected:
70
71   friend class HYDROData_Iterator;
72
73   /**
74    * Creates new object in the internal data structure. Use higher level objects 
75    * to create objects with real content.
76    */
77   HYDROData_Zone();
78
79   /**
80    * Destructs properties of the object and object itself, removes it from the document.
81    */
82   ~HYDROData_Zone();
83
84   /**
85    * Returns id for creation of object in python scripting.
86    */
87   virtual QString getPythonKindId() const;
88 };
89
90 #endif