[vtkusers] 3D axis that follows main actor

Bill Lorensen bill.lorensen at gmail.com
Thu Sep 9 08:22:24 EDT 2010


Try this:
http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes#AxesIndicator.cxx
or for a more sophisticated "axes", this:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/OrientationMarkerWidget


On Thu, Sep 9, 2010 at 7:56 AM, Rodrigo Valiña Gutiérrez
<rodrigo.valina at usc.es> wrote:
> On Thu, Sep 9, 2010 at 11:45 AM, David Doria <daviddoria+vtk at gmail.com>
> wrote:
>>
>> On Thu, Sep 9, 2010 at 4:44 AM, Rodrigo Valiña Gutiérrez
>> <rodrigo.valina at usc.es> wrote:
>> > Hi,
>> >
>> > I want an actor or a way to draw an object composed of 3 arrows for X Y
>> > and
>> > Z axes, in the lower left corner of the window, and orients itself
>> > acording
>> > to the rotation of the camera. I do not want it to zoom or displace. It
>> > should be like the one ParaView has in the lower left corner.
>> >
>> > Is there any simple way to do it?
>> >
>> > --
>> > Rodrigo
>>
>> This should do the trick;
>>
>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Axes
>>
>> David
>
> It does not work for me.
> The code in the link places the object in world coordinates, and the object
> moves and zooms with the rest of the scene.
> I wanted an object that was fixed-size and fixed-position (lower left corner
> of the visualization), and only oriented itself like the other objects in
> the scene.
>
> --
> Rodrigo
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK 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