myOrientation(VISU_CutPlanesPL::YZ),
myIsRelative(true),
myIsContour(false),
- myPosition(0.5)
+ myPosition(0.5),
+ myScaleFactor(1.)
{
myAngle[0] = myAngle[1] = myAngle[2] = 0.;
SetNumberOfContours(32);
VISU_Plot3DPL::
SetScaleFactor(float theScaleFactor)
{
+ myScaleFactor = theScaleFactor;
myWarpScalar->SetScaleFactor(theScaleFactor);
}
VISU_Plot3DPL::
GetScaleFactor() const
{
- return myWarpScalar->GetScaleFactor();
+ return myScaleFactor;
}
void
maxPos = aBoundPrj[1];
}
+//=======================================================================
+//function : SetMapScale
+//purpose :
+//=======================================================================
+
+void VISU_Plot3DPL::SetMapScale(float theMapScale)
+{
+ VISU_ScalarMapPL::SetMapScale(theMapScale);
+
+ myWarpScalar->SetScaleFactor(myScaleFactor*theMapScale);
+ Modified();
+}
float
GetScaleFactor(vtkDataSet* theDataSet);
+ void SetMapScale(float theMapScale);
+
protected:
virtual THook* DoHook();
float myAngle[3];
bool myIsRelative, myIsContour;
- float myPosition;
+ float myPosition, myScaleFactor;
VISU_CutPlanesPL::PlaneOrientation myOrientation;
TVTKSmartPtr<vtkCellDataToPointData> myCellDataToPointData;