2 #ifndef HYDROData_ImmersibleZone_HeaderFile
3 #define HYDROData_ImmersibleZone_HeaderFile
5 #include <HYDROData_NaturalObject.h>
7 DEFINE_STANDARD_HANDLE(HYDROData_ImmersibleZone, HYDROData_NaturalObject)
9 class Handle(HYDROData_Polyline);
11 /**\class HYDROData_ImmersibleZone
15 class HYDROData_ImmersibleZone : public HYDROData_NaturalObject
19 * Enumeration of tags corresponding to the persistent object parameters.
23 DataTag_First = HYDROData_NaturalObject::DataTag_First + 100, ///< first tag, to reserve
24 DataTag_FillingColor, ///< filling color of immersible zone
25 DataTag_BorderColor, ///< border color of immersible zone
26 DataTag_Polyline, ///< reference polyline
30 DEFINE_STANDARD_RTTI(HYDROData_ImmersibleZone);
33 * Returns the kind of this object. Must be redefined in all objects of known type.
35 HYDRODATA_EXPORT virtual const ObjectKind GetKind() const {return KIND_IMMERSIBLE_ZONE;}
38 * Dump object to Python script representation.
40 HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
43 * Returns the top shape of the object.
45 HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const;
48 * Returns the 3d shape of the object.
50 HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
54 * Returns default filling color for new zone.
56 HYDRODATA_EXPORT static QColor DefaultFillingColor();
59 * Sets filling color for zone.
61 HYDRODATA_EXPORT virtual void SetFillingColor( const QColor& theColor );
64 * Returns filling color of zone.
66 HYDRODATA_EXPORT virtual QColor GetFillingColor() const;
70 * Returns default border color for new zone.
72 HYDRODATA_EXPORT static QColor DefaultBorderColor();
75 * Sets border color for zone.
77 HYDRODATA_EXPORT virtual void SetBorderColor( const QColor& theColor );
80 * Returns border color of zone.
82 HYDRODATA_EXPORT virtual QColor GetBorderColor() const;
86 * Sets reference polyline object for zone.
88 HYDRODATA_EXPORT virtual void SetPolyline( const Handle(HYDROData_Polyline)& thePolyline );
91 * Returns reference polyline object of zone.
93 HYDRODATA_EXPORT virtual Handle(HYDROData_Polyline) GetPolyline() const;
96 * Remove reference polyline object of zone.
98 HYDRODATA_EXPORT virtual void RemovePolyline();
102 friend class HYDROData_Iterator;
105 * Creates new object in the internal data structure. Use higher level objects
106 * to create objects with real content.
108 HYDRODATA_EXPORT HYDROData_ImmersibleZone();
111 * Destructs properties of the object and object itself, removes it from the document.
113 virtual HYDRODATA_EXPORT ~HYDROData_ImmersibleZone();