[vtkusers] vtkRenderWindowInteractor initialization creates new Window on Suse Linux

Peter Eipert eipert at web.de
Thu Mar 10 05:29:42 EST 2011


Hi Sebastien

thanks a lot. The vtkCanvas solved the problem.

Peter

Am 10.03.2011 04:37, schrieb Sebastien Jourdain:
> Hi peter,
>
> to get the interactor, you will need to use vtkCanvas instead of vtkPanel.
> And then, you will have to set the interactor style as well to get the
> same behavior of the vtkPanel,
> In vtkCanvas you should have a method getIren() (not sure of the name
> but it must be close)
> that will return the window interactor that is not null.
>
> Seb
>
> On Wed, Mar 9, 2011 at 6:01 AM, Peter Eipert<eipert at web.de>  wrote:
>> Thanks for your anwser but my problem is, that i want to add a
>> vtkOrientationMarkerWidget with a vtkAxesActor. So if I just add the
>> vtkAxesActor to my renderer the widget is not used to fix the coord cross on
>> the screen. To use the vtkAxesActor with the vtkOrientationMarkerWidget I
>> have to do the following steps:
>>
>> vtkAxesActor axesActor=new vtkAxesActor();
>> vtkOrientationMarkerWidget axesWidget=new vtkOrientationMarkerWidget();
>> axesWidget.SetOrientationMarker(axesActor);
>> axesWidget.SetInteractor(axesInteractor);
>>
>> In the last line I need a vtkRenderWindowInteractor and
>> GetRenderWindow().GetInteractor() does not work because it is null.
>>
>> I'm not sure if there is a way to add the widget to the renderWindow without
>> creating a vtkRenderWindowInteractor.
>>
>> Peter
>>
>>
>> Am 09.03.2011 00:55, schrieb Sebastien Jourdain:
>>>
>>> If you have a vtkPanel, you just need to add actor to its renderer.
>>>
>>> panel.GetRenderer().AddActor( yourActor );
>>>
>>> vtkPanel is abstracting all the Renderer / RenderWindow /
>>> InteractorStyle for you...
>>>
>>> Seb
>>>
>>> On Tue, Mar 8, 2011 at 8:49 AM, Peter Eipert<eipert at web.de>    wrote:
>>>>
>>>> Hello
>>>>
>>>> I use VTK 5.6.1 with Java wrappings and I want to show coord axes on a
>>>> fixed
>>>> screen position. Therefor I use the vtkOrientationMarkerWidget.
>>>>
>>>> Under Windows this is no Problem but under Linux (Suse 11.2 both 32 and
>>>> 64bit) the initialization of a vtkRenderWindowInteractor leads to a new
>>>> VTK-Window with title "Visualization Toolkit - OpenGL".
>>>> Is this intended or a bug? And how can I avoid this.
>>>>
>>>>
>>>> I tried
>>>> GetRenderWindow().MakeRenderWindowInteractor()
>>>> and also
>>>> new vtkRenderWindowInteractor()
>>>>
>>>> Both leads to a new window with the 3D - Visualization and my vtkPanel
>>>> stays
>>>> empty.
>>>>
>>>> Thanks in advance
>>>> Peter
>>>> _______________________________________________
>>>> 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