[vtkusers] create maximize scheme for app with vtkViewImage2D and vtkViewImage3D
gregthom
gregthom99 at yahoo.com
Thu Jul 3 16:14:09 EDT 2008
Hello I have created a simple app based on the two classes above from
vtkinria 3d and Qt.
The app looks like the pickture and I have made use of three qt vtk widgets
(qvtkwidget) for my output.
I do this like :
//QVTKWidget *widget_mainview;
//QVTKWidget *widget_sideview1;
//QVTKWidget *widget_sideview2;
//QVTKWidget *widget_sideview3;
this->view1 = vtkViewImage2D::New();
this->view2 = vtkViewImage2D::New();
this->view3 = vtkViewImage2D::New();
this->view4 = vtkViewImage3D::New();
//QT/VTK interact
this->renderer1 = vtkRenderer::New();
this->renderer2 = vtkRenderer::New();
this-> renderer3 = vtkRenderer::New();
this->renderer4 = vtkRenderer::New();
view1->SetRenderWindow (widget_sideview1 -> GetRenderWindow());
view2->SetRenderWindow (widget_sideview2 -> GetRenderWindow());
view3->SetRenderWindow (widget_sideview3 -> GetRenderWindow());
view4->SetRenderWindow (widget_mainview -> GetRenderWindow());
view1->SetRenderer ( renderer1 );
view2->SetRenderer ( renderer2 );
view3->SetRenderer ( renderer3 );
view4->SetRenderer ( renderer4 );
==========================================================
Now in my app, as you notice from photos, I have one large window which I
intend to have as the main window for maximizing all views. In this initial
view, the conttents of vtkViewImage3D (view4) are displayed in the large
window. Now I would like to have a scheme for moving the other views to this
view, thus maximizing them upon request. I use Qt in my app and I have
signals ( from radiobuttons) that are emitted when user wants to "maximize"
a view. By maximize I mean show the view in the large view.
Does anynyone know of a smart way I can achieve this ?
http://www.nabble.com/file/p18267425/views.jpg views.jpg
--
View this message in context: http://www.nabble.com/create-maximize-scheme-for-app-with-vtkViewImage2D-and-vtkViewImage3D-tp18267425p18267425.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list