2 #ifndef HYDROData_Object_HeaderFile
3 #define HYDROData_Object_HeaderFile
5 #include <HYDROData_Entity.h>
9 DEFINE_STANDARD_HANDLE(HYDROData_Object, HYDROData_Entity)
12 /**\class HYDROData_Object
13 * \brief The base class for all geometrical objects in the HYDRO module.
16 class HYDROData_Object : public HYDROData_Entity
20 * Enumeration of tags corresponding to the persistent object parameters.
24 DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
30 * Enumeration of tags corresponding to the child sub-objects of object.
34 ChildTag_First = HYDROData_Entity::ChildTag_First + 100, ///< first tag, to reserve
38 DEFINE_STANDARD_RTTI(HYDROData_Object);
41 * Sets the top(2d projection) shape of the object.
43 HYDRODATA_EXPORT virtual void SetTopShape( const TopoDS_Shape& theShape );
46 * Returns the top shape of the object.
48 HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const = 0;
51 * Sets the 3d shape of the object.
53 HYDRODATA_EXPORT virtual void SetShape3D( const TopoDS_Shape& theShape );
56 * Returns the 3d shape of the object.
58 HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const = 0;
63 * Creates new object in the internal data structure. Use higher level objects
64 * to create objects with real content.
66 HYDRODATA_EXPORT HYDROData_Object();
69 * Destructs properties of the object and object itself, removes it from the document.
71 virtual HYDRODATA_EXPORT ~HYDROData_Object();
76 * Retrieve the top shape of the object from data label.
78 HYDRODATA_EXPORT TopoDS_Shape getTopShape() const;
81 * Retrieve the 3d shape of the object from data label.
83 HYDRODATA_EXPORT TopoDS_Shape getShape3D() const;