{
Superclass::Init();
- float aScalarRange[2];
- GetSourceRange(aScalarRange);
vtkDataSet* aDataSet = GetParentMesh();
float aScaleFactor = VISU_DeformedShapePL::GetScaleFactor( aDataSet );
+ float* aScalarRange = GetScalarRange();
static double EPS = 1.0 / VTK_LARGE_FLOAT;
if(fabs(aScalarRange[1]) > EPS)
SetScale( aScaleFactor / aScalarRange[1] );
::Update()
{
//cout << "VISU_GaussPointsPL::Update()" << endl;
-
- GetSourceRange(mySourceScalarRange);
- myDeltaScalarRange = mySourceScalarRange[1] - mySourceScalarRange[0];
+ float* aScalarRange = GetScalarRange();
+ mySourceScalarRange[0] = aScalarRange[0];
+ mySourceScalarRange[1] = aScalarRange[1];
+ myDeltaScalarRange = aScalarRange[1] - aScalarRange[0];
SetAverageCellSize( VISU_DeformedShapePL::GetScaleFactor( GetParentMesh() ) );
myScalarArray = aCellData->GetScalars();
myPSMapper->SetLookupTable( myMapperTable );
- myPSMapper->SetScalarRange( mySourceScalarRange );
+ myPSMapper->SetScalarRange( aScalarRange );
this->UpdateGlyph();
{
//cout << "VISU_GaussPointsPL::UpdateGlyph()" << endl;
- float aScalarRange[2];
- GetSourceRange( aScalarRange );
+ float* aScalarRange = GetScalarRange();
if( myPSMapper->GetPointSpriteMode() == 0 ) // Results
{