#include "HYDROGUI_VTKPrs.h"
#include "HYDROGUI_DataObject.h"
+#include <HYDROData_IAltitudeObject.h>
+#include <vtkMapper.h>
//=======================================================================
// name : HYDROGUI_VTKPrs
QString anEntry = HYDROGUI_DataObject::dataObjectEntry( theObject );
myIO = new SALOME_InteractiveObject(
anEntry.toAscii(), QString::number( theObject->GetKind() ).toAscii(), theObject->GetName().toAscii() );
+ myZRange[0] = HYDROData_IAltitudeObject::GetInvalidAltitude();
+ myZRange[1] = HYDROData_IAltitudeObject::GetInvalidAltitude();
}
//=======================================================================
void HYDROGUI_VTKPrs::compute()
{
}
+
+//=======================================================================
+// name : setZRange
+// Purpose : Compute the presentation
+//=======================================================================
+void HYDROGUI_VTKPrs::setZRange( double theRange[] )
+{
+ myZRange[0] = theRange[0];
+ myZRange[1] = theRange[1];
+ vtkMapper* aMapper = mapper();
+ if ( aMapper )
+ {
+ mapper()->SetScalarRange( myZRange );
+ }
+}