Program: bbtk
Module: $RCSfile: bbwxvtkViewer2D.cxx,v $
Language: C++
- Date: $Date: 2008/11/25 11:31:08 $
- Version: $Revision: 1.22 $
+ Date: $Date: 2008/11/25 11:34:01 $
+ Version: $Revision: 1.23 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
z = ext[5]; // Why not?
}
- std::cout << "V2D Render "<<std::endl;
+ // std::cout << "V2D Render "<<std::endl;
+ imageViewer->SetSliceOrientation (orientation);
+ imageViewer->SetSlice( z );
wxvtkrenderwindowinteractor->Update();
wxvtkrenderwindowinteractor->Render();
imageViewer->GetRenderer()->ResetCameraClippingRange();
imageViewer->SetZSlice( z );
#endif
*/
- imageViewer->SetSliceOrientation (orientation);
- imageViewer->SetSlice( z );
+// imageViewer->SetSliceOrientation (orientation);
+// imageViewer->SetSlice( z );
//imageViewer->UpdateDisplayExtent();
}
*/
void Viewer2D::CreateWidget(wxWindow* parent)
{
- bbtkDebugMessageInc("Core",9,"Viewer2D::CreateWidget()"<<std::endl);
-
- Viewer2DWidget* w = new Viewer2DWidget(this,parent);//bbGetWxParent());
+ Viewer2DWidget* w = new Viewer2DWidget(this,parent);//bbGetWxParent());
bbSetOutputWidget(w);
-
- bbtkDebugDecTab("Core",9);
}
// when window is shown
void Viewer2D::OnShowWidget()
{
- std::cout << "V2D::OnShow"<<std::endl;
- ((Viewer2DWidget*)bbGetOutputWidget())->Update();
- ((Viewer2DWidget*)bbGetOutputWidget())->UpdateView();
-#if defined(_WIN32)
-// ((Viewer2DWidget*)bbGetOutputWidget())->Refresh();
- ((Viewer2DWidget*)bbGetOutputWidget())->Update();
- ((Viewer2DWidget*)bbGetOutputWidget())->UpdateView();
-#endif
- /*
- // BUGS ON LINUX !!
((Viewer2DWidget*)bbGetOutputWidget())->Update();
((Viewer2DWidget*)bbGetOutputWidget())->UpdateView();
- */
- std::cout << "V2D::OnShow OK"<<std::endl;
}