ClearReferenceObjects( DataTag_Polyline );
}
-void HYDROData_ImmersibleZone::SetBathymetry( const Handle(HYDROData_Bathymetry)& theBathymetry )
-{
- SetReferenceObject( theBathymetry, DataTag_Bathymetry );
-}
-
-Handle(HYDROData_Bathymetry) HYDROData_ImmersibleZone::GetBathymetry() const
-{
- return Handle(HYDROData_Bathymetry)::DownCast(
- GetReferenceObject( DataTag_Bathymetry ) );
-}
-
-void HYDROData_ImmersibleZone::RemoveBathymetry()
-{
- ClearReferenceObjects( DataTag_Bathymetry );
-}
-
DEFINE_STANDARD_HANDLE(HYDROData_ImmersibleZone, HYDROData_NaturalObject)
-class Handle(HYDROData_Bathymetry);
class Handle(HYDROData_Polyline);
/**\class HYDROData_ImmersibleZone
DataTag_FillingColor, ///< filling color of immersible zone
DataTag_BorderColor, ///< border color of immersible zone
DataTag_Polyline, ///< reference polyline
- DataTag_Bathymetry, ///< reference bathymetry
};
public:
*/
HYDRODATA_EXPORT virtual void RemovePolyline();
-
- /**
- * Set reference bathymetry object for zone.
- */
- HYDRODATA_EXPORT virtual void SetBathymetry( const Handle(HYDROData_Bathymetry)& theBathymetry );
-
- /**
- * Returns reference bathymetry object of zone.
- */
- HYDRODATA_EXPORT virtual Handle(HYDROData_Bathymetry) GetBathymetry() const;
-
- /**
- * Clear the bathymetry object for zone.
- */
- HYDRODATA_EXPORT virtual void RemoveBathymetry();
-
protected:
friend class HYDROData_Iterator;
#include "HYDROData_Object.h"
+#include "HYDROData_Bathymetry.h"
+
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
aBuilder.Generated( theShape );
}
+void HYDROData_Object::SetBathymetry( const Handle(HYDROData_Bathymetry)& theBathymetry )
+{
+ SetReferenceObject( theBathymetry, DataTag_Bathymetry );
+}
+
+Handle(HYDROData_Bathymetry) HYDROData_Object::GetBathymetry() const
+{
+ return Handle(HYDROData_Bathymetry)::DownCast(
+ GetReferenceObject( DataTag_Bathymetry ) );
+}
+
+void HYDROData_Object::RemoveBathymetry()
+{
+ ClearReferenceObjects( DataTag_Bathymetry );
+}
+
TopoDS_Shape HYDROData_Object::getTopShape() const
{
Handle(TNaming_NamedShape) aNamedShape;
DEFINE_STANDARD_HANDLE(HYDROData_Object, HYDROData_Entity)
+class Handle(HYDROData_Bathymetry);
/**\class HYDROData_Object
* \brief The base class for all geometrical objects in the HYDRO module.
DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
DataTag_TopShape,
DataTag_Shape3D,
+ DataTag_Bathymetry, ///< reference bathymetry
};
/**
*/
HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const = 0;
+
+ /**
+ * Set reference bathymetry object for geometry object.
+ */
+ HYDRODATA_EXPORT virtual void SetBathymetry( const Handle(HYDROData_Bathymetry)& theBathymetry );
+
+ /**
+ * Returns reference bathymetry object of geometry object.
+ */
+ HYDRODATA_EXPORT virtual Handle(HYDROData_Bathymetry) GetBathymetry() const;
+
+ /**
+ * Clear the reference bathymetry object for geometry object.
+ */
+ HYDRODATA_EXPORT virtual void RemoveBathymetry();
+
+
protected:
/**