Re: [wxVTK] Problems with vtkImageViewer2
Brought to you by:
malat
From: Steven H. <ste...@gm...> - 2008-11-26 18:51:19
|
Hi Mathieu, thanks for the reply. Sorry I was not clear about this. What I'm trying to do is fit my 2D image completely within my WxNoteBook object so that I don't see the background at all. Right now, the background is showing as a black border around my image. Thanks, Steve On Wed, Nov 26, 2008 at 11:14 AM, Mathieu Malaterre < mat...@gm...> wrote: > Steven > I have absolutely no clue what you mean, sorry. When using > vtkImageViewer2 (vs vtkImageViewer) your 2D slice is displayed in the > 3D world (as a texture), so the background is black by default. I > guess there should be an option to set it to something else ... > > > Also as a quick aside, I am getting the following error message > > (vtkInteractorStyleJoystickCamera (09E7D2C8): Timer start failed) when I > > click on my window. I understand this is just a one time warning that I > > won't get again when I close the error message. I'm wondering is there > > something I can do in code so that I don't get this message (even if the > > only way is the disable the camera functionality somehow). > > I think you can press 'c' to use camera mode instead of joystick mode. > This has been broken in VTK since > VTK 4.5 (AFAIK). Simply set > another interactor style that does not rely on the timer API. > > 2cts > -- > Mathieu > |