#include <ManualPaintControler.h>
Public Member Functions | |
ManualPaintControler () | |
virtual | ~ManualPaintControler () |
void | SetManualPaintModel (ManualPaintModel *manualPaintModel) |
void | SetManualPaintPanel (ManualPaintPanel *manualPaintPanel) |
void | SetWxVtkBaseView (wxVtkBaseView *baseview) |
void | Config () |
void | PaintImage (int px, int py, int pz) |
Private Member Functions | |
void | RefreshView () |
Private Attributes | |
ManualPaintModel * | _manualPaintModel |
ManualPaintPanel * | _manualPaintPanel |
wxVtkBaseView * | _wxvtkbaseview |
Definition at line 9 of file ManualPaintControler.h.
ManualPaintControler::ManualPaintControler | ( | ) |
Definition at line 6 of file ManualPaintControler.cpp.
ManualPaintControler::~ManualPaintControler | ( | ) | [virtual] |
Definition at line 11 of file ManualPaintControler.cpp.
void ManualPaintControler::Config | ( | ) |
Definition at line 34 of file ManualPaintControler.cpp.
References _wxvtkbaseview, vtkInteractorStyleBaseView::AddInteractorStyleMaracas(), and wxVtkBaseView::GetInteractorStyleBaseView().
00035 { 00036 vtkInteractorManualPaint *imp = new vtkInteractorManualPaint(this); 00037 vtkInteractorStyleBaseView *isbv = (vtkInteractorStyleBaseView*)(_wxvtkbaseview->GetInteractorStyleBaseView()); 00038 isbv->AddInteractorStyleMaracas(imp); 00039 }
void ManualPaintControler::PaintImage | ( | int | px, | |
int | py, | |||
int | pz | |||
) |
Definition at line 44 of file ManualPaintControler.cpp.
References _manualPaintModel, ManualPaintModel::PaintImage(), and RefreshView().
Referenced by vtkInteractorManualPaint::OnMouseMove().
00045 { 00046 _manualPaintModel->PaintImage(px,py,pz); 00047 RefreshView(); 00048 }
void ManualPaintControler::RefreshView | ( | ) | [private] |
Definition at line 51 of file ManualPaintControler.cpp.
Referenced by PaintImage().
void ManualPaintControler::SetManualPaintModel | ( | ManualPaintModel * | manualPaintModel | ) |
Definition at line 16 of file ManualPaintControler.cpp.
References _manualPaintModel.
00017 { 00018 _manualPaintModel = manualPaintModel; 00019 }
void ManualPaintControler::SetManualPaintPanel | ( | ManualPaintPanel * | manualPaintPanel | ) |
Definition at line 22 of file ManualPaintControler.cpp.
References _manualPaintPanel.
00023 { 00024 _manualPaintPanel = manualPaintPanel; 00025 }
void ManualPaintControler::SetWxVtkBaseView | ( | wxVtkBaseView * | baseview | ) |
Definition at line 28 of file ManualPaintControler.cpp.
References _wxvtkbaseview.
00029 { 00030 _wxvtkbaseview = baseview; 00031 }
Definition at line 21 of file ManualPaintControler.h.
Referenced by PaintImage(), and SetManualPaintModel().
Definition at line 22 of file ManualPaintControler.h.
Referenced by SetManualPaintPanel().
Definition at line 23 of file ManualPaintControler.h.
Referenced by Config(), and SetWxVtkBaseView().