Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/06/26 07:37:04 $
- Version: $Revision: 1.21 $
+ Date: $Date: 2008/06/26 18:45:58 $
+ Version: $Revision: 1.22 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// This Update is ** MANDATORY **
// to synchronize wxvtkRenderWindowInteractor objects
// (force wx objects creation **NOW**)
- wxFrame::Refresh();
- wxFrame::Update();
- wxFrame::SetFocus();
+
+
+#if defined(_WIN32)
+ wxFrame::Refresh();
+#endif
+
+ wxFrame::Update();
+ wxFrame::SetFocus();
if (bbGetBlackBox()) bbGetBlackBox()->bbUserOnShow();
}
//=========================================================================
print "=== GaussianSmooth box example ==="
-description "GaussianSmooth box example. Screenshot : <img src=ExampleGaussianSmooth.jpg></img>"
+description "GaussianSmooth box example. Screenshot : <img src=ExampleGaussianSmooth.JPG></img>"
author "eduardo.davila at creatis.insa-lyon.fr"
category "example"
print "=== GaussianSmooth_02 box example ==="
-description "GaussianSmooth Save box. Screenshot : <img src=ExampleGaussianSmooth_02.jpg></img>"
+description "GaussianSmooth Save box. Screenshot : <img src=ExampleGaussianSmooth_02.JPG></img>"
author "eduardo.davila at creatis.insa-lyon.fr"
category "example"
Program: bbtk
Module: $RCSfile: bbwxvtkViewer2D.cxx,v $
Language: C++
- Date: $Date: 2008/06/26 07:37:18 $
- Version: $Revision: 1.12 $
+ Date: $Date: 2008/06/26 18:45:58 $
+ Version: $Revision: 1.13 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
panel -> SetSizer(sizer);
panel -> SetAutoLayout(true);
panel -> Layout();
-
+
+
+ wxvtkrenderwindowinteractor->Refresh();
+ wxvtkrenderwindowinteractor->Render();
+ imageViewer->GetRenderer()->ResetCameraClippingRange();
+
+
}
//-------------------------------------------------------------------------
if (z<ext[4]) { z=ext[4]; }
if (z>ext[5]) { z=ext[5]; }
+ wxvtkrenderwindowinteractor->Update();
+ wxvtkrenderwindowinteractor->Render();
+ imageViewer->GetRenderer()->ResetCameraClippingRange();
+
#if (VTK_MAJOR_VERSION >= 5)
imageViewer->SetSlice( z );
#endif
//imageViewer->UpdateDisplayExtent();
- // wxvtkrenderwindowinteractor->Render();
- imageViewer->GetRenderer()->ResetCameraClippingRange();
- }
-
+ }
}
// when window is shown
void Viewer2D::bbUserOnShow()
{
- ((Viewer2DWidget*)bbGetOutputWidget())->Refresh();
+
+#if defined(_WIN32)
+// ((Viewer2DWidget*)bbGetOutputWidget())->Refresh();
((Viewer2DWidget*)bbGetOutputWidget())->Update();
((Viewer2DWidget*)bbGetOutputWidget())->UpdateView();
+#endif
}
Program: bbtk
Module: $RCSfile: bbwxvtkViewer3D.cxx,v $
Language: C++
- Date: $Date: 2008/06/10 19:19:55 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/06/26 18:45:58 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//-------------------------------------------------------------------------
void Viewer3DWidget::Update()
{
+ wxvtkrenderwindowinteractor->Update();
wxvtkrenderwindowinteractor->Render();
+ renderer->ResetCameraClippingRange();
}
//-------------------------------------------------------------------------
}
//-------------------------------------------------------------------------
+void Viewer3DWidget::Refresh(bool eraseBackground , const wxRect* rect )
+{
+// wxPanel::Refresh(false,rect);
+}
+
+
+
//--------------------------------------------------------------------------
//-------------------------------------------------------------------------
//--------------------------------------------------------------------------
}
+ // This callback is necessary to get actual processing of the view
+ // when window is shown
+ void Viewer3D::bbUserOnShow()
+ {
+ ((Viewer3DWidget*)bbGetOutputWidget())->Update();
+ }
+
}//namespace bbwxvtk
Program: bbtk
Module: $RCSfile: bbwxvtkViewer3D.h,v $
Language: C++
- Date: $Date: 2008/06/10 19:19:55 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/06/26 18:45:58 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void Update();
vtkRenderer *GetRenderer();
wxVTKRenderWindowInteractor * GetInteractor();
+ virtual void Refresh(bool eraseBackground = true, const wxRect* rect = NULL);
+
private:
Viewer3D *mBox;
vtkRenderer *renderer;
void Process();
BBTK_CREATE_WIDGET(CreateWidget);
void CreateWidget();
+ void bbUserOnShow();
protected:
virtual void bbUserConstructor();
Program: Visualization Toolkit
Module: $RCSfile: wxVTKRenderWindowInteractor.cxx,v $
Language: C++
- Date: $Date: 2008/05/09 10:39:47 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/06/26 18:45:58 $
+ Version: $Revision: 1.3 $
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
}
+void wxVTKRenderWindowInteractor::Refresh(bool eraseBackground , const wxRect* rect )
+{
+// wxWindow::Refresh(false,rect);
+}
+
+
#if defined(_WIN32)
const char * wxVTKRenderWindowInteractor::GetClassName() const
{
}
#endif //_WIN32
+
+
}
// LG : EO namespace bbwxvtk
//=======================================================================
Program: Visualization Toolkit
Module: $RCSfile: wxVTKRenderWindowInteractor.h,v $
Language: C++
- Date: $Date: 2008/03/03 13:14:28 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/06/26 18:45:58 $
+ Version: $Revision: 1.2 $
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
vtkSetMacro(UseCaptureMouse,int);
vtkBooleanMacro(UseCaptureMouse,int);
+ virtual void Refresh(bool eraseBackground = true, const wxRect* rect = NULL);
+
protected:
wxTimer timer;
int ActiveButton;