vtkIdType aScalarMode = GetScalarMode();
TMinMax aTMinMax = myField->GetMinMax(aScalarMode);
aScalarBarCtrl->SetRangeGlobal(aTMinMax.first, aTMinMax.second);
-
aScalarBarCtrl->SetOrientation(myOrientation);
int aScalarBarMode;
}
}
+ if (aScalarBarMode==1){
+ float aRangeGlobal[2];
+ //
+ aRangeGlobal[0]=aTMinMax.first;
+ aRangeGlobal[1]=aTMinMax.second;
+
+ GetGaussPointsPL()->GetMapper()->SetScalarRange(aRangeGlobal);
+ }
+
aScalarBarCtrl->SetMode(aScalarBarMode);
// Position