2 #ifndef HYDROData_Zone_HeaderFile
3 #define HYDROData_Zone_HeaderFile
5 #include <HYDROData_Entity.h>
7 class Handle(HYDROData_Object);
10 DEFINE_STANDARD_HANDLE(HYDROData_Zone, HYDROData_Entity)
13 /**\class HYDROData_Zone
14 * \brief Class that stores/retreives information about the 2d face.
16 class HYDROData_Zone : 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_Shape, ///< reference shape
27 DataTag_GeometryObject, ///< reference geometry objects
31 DEFINE_STANDARD_RTTI(HYDROData_Zone);
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_ZONE; }
39 * Dump object to Python script representation.
41 HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
45 * Sets the shape of the zone.
47 HYDRODATA_EXPORT virtual void SetShape( const TopoDS_Shape& theShape );
50 * Returns the shape of the zone.
52 HYDRODATA_EXPORT virtual TopoDS_Shape GetShape() const;
56 * Returns number of geometry objects for zone.
58 HYDRODATA_EXPORT virtual int NbGeometryObjects() const;
61 * Add new one geometry object for zone.
63 HYDRODATA_EXPORT virtual void AddGeometryObject( const Handle(HYDROData_Object)& theObject );
66 * Replace the geometry object for zone.
68 HYDRODATA_EXPORT virtual void SetGeometryObject( const int theIndex,
69 const Handle(HYDROData_Object)& theObject );
72 * Sets the geometry object for zone.
74 HYDRODATA_EXPORT virtual void SetGeometryObjects( const HYDROData_SequenceOfObjects& theObjects );
77 * Returns geometry object of zone by index.
79 HYDRODATA_EXPORT virtual Handle(HYDROData_Object) GetGeometryObject( const int theIndex ) const;
82 * Returns all geometry objects of zone.
84 HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetGeometryObjects() const;
87 * Removes all geometry objects from zone.
89 HYDRODATA_EXPORT virtual void RemoveGeometryObjects();
94 friend class HYDROData_Region;
95 friend class HYDROData_Iterator;
98 * Creates new object in the internal data structure. Use higher level objects
99 * to create objects with real content.
104 * Destructs properties of the object and object itself, removes it from the document.