#include <bbwxvtkViewer2D.h>
Private Member Functions | |
BBTK_BLACK_BOX_INTERFACE (Viewer2D, bbtk::WxBlackBox) | |
BBTK_DECLARE_INPUT (Slice, int) | |
BBTK_DECLARE_INPUT (Orientation, int) | |
BBTK_DECLARE_INPUT (In, vtkImageData *) | |
BBTK_DECLARE_OUTPUT (Out, int) | |
BBTK_DECLARE_OUTPUT (Renderer, vtkRenderer *) | |
BBTK_PROCESS (Process) | |
void | Process () |
BBTK_CREATE_WIDGET (CreateWidget) | |
void | CreateWidget () |
Create wxWidget . | |
void | bbUserOnShow () |
void | bbUserConstructor () |
Definition at line 77 of file bbwxvtkViewer2D.h.
bbwxvtk::Viewer2D::BBTK_BLACK_BOX_INTERFACE | ( | Viewer2D | , | |
bbtk::WxBlackBox | ||||
) | [private] |
bbwxvtk::Viewer2D::BBTK_DECLARE_INPUT | ( | Slice | , | |
int | ||||
) | [private] |
bbwxvtk::Viewer2D::BBTK_DECLARE_INPUT | ( | Orientation | , | |
int | ||||
) | [private] |
bbwxvtk::Viewer2D::BBTK_DECLARE_INPUT | ( | In | , | |
vtkImageData * | ||||
) | [private] |
bbwxvtk::Viewer2D::BBTK_DECLARE_OUTPUT | ( | Out | , | |
int | ||||
) | [private] |
bbwxvtk::Viewer2D::BBTK_DECLARE_OUTPUT | ( | Renderer | , | |
vtkRenderer * | ||||
) | [private] |
bbwxvtk::Viewer2D::BBTK_PROCESS | ( | Process | ) | [private] |
void Viewer2D::Process | ( | ) | [private] |
Definition at line 255 of file bbwxvtkViewer2D.cxx.
00256 { 00257 // LG : Bug on Linux (wxGTK) when initial slice != 0 on first time 00258 // (see wxvtk/bbs/appli/ExampleSimpleSlicer) 00259 // I think there is a problem with rendering before window 00260 // has been reparented ... we have to check this 00261 00262 ((Viewer2DWidget*)bbGetOutputWidget())->UpdateView(); 00263 bbSetOutputOut( bbGetInputSlice() ); 00264 bbSetOutputRenderer( ((Viewer2DWidget*)bbGetOutputWidget())->GetRenderer() ); 00265 00266 }
bbwxvtk::Viewer2D::BBTK_CREATE_WIDGET | ( | CreateWidget | ) | [private] |
void Viewer2D::CreateWidget | ( | ) | [private] |
Create wxWidget .
Definition at line 280 of file bbwxvtkViewer2D.cxx.
00281 { 00282 bbtkDebugMessageInc("Core",9,"Viewer2D::CreateWidget()"<<std::endl); 00283 00284 Viewer2DWidget* w = new Viewer2DWidget(this,bbGetWxParent()); 00285 bbSetOutputWidget(w); 00286 00287 bbtkDebugDecTab("Core",9); 00288 }
void Viewer2D::bbUserOnShow | ( | ) | [private] |
Definition at line 293 of file bbwxvtkViewer2D.cxx.
00294 { 00295 00296 #if defined(_WIN32) 00297 // ((Viewer2DWidget*)bbGetOutputWidget())->Refresh(); 00298 ((Viewer2DWidget*)bbGetOutputWidget())->Update(); 00299 ((Viewer2DWidget*)bbGetOutputWidget())->UpdateView(); 00300 #endif 00301 /* 00302 // BUGS ON LINUX !! 00303 ((Viewer2DWidget*)bbGetOutputWidget())->Update(); 00304 ((Viewer2DWidget*)bbGetOutputWidget())->UpdateView(); 00305 */ 00306 }
void Viewer2D::bbUserConstructor | ( | ) | [private] |