[vtk-developers] [VTK 0012799]: VRML Exporter disregards UseLookupTableScalarRangeOn on LookupTables
Mantis Bug Tracker
mantis at public.kitware.com
Fri Dec 16 05:47:36 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://www.vtk.org/Bug/view.php?id=12799
======================================================================
Reported By: tomasz
Assigned To:
======================================================================
Project: VTK
Issue ID: 12799
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: backlog
Project: TBD
Type: incorrect functionality
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 2011-12-16 11:47 CET
Last Modified: 2011-12-16 11:47 CET
======================================================================
Summary: VRML Exporter disregards UseLookupTableScalarRangeOn
on LookupTables
Description:
In its (internal) PolyDataMapper the exporter "copies" ScalarRange from the
actor (Get/Set), disregarding UseLookupTableScalarRangeOn if such done.
As a result the lookup table (colors) gets reset to the defaout range 0..1.
Remark: I do not now if "by design" the GetScalarRange shall (only) return what
has been "Sat" (diregarding UseLookupTableScalarRangeOn) OR if any Exporter
shall check UseLookupTableScalarRangeOn and go the other (now missing) way.
My Code:
contourMapper.ScalarVisibilityOn();
contourMapper.SetLookupTable(_LookupTable);
contourMapper.UseLookupTableScalarRangeOn(); // otherwise Mapper overwites lut
range!
and in vtkVRMLExporter:
pm = vtkPolyDataMapper::New();
pm->SetInput(pd);
pm->SetScalarRange(anActor->GetMapper()->GetScalarRange());
<================??????
pm->SetScalarVisibility(anActor->GetMapper()->GetScalarVisibility());
pm->SetLookupTable(anActor->GetMapper()->GetLookupTable());
pm->SetScalarMode(anActor->GetMapper()->GetScalarMode());
i.e. no check if UseLookupTableScalarRangeOn used instead
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-12-16 11:47 tomasz New Issue
======================================================================
More information about the vtk-developers
mailing list