2 #ifndef HYDROData_Region_HeaderFile
3 #define HYDROData_Region_HeaderFile
5 #include "HYDROData_Entity.h"
8 DEFINE_STANDARD_HANDLE(HYDROData_Region, HYDROData_Entity)
10 class Handle(HYDROData_Zone);
12 /**\class HYDROData_Region
13 * \brief Regions are groups (lists) of zones, they can include one or several zones.
15 class HYDROData_Region : public HYDROData_Entity
21 * Enumeration of tags corresponding to the persistent object parameters.
25 DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
26 DataTag_ChildZone, ///< child zones
27 DataTag_Zone, ///< reference zones
31 DEFINE_STANDARD_RTTI(HYDROData_Region);
34 * Returns the kind of this object. Must be redefined in all objects of known type.
36 HYDRODATA_EXPORT virtual const ObjectKind GetKind() const { return KIND_REGION; }
39 * Dump object to Python script representation.
41 HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
45 * Add new one reference zone for region.
46 * The label of theZone is changed in case if old parent is not this region.
48 HYDRODATA_EXPORT virtual bool AddZone( const Handle(HYDROData_Zone)& theZone );
51 * Returns all reference zone of region.
53 HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetZones() const;
56 * Removes reference zone from region.
58 HYDRODATA_EXPORT virtual void RemoveZone( const Handle(HYDROData_Zone)& theZone );
61 * Removes all reference zones from region.
63 HYDRODATA_EXPORT virtual void RemoveZones();
69 * Create new one reference zone for region on child label.
70 * The new zone is added into the list of reference zones.
72 HYDRODATA_EXPORT virtual Handle(HYDROData_Zone) addNewZone();
76 friend class HYDROData_CalculationCase;
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.
86 * Destructs properties of the object and object itself, removes it from the document.