[vtkusers] vtkOrientationMarkerWidget: how to modify the color of the x y z labels?
John Platt
jcplatt at dsl.pipex.com
Wed Mar 26 19:46:19 EDT 2008
Hi,
The axes actor is the vtkProp derived object hosted by the widget -
vtkAxesActor* myAxesActor = vtkAxesActor::New();
vtkOrientationMarkerWidget* myAxesWidget =
vtkOrientationMarkerWidget::New();
myAxesWidget->SetOrientationMarker( myAxesActor );
HTH
John.
-----Original Message-----
From: Jean-Do Barnichon [mailto:jeando.barnichon at free.fr]
Sent: 26 March 2008 23:07
To: John Platt
Subject: Re: [vtkusers] vtkOrientationMarkerWidget: how to modify the
color of the x y z labels?
hi John,
ok, but I've not found how do I get access to the actor of the x-axis
("myAxesActor" in your sample code) from an instance of
vtkOrientationMarkerWidget?
J-D
John Platt a écrit :
> Hi, have you tried
>
> vtkTextProperty* axisXLabelTextProperty = vtkTextProperty::New();
> axisXLabelTextProperty->SetFontFamilyToArial();
> axisXLabelTextProperty->SetColor( 1.0, 0.0, 0.0 );
> axisXLabelTextProperty->SetFontSize( 12 );
> axisXLabelTextProperty->ShadowOn();
> myAxesActor->GetXAxisCaptionActor2D()->SetCaptionTextProperty(
> axisXLabelTextProperty );
> axisXLabelTextProperty->Delete();
>
> John.
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
> Behalf Of Jean-Do Barnichon
> Sent: 26 March 2008 21:36
> To: vtkusers at vtk.org
> Subject: [vtkusers] vtkOrientationMarkerWidget: how to modify the
color
> of the x y z labels?
>
> Hi,
>
> the vtkOrientationMarkerWidget shows an orientation marker with 3 axes
> labelled x y z.
>
> The question is simple:
> is it possible to modify the color of the x y z labels (white by
> default), or at least
> to show these labels using a shadowed font?
>
> Thanks,
> J-D
> _______________________________________________
> 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