<div class="gmail_quote">On Wed, Mar 3, 2010 at 8:05 AM, Mathieu P <span dir="ltr"><<a href="mailto:mtp.vtk@gmail.com">mtp.vtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Well guys,<br><br>self answer :<br><br>When using vtkHybrid and vtkRendering libs, you need to use <font size="2">vtkfreetype.lib and vtkftgl.lib</font><br><br><br>Now it's working.<br><br><br>For information, here a code snipplet for 3D axes attached to the left bottom corner :<br>
<br><pre><font style="font-family:arial,helvetica,sans-serif" size="2">There is, you can use the vtkAxesActor and <br>vtkOrientationMarkerWidget. Here's a snippet; look at the docs to see <br>the available options.<br>
<br> vtkAxesActor* axesActor = vtkAxesActor::New();<br> axesActor->AxisLabelsOn();<br> axesActor->SetShaftTypeToLine();<br> axesActor->SetTipTypeToCone();<br> axesActor->GetXAxisCaptionActor2D()->GetCaptionTextProperty()- <br>
>ShadowOff();<br> axesActor->GetYAxisCaptionActor2D()->GetCaptionTextProperty()- <br> >ShadowOff();<br> axesActor->GetZAxisCaptionActor2D()->GetCaptionTextProperty()- <br> >ShadowOff();<br> _axes = vtkOrientationMarkerWidget::New();<br>
_axes->SetOrientationMarker(axesActor);<br> _axes->SetInteractor(GetInteractor());<br> _axes->EnabledOn();<br style="font-family:arial,helvetica,sans-serif"></font><font size="2"><font style="font-family:arial,helvetica,sans-serif" size="2"> _axes->InteractiveOff();</font><br style="font-family:arial,helvetica,sans-serif">
</font><br><font style="font-family:arial,helvetica,sans-serif" size="2"><br><br>from Michel Rice @ <a href="http://marc.info/?l=vtkusers&m=119419720362846&w=2" target="_blank">http://marc.info/?l=vtkusers&m=119419720362846&w=2</a></font><br>
<br></pre><div class="im"><br>Cordialement,<br><br>Mathieu PICCIN<br>-----------------------<br></div><div class="im"><br></div></blockquote><div><br></div><div>Any time you use a vtk*Widget, you should link to vtkWidgets:</div>
<a href="http://www.vtk.org/Wiki/VTK/Examples/DisplayCoordinateAxes">http://www.vtk.org/Wiki/VTK/Examples/DisplayCoordinateAxes</a></div><div class="gmail_quote"><br clear="all">Thanks,<br><br><div>David</div></div>