[vtkusers] Change the color of a polydata
David E DeMarle
dave.demarle at kitware.com
Fri Feb 13 14:00:47 EST 2009
VTK can color things in a variety of ways, by default it tries to
color things to show data values associated with each point or cell.
vtkActor->GetMapper() returns a vtkMapper
vtkMapper has a rich set of controls over exactly which and how values
are converted to colors through the Mapper's lookup table.
Alternatively, if you call
vtkMapper->SetScalarVisibilityOff()
the values and lookuptable are ignored. Then you use:
vtkActor->GetProperty() to get a vtkProperty()
and then call
vtkProperty()->SetColor(R,G,B)
to set the color of the entire object.
On Sat, Feb 7, 2009 at 6:16 AM, Nour Mestiri <nourmestiri at yahoo.fr> wrote:
> Hi all vtk users.
> I have many polydata saved as VTP files. When i display any one of those
> images, i always have a 'blue' data.
> I want to know haow to modify the color of a VTP image?
> Thank you so much
> ________________________________
> Ne pleurez pas si votre Webmail ferme. Récupérez votre historique sur Yahoo!
> Mail
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
More information about the vtkusers
mailing list