aBuilder.Generated( theShape );
}
+void HYDROData_Object::Update()
+{
+ removeTopShape();
+ removeShape3D();
+ SetToUpdate( false );
+}
+
void HYDROData_Object::SetBathymetry( const Handle(HYDROData_Bathymetry)& theBathymetry )
{
SetReferenceObject( theBathymetry, DataTag_Bathymetry );
HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const = 0;
+ /**
+ * Update the geometry object.
+ * Call this method whenever you made changes for object data.
+ */
+ HYDRODATA_EXPORT virtual void Update();
+
+
/**
* Set reference bathymetry object for geometry object.
*/
void HYDROData_Polyline3D::Update()
{
- removeTopShape();
- removeShape3D();
+ HYDROData_Object::Update();
Handle(HYDROData_PolylineXY) aPolylineXY = GetPolylineXY();
Handle(HYDROData_ProfileUZ) aProfileUZ = GetProfileUZ();
void HYDROData_Stream::Update()
{
- removeTopShape();
- removeShape3D();
+ HYDROData_NaturalObject::Update();
Handle(HYDROData_PolylineXY) aHydAxis = GetHydraulicAxis();
HYDROData_SequenceOfObjects aRefProfiles = GetProfiles();