[vtkusers] fix position of vtkAxesActor

Nicolas Sarrasin nsarrasin at phenix-systems.com
Fri Sep 17 11:11:46 EDT 2010


  I encounter the same problem as you, indeed.
I opened a new post (take a look at "integrate a 
vtkOrientationMarkerWidget into a QVtkWidget" if the answer come first 
here ).

I think it doesn't come from vtkSmartPointer but more with the relation 
between the renderer and the interactor but I can't find what it is 
exactly...

Hope we'll find a solution...

Nicolas S.


Le 17/09/2010 16:57, Benoist Laurent a écrit :
> Hi all,
>
> The example works very well.
> However, when I try to put the code relative to the axes in a 
> different fonction the application crashes.
>
> void displayAxes(vtkRenderWindowInteractor *renderWindowInteractor)
> {
>     vtkSmartPointer<vtkAxesActor> axes =
>         vtkSmartPointer<vtkAxesActor>::New();
>
>     vtkSmartPointer<vtkOrientationMarkerWidget> widget =
>         vtkSmartPointer<vtkOrientationMarkerWidget>::New();
>     widget->SetOutlineColor( 0.9300, 0.5700, 0.1300 );
>     widget->SetOrientationMarker( axes );
>     widget->SetInteractor( renderWindowInteractor );
>     widget->SetViewport( 0.0, 0.0, 0.4, 0.4 );
>     widget->SetEnabled( 1 );
>     widget->InteractiveOn();
> }
>
> So I guess there's something I did not understand with the 
> vtkSmartPointer and/or the vtkWidget.
>
> An idea ?
> Thanks,
>
> Benoist
>
>
> Le 17 sept. 10 à 15:55, Nicolas Sarrasin a écrit :
>
>> Thanks very much!
>> It's exactly what I wanted.
>>
>> Le 16/09/2010 18:55, David Doria a écrit :
>>> On Thu, Sep 16, 2010 at 12:31 PM, Nicolas Sarrasin 
>>> <nsarrasin at phenix-systems.com <mailto:nsarrasin at phenix-systems.com>> 
>>> wrote:
>>>
>>>     Hi all,
>>>
>>>     How can i display 3Daxes in the bottom-right corner of my window ?
>>>     I want to fix the position in the screen, not in the space.
>>>
>>>     I can render those axes with vtkAxesActor but I don't know to to
>>>     fix its position.
>>>
>>>     Thanks by advance,
>>>
>>>     N. Sarrasin
>>>
>>>
>>> Try this:
>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes
>>>
>>> David
>>
>> _______________________________________________
>> Powered by www.kitware.com <http://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
>

-- 
------------------------------------------------------------------------
Logo Phenix Systems 	Nicolas Sarrasin - Ingénieur Developpement 3D CFAO
Phenix systems
Parc Européen d'Entreprises
rue Richard Wagner - 63200 Riom FRANCE
tel : +33 (0)4 73 33 45 85 | fax : +33 (0)4 73 33 45 86
Pensez environnement !
N'imprimez ce mail que si c'est vraiment nécessaire


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100917/047a1a92/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_contact.gif
Type: image/gif
Size: 2985 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100917/047a1a92/attachment.gif>


More information about the vtkusers mailing list