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_Polyline, ///< reference polyline
28 DEFINE_STANDARD_RTTI(HYDROData_ImmersibleZone);
31 * Returns the kind of this object. Must be redefined in all objects of known type.
33 HYDRODATA_EXPORT virtual const ObjectKind GetKind() const {return KIND_IMMERSIBLE_ZONE;}
36 * Dump object to Python script representation.
38 HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
41 * Returns the top shape of the object.
43 HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const;
46 * Returns the 3d shape of the object.
48 HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
51 * Returns default filling color for new zone.
53 HYDRODATA_EXPORT static QColor DefaultFillingColor();
56 * Returns default border color for new zone.
58 HYDRODATA_EXPORT static QColor DefaultBorderColor();
61 * Sets reference polyline object for zone.
63 HYDRODATA_EXPORT virtual void SetPolyline( const Handle(HYDROData_Polyline)& thePolyline );
66 * Returns reference polyline object of zone.
68 HYDRODATA_EXPORT virtual Handle(HYDROData_Polyline) GetPolyline() const;
71 * Remove reference polyline object of zone.
73 HYDRODATA_EXPORT virtual void RemovePolyline();
77 friend class HYDROData_Iterator;
80 * Creates new object in the internal data structure. Use higher level objects
81 * to create objects with real content.
83 HYDRODATA_EXPORT HYDROData_ImmersibleZone();
86 * Destructs properties of the object and object itself, removes it from the document.
88 virtual HYDRODATA_EXPORT ~HYDROData_ImmersibleZone();