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_PolylineXY);
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 list of all reference objects of this object.
43 HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const;
46 * Update the immersible zone object.
47 * Call this method whenever you made changes for object data.
49 HYDRODATA_EXPORT virtual void Update();
52 * Returns the top shape of the object.
54 HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const;
57 * Returns the 3d shape of the object.
59 HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
62 * Returns default filling color for new zone.
64 HYDRODATA_EXPORT static QColor DefaultFillingColor();
67 * Returns default border color for new zone.
69 HYDRODATA_EXPORT static QColor DefaultBorderColor();
72 * Sets reference polyline object for zone.
74 HYDRODATA_EXPORT virtual void SetPolyline( const Handle(HYDROData_PolylineXY)& thePolyline );
77 * Returns reference polyline object of zone.
79 HYDRODATA_EXPORT virtual Handle(HYDROData_PolylineXY) GetPolyline() const;
82 * Remove reference polyline object of zone.
84 HYDRODATA_EXPORT virtual void RemovePolyline();
88 TopoDS_Shape generateTopShape() const;
92 friend class HYDROData_Iterator;
95 * Creates new object in the internal data structure. Use higher level objects
96 * to create objects with real content.
98 HYDRODATA_EXPORT HYDROData_ImmersibleZone();
101 * Destructs properties of the object and object itself, removes it from the document.
103 virtual HYDRODATA_EXPORT ~HYDROData_ImmersibleZone();