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 * Checks that object has 2D presentation. Reimlemented to retun true.
54 HYDRODATA_EXPORT virtual bool IsHas2dPrs() const;
57 * Returns the top shape of the object.
59 HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const;
62 * Returns the 3d shape of the object.
64 HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
67 * Returns default filling color for new zone.
69 HYDRODATA_EXPORT static QColor DefaultFillingColor();
72 * Returns default border color for new zone.
74 HYDRODATA_EXPORT static QColor DefaultBorderColor();
77 * Sets reference polyline object for zone.
79 HYDRODATA_EXPORT virtual void SetPolyline( const Handle(HYDROData_PolylineXY)& thePolyline );
82 * Returns reference polyline object of zone.
84 HYDRODATA_EXPORT virtual Handle(HYDROData_PolylineXY) GetPolyline() const;
87 * Remove reference polyline object of zone.
89 HYDRODATA_EXPORT virtual void RemovePolyline();
91 HYDRODATA_EXPORT TopoDS_Shape generateTopShape() const;
92 HYDRODATA_EXPORT static TopoDS_Shape generateTopShape( const Handle(HYDROData_PolylineXY)& );
97 * Returns default filling color for new object.
99 HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
102 * Returns default border color for new object.
104 HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
109 * Create all necessary child group objects.
111 HYDRODATA_EXPORT void createGroupObjects();
115 friend class HYDROData_Iterator;
118 * Creates new object in the internal data structure. Use higher level objects
119 * to create objects with real content.
121 HYDRODATA_EXPORT HYDROData_ImmersibleZone();
124 * Destructs properties of the object and object itself, removes it from the document.
126 virtual HYDRODATA_EXPORT ~HYDROData_ImmersibleZone();