#include <bbwxvtkViewer3D.h>
Protected Member Functions | |
virtual void | bbUserConstructor () |
Private Member Functions | |
BBTK_BLACK_BOX_INTERFACE (Viewer3D, bbtk::WxBlackBox) | |
BBTK_DECLARE_INPUT (In1, vtkProp3D *) | |
BBTK_DECLARE_INPUT (In2, vtkProp3D *) | |
BBTK_DECLARE_INPUT (In3, vtkProp3D *) | |
BBTK_DECLARE_INPUT (In4, vtkProp3D *) | |
BBTK_DECLARE_INPUT (In5, vtkProp3D *) | |
BBTK_DECLARE_INPUT (Obs1, vtkInteractorObserver *) | |
BBTK_DECLARE_INPUT (Obs2, vtkInteractorObserver *) | |
BBTK_DECLARE_INPUT (Obs3, vtkInteractorObserver *) | |
BBTK_DECLARE_INPUT (Obs4, vtkInteractorObserver *) | |
BBTK_DECLARE_INPUT (Obs5, vtkInteractorObserver *) | |
BBTK_DECLARE_INPUT (Stereo, bool) | |
BBTK_DECLARE_OUTPUT (Renderer, vtkRenderer *) | |
BBTK_DECLARE_OUTPUT (Interactor, wxVTKRenderWindowInteractor *) | |
BBTK_PROCESS (Process) | |
void | Process () |
BBTK_CREATE_WIDGET (CreateWidget) | |
void | CreateWidget () |
Create Widget . | |
void | bbUserOnShow () |
Definition at line 77 of file bbwxvtkViewer3D.h.
bbwxvtk::Viewer3D::BBTK_BLACK_BOX_INTERFACE | ( | Viewer3D | , | |
bbtk::WxBlackBox | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | In1 | , | |
vtkProp3D * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | In2 | , | |
vtkProp3D * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | In3 | , | |
vtkProp3D * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | In4 | , | |
vtkProp3D * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | In5 | , | |
vtkProp3D * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | Obs1 | , | |
vtkInteractorObserver * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | Obs2 | , | |
vtkInteractorObserver * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | Obs3 | , | |
vtkInteractorObserver * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | Obs4 | , | |
vtkInteractorObserver * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | Obs5 | , | |
vtkInteractorObserver * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_INPUT | ( | Stereo | , | |
bool | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_OUTPUT | ( | Renderer | , | |
vtkRenderer * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_DECLARE_OUTPUT | ( | Interactor | , | |
wxVTKRenderWindowInteractor * | ||||
) | [private] |
bbwxvtk::Viewer3D::BBTK_PROCESS | ( | Process | ) | [private] |
void bbwxvtk::Viewer3D::Process | ( | ) | [private] |
bbwxvtk::Viewer3D::BBTK_CREATE_WIDGET | ( | CreateWidget | ) | [private] |
void bbwxvtk::Viewer3D::CreateWidget | ( | ) | [private] |
Create Widget .
Definition at line 164 of file bbwxvtkViewer3D.cxx.
References bbwxvtk::Viewer3DWidget::GetInteractor(), bbwxvtk::Viewer3DWidget::GetRenderer(), and bbwxvtk::Viewer3DWidget::Update().
00165 { 00166 bbtkDebugMessageInc("Core",9,"Viewer3D::CreateWidget()"<<std::endl); 00167 00168 Viewer3DWidget* w = new Viewer3DWidget(this,bbGetWxParent(),bbGetInputStereo()); 00169 w->Update(); 00170 00171 00172 vtkRenderWindowInteractor *interactor = w->GetInteractor(); 00173 if (interactor!=NULL) 00174 { 00175 if (bbGetInputObs1()!=NULL) 00176 { 00177 bbGetInputObs1()->SetInteractor(interactor); 00178 bbGetInputObs1()->EnabledOn(); 00179 } 00180 if (bbGetInputObs2()!=NULL) 00181 { 00182 bbGetInputObs2()->SetInteractor(interactor); 00183 bbGetInputObs2()->EnabledOn(); 00184 } 00185 if (bbGetInputObs3()!=NULL) 00186 { 00187 bbGetInputObs3()->SetInteractor(interactor); 00188 bbGetInputObs3()->EnabledOn(); 00189 } 00190 if (bbGetInputObs4()!=NULL) 00191 { 00192 bbGetInputObs4()->SetInteractor(interactor); 00193 bbGetInputObs4()->EnabledOn(); 00194 } 00195 if (bbGetInputObs5()!=NULL) 00196 { 00197 bbGetInputObs5()->SetInteractor(interactor); 00198 bbGetInputObs5()->EnabledOn(); 00199 } 00200 bbSetOutputInteractor( w->GetInteractor() ); 00201 } 00202 00203 00204 vtkRenderer *renderer = w->GetRenderer(); 00205 if (renderer!=NULL) 00206 { 00207 if (bbGetInputIn1()!=NULL) {renderer->AddActor( bbGetInputIn1() ); } 00208 if (bbGetInputIn2()!=NULL) {renderer->AddActor( bbGetInputIn2() ); } 00209 if (bbGetInputIn3()!=NULL) {renderer->AddActor( bbGetInputIn3() ); } 00210 if (bbGetInputIn4()!=NULL) {renderer->AddActor( bbGetInputIn4() ); } 00211 if (bbGetInputIn5()!=NULL) {renderer->AddActor( bbGetInputIn5() ); } 00212 renderer->ResetCamera(); 00213 bbSetOutputRenderer( renderer ); 00214 } 00215 00216 bbSetOutputWidget(w); 00217 00218 bbtkDebugDecTab("Core",9); 00219 00220 }
void bbwxvtk::Viewer3D::bbUserOnShow | ( | ) | [private] |
void bbwxvtk::Viewer3D::bbUserConstructor | ( | ) | [protected, virtual] |
Definition at line 135 of file bbwxvtkViewer3D.cxx.
00136 { 00137 bbSetInputIn1(NULL); 00138 bbSetInputIn2(NULL); 00139 bbSetInputIn3(NULL); 00140 bbSetInputIn4(NULL); 00141 bbSetInputIn5(NULL); 00142 bbSetInputObs1(NULL); 00143 bbSetInputObs2(NULL); 00144 bbSetInputObs3(NULL); 00145 bbSetInputObs4(NULL); 00146 bbSetInputObs5(NULL); 00147 bbSetInputStereo(false); 00148 bbSetOutputRenderer( NULL ); 00149 bbSetOutputInteractor( NULL ); 00150 }