#include <BRep_Tool.hxx>
-#include <Bnd_Box.hxx>
-#include <BRepBndLib.hxx>
-
#include <Geom_BSplineCurve.hxx>
#include <gp_Pnt2d.hxx>
#include <TopTools_SequenceOfShape.hxx>
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
+
#include <QColor>
#include <QStringList>
HYDROData_Polyline3D::HYDROData_Polyline3D()
-: HYDROData_Object()
+: HYDROData_Object( Geom_3d )
{
}
TopoDS_Wire aResWire = HYDROData_PolylineXY::BuildWire( aSectionType, anIsSectionClosed, aResPoints );
SetTopShape( aResWire );
SetShape3D( aResWire );
-
- double Xmin=0, Xmax=0, Ymin=0, Ymax=0, Zmin=-9999, Zmax=-9999;
- Bnd_Box B;
- BRepBndLib::Add(aResWire, B);
- B.Get(Xmin, Ymin, Zmin, Xmax, Ymax, Zmax);
- SetMiddleZ((Zmin+Zmax)/2.);
}
QColor HYDROData_Polyline3D::DefaultFillingColor()
updateChildProfilePoints();
// Indicate model of the need to update the polyline presentation
- SetToUpdate( true );
+ Changed( Geom_2d );
return true;
}
ClearReferenceObjects( DataTag_PolylineXY );
// Indicate model of the need to update the polyline presentation
- SetToUpdate( true );
+ Changed( Geom_2d );
}
bool HYDROData_Polyline3D::SetProfileUZ( const Handle(HYDROData_ProfileUZ)& theProfile )
RemoveAltitudeObject();
// Indicate model of the need to update the polyline presentation
- SetToUpdate( true );
+ Changed( Geom_Z );
return true;
}
ClearReferenceObjects( DataTag_ProfileUZ );
// Indicate model of the need to update the polyline presentation
- SetToUpdate( true );
+ Changed( Geom_Z );
}
bool HYDROData_Polyline3D::SetAltitudeObject(