[vtkusers] Cannot create vtkAxesActor

David Doria daviddoria+vtk at gmail.com
Wed Mar 3 08:12:42 EST 2010


On Wed, Mar 3, 2010 at 8:05 AM, Mathieu P <mtp.vtk at gmail.com> wrote:

> Well guys,
>
> self answer :
>
> When using vtkHybrid and vtkRendering libs, you need to use vtkfreetype.lib
> and vtkftgl.lib
>
>
> Now it's working.
>
>
> For information, here a code snipplet for 3D axes attached to the left
> bottom corner :
>
> There is, you can use the vtkAxesActor and
> vtkOrientationMarkerWidget. Here's a snippet; look at the docs to see
> the available options.
>
>    vtkAxesActor* axesActor = vtkAxesActor::New();
>    axesActor->AxisLabelsOn();
>    axesActor->SetShaftTypeToLine();
>    axesActor->SetTipTypeToCone();
>    axesActor->GetXAxisCaptionActor2D()->GetCaptionTextProperty()-
>
>  >ShadowOff();
>    axesActor->GetYAxisCaptionActor2D()->GetCaptionTextProperty()-
>  >ShadowOff();
>    axesActor->GetZAxisCaptionActor2D()->GetCaptionTextProperty()-
>  >ShadowOff();
>    _axes = vtkOrientationMarkerWidget::New();
>
>    _axes->SetOrientationMarker(axesActor);
>    _axes->SetInteractor(GetInteractor());
>    _axes->EnabledOn();
>    _axes->InteractiveOff();
>
>
>
> from Michel Rice @ http://marc.info/?l=vtkusers&m=119419720362846&w=2
>
>
>
> Cordialement,
>
> Mathieu PICCIN
> -----------------------
>
>
Any time you use a vtk*Widget, you should link to vtkWidgets:
http://www.vtk.org/Wiki/VTK/Examples/DisplayCoordinateAxes

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100303/29a81838/attachment.htm>


More information about the vtkusers mailing list