x = mousePos.x(); y = h - mousePos.y() - 1;
this->FindPokedRenderer(x,y);
- Interactor->StartPickCallback();
- GetSelector()->StartPickCallback();
SVTK_SelectionEvent aSelectionEvent = GetSelectionEvent();
aSelectionEvent.myX = x;
aLastActor->PreHighlight( this, GetSelector(), this->CurrentRenderer, aSelectionEvent, false );
}
- Interactor->EndPickCallback();
- GetSelector()->EndPickCallback();
-
if(anIsChanged)
this->Render();
}
::SVTK_View( QWidget* parent, const char* name ) :
SVTK_RenderWindowInteractor( parent, name )
{
- mySelector = SVTK_Selector::New();
- mySelector->Delete();
-
myEventCallbackCommand = vtkCallbackCommand::New();
myEventCallbackCommand->Delete();
myPriority = 0.0;
myEventCallbackCommand->SetCallback(SVTK_View::ProcessEvents);
+
+ SetSelector(SVTK_Selector::New());
+ GetSelector()->Delete();
}
//----------------------------------------------------------------------------
myInteractorStyle->setViewWindow( this );
myInteractorStyle->SetSelector( myView->GetSelector() );
+ myInteractorStyle->SetSelector( myView->GetSelector() );
myView->SetInteractorStyle( myInteractorStyle );
myView->Initialize();
SVTK_ViewWindow
::onSelectionChanged()
{
- emit selectionChanged();
+ myView->onSelectionChanged();
}
//----------------------------------------------------------------