[vtkusers] FW: Thanks! RE: vtkAxisActor2D -- how to change its colour?

Atwood, Robert C r.atwood at imperial.ac.uk
Mon May 19 10:31:27 EDT 2008


 

Thanks, Amy, John,  that did the trick. I was confused because this
method GetProperty() is in a superclass so I didn't initially find it . 
 

Robert

 ********
Hi,

Have you tried anything along the lines

   GetRightAxis()->GetProperty()->SetColor( 0, 0, 0 );

HTH

John.

*******
> Once you get the vtkAxisActor2D from the vtkLegendScaleActor (e.g., 
> using the GetRightAxis() method), you can modify the 
> properties of the 
> axis itself by calling GetProperty() on the vtkAxisActor2D 
> and adjusting 
> the parameters as necessary. 
...
 0);
> 
> - Amy
> 



More information about the vtkusers mailing list