myPauseAction->setEnabled( true );
myStopAction->setEnabled( true );
+ // to prevent resizing the window while recording
+ myPreRecordingMinSize = minimumSize();
+ myPreRecordingMaxSize = maximumSize();
+ setFixedSize( size() );
+
myRecorder->Record();
}
}
myStopAction->setEnabled( false );
myRecorder->Stop();
+
+ setMinimumSize( myPreRecordingMinSize );
+ setMaximumSize( myPreRecordingMaxSize );
}
SVTK_RenderWindowInteractor* myInteractor;
vtkSmartPointer<SVTK_KeyFreeInteractorStyle> myKeyFreeInteractorStyle;
+ QSize myPreRecordingMinSize;
+ QSize myPreRecordingMaxSize;
+
SVTK_Recorder* myRecorder;
QtxAction* myStartAction;
QtxAction* myPlayAction;