vtkInteractorManualPaint::vtkInteractorManualPaint(ManualPaintControler* mpc) {
_manualPaintControler = mpc;
- _state = false;
- _stateKey = false;
+ _state = false;
+ _stateKey = false;
_stateMouse = false;
}
//---------------------------------------------------------------------------
bool vtkInteractorManualPaint::OnChar() {
- vtkRenderWindowInteractor *interactor =
- _vtkInteractorStyleBaseView->GetInteractor();
-
+ vtkRenderWindowInteractor *interactor = _vtkInteractorStyleBaseView->GetInteractor();
if (interactor->GetKeyCode() == 97) {
_stateKey = !_stateKey;
}
}
//---------------------------------------------------------------------------
-bool vtkInteractorManualPaint::OnMouseMove() {
- if ((_state == true) || (_stateKey == true)) {
+bool vtkInteractorManualPaint::OnMouseMove()
+{
+ if ((_state == true) || (_stateKey == true))
+ {
wxVtk2DBaseView *wxvtk2Dbaseview =
(wxVtk2DBaseView*) _vtkInteractorStyleBaseView->GetWxVtk2DBaseView();
wxVTKRenderWindowInteractor *wxVTKiren =