2 #ifndef HYDROData_Object_HeaderFile
3 #define HYDROData_Object_HeaderFile
5 #include <HYDROData_Entity.h>
9 DEFINE_STANDARD_HANDLE(HYDROData_Object, HYDROData_Entity)
11 class Handle(HYDROData_Bathymetry);
13 /**\class HYDROData_Object
14 * \brief The base class for all geometrical objects in the HYDRO module.
17 class HYDROData_Object : 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
28 DataTag_Bathymetry, ///< reference bathymetry
32 DEFINE_STANDARD_RTTI(HYDROData_Object);
35 * Sets the top(2d projection) shape of the object.
37 HYDRODATA_EXPORT virtual void SetTopShape( const TopoDS_Shape& theShape );
40 * Returns the top shape of the object.
42 HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const = 0;
45 * Sets the 3d shape of the object.
47 HYDRODATA_EXPORT virtual void SetShape3D( const TopoDS_Shape& theShape );
50 * Returns the 3d shape of the object.
52 HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const = 0;
56 * Set reference bathymetry object for geometry object.
58 HYDRODATA_EXPORT virtual void SetBathymetry( const Handle(HYDROData_Bathymetry)& theBathymetry );
61 * Returns reference bathymetry object of geometry object.
63 HYDRODATA_EXPORT virtual Handle(HYDROData_Bathymetry) GetBathymetry() const;
66 * Clear the reference bathymetry object for geometry object.
68 HYDRODATA_EXPORT virtual void RemoveBathymetry();
74 * Creates new object in the internal data structure. Use higher level objects
75 * to create objects with real content.
77 HYDRODATA_EXPORT HYDROData_Object();
80 * Destructs properties of the object and object itself, removes it from the document.
82 virtual HYDRODATA_EXPORT ~HYDROData_Object();
87 * Retrieve the top shape of the object from data label.
89 HYDRODATA_EXPORT TopoDS_Shape getTopShape() const;
92 * Retrieve the 3d shape of the object from data label.
94 HYDRODATA_EXPORT TopoDS_Shape getShape3D() const;