Superclass::SetInteractor(theInteractor);
}
+//----------------------------------------------------------------------------
+int
+SVTK_InteractorStyle
+::GetState()
+{
+ return State | ForcedState;
+}
+
//----------------------------------------------------------------------------
void
SVTK_InteractorStyle
void setViewWindow(SVTK_ViewWindow* theViewWindow);
void setGUIWindow(QWidget* theWindow);
+ virtual int GetState();
+
void setTriedron(VTKViewer_Trihedron* theTrihedron);
void setPreselectionProp(const double& theRed = 0,
const double& theGreen = 1,
const int left, const int top,
const int right, const int bottom);
- int State;
float MotionFactor;
float RadianToDegree; // constant: for conv from deg to rad
double myScale;
(event->state() & ShiftButton),
event->x(), event->y() ) ;
- if(myInteractorStyle->GetState() == VTK_INTERACTOR_STYLE_CAMERA_NONE){
+ if(myInteractorStyle->GetState() == VTK_INTERACTOR_STYLE_CAMERA_NONE && !( event->state() & KeyButtonMask )){
QContextMenuEvent aEvent( QContextMenuEvent::Mouse,
event->pos(), event->globalPos(),
event->state() );