[vtkusers] vtkActor.GetProperty()->SetColor() not working for me

Bill Lorensen bill.lorensen at gmail.com
Thu Aug 1 16:46:04 EDT 2013


+1



On Thu, Aug 1, 2013 at 4:10 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> On 8/1/2013 3:59 PM, Mike Gagnon wrote:
> >
> > I'm making the following call after having added an actor to my view.  Is
> > it possible to change the color after an actor is added? My call to
> SetColor
> > has no effect:
> >
> > pActor->GetProperty()->SetColor(1, 0.75, 0);   // yellowish color
>
> This has got to be one of the most-asked questions on the list.
> I remember struggling with this several times while learning VTK.
>
> > Got it!
> > pActor->GetMapper()->ScalarVisibilityOff().....
>
>  - David
> _______________________________________________
> 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
>



-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130801/217f4b4a/attachment.htm>


More information about the vtkusers mailing list