[vtkusers] vtkAxisActor2D -- how to change its colour?

John Platt jcplatt at dsl.pipex.com
Mon May 19 10:23:37 EDT 2008


Hi,

Have you tried anything along the lines

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

HTH

John.

-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
Behalf Of Atwood, Robert C
Sent: 19 May 2008 14:54
To: vtkusers
Subject: [vtkusers] vtkAxisActor2D -- how to change its colour?

Hi, I find that the vtkAxisActor2D member of vtkLegendScaleActor,  does
exactly what I am wanting to include in my application, however with the
little problem that the axis is white, whereas I want it to be black. 

I can't see which function to use to alter this property, I'm not quite
sure which member of the object this property belongs to. 

I have no trobule changing the colour and other properties of the labels
of the axis!

Any little hint or pointer to example that uses this or very similar
object to  draw a distance scale in the image  ?  (not like
CubeAxesActor, I don't want it moving as the scene is rotated) 

Thanks
Robert




_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list