#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
+#include <qapplication.h>
+
using namespace std;
#ifdef _DEBUG_
//if (CheckStudy(myStudyDocument)) {
if (myApplication) {
TViewFrame* pView = new TViewFrame (myApplication);
- if (pView->Create(1))
+ if (pView->Create(1)) {
myResult = pView->_this();
+ qApp->processEvents(); // Fix for bug 9929
+ }
}
}
};
const int mode,
const double xMin, const double xMax,
const double yMin, const double yMax):
- myView(theView),
+ myView(theView),
myMode(mode),
myXMin(xMin),myXMax(xMax),
myYMin(yMin),myYMax(yMax)
const double myYMax;
Plot2d_ViewFrame* myView;
};
-
+
void XYPlot_i::FitXRange(const CORBA::Double xMin,const CORBA::Double xMax)
{
const CORBA::Long mode = 1;
const CORBA::Long mode = 0;
ProcessVoidEvent(new TFitRangeEvent(myView,mode,xMin,xMax,yMin,yMax));
}
-
+
void XYPlot_i::GetFitRanges(double& xMin, double& xMax, double& yMin, double& yMax)
{
double y2Min,y2Max;
SetViewUp(theViewWindow,aViewUp);
SetFocalPoint(theViewWindow,aFocalPnt);
SetParallelScale(theViewWindow,aParallelScale);
- ScaleView(theViewWindow,VISU::View3D::XAxis,aScaleFactor[0]);
- ScaleView(theViewWindow,VISU::View3D::YAxis,aScaleFactor[1]);
- ScaleView(theViewWindow,VISU::View3D::ZAxis,aScaleFactor[2]);
+ SVTK_ViewWindow* aViewWindow = VISU::GetViewWindow(theViewWindow);
+ aViewWindow->SetScale(aScaleFactor);
}