[vtkusers] Reverse color in vtkScalarsToColors?
Cory Quammen
cory.quammen at kitware.com
Mon Dec 5 09:52:39 EST 2016
vtkScalarsToColors is the base class for color maps. Try
SafeDownCasting the pointer returned by the mapper to vtkLookupTable.
If the returned color map is not an instance of vtkLookupTable, try
setting your own lookup table with something like
vtkSmartPointer<vtkLookupTable> myTable =
vtkSmartPointer<vtkLookupTable>::New();
myTable->SetHueRange(...);
// other lookup table setup here.
shape_actor->GetMapper->SetLookupTable(myTable);
HTH,
Cory
On Sun, Dec 4, 2016 at 11:33 PM, BBerco <bebe0705 at colorado.edu> wrote:
> Bill,
>
> the issue is that SetHueRange is a method of vtkLookUpTable and not
> vtkScalarsToColors. I am getting an instance of the latter with *shape_actor
> -> GetMapper() ->GetLookupTable()*, which is rather counter-intuitive.
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Reverse-color-in-vtkScalarsToColors-tp5741412p5741414.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
More information about the vtkusers
mailing list