25 #ifndef WQTGLSCREENCAPTURE_H 
   26 #define WQTGLSCREENCAPTURE_H 
   30 #include <boost/signals2.hpp> 
   34 #include <QPushButton> 
   41 #include <osg/RenderInfo> 
   43 #include "core/graphicsEngine/WGEViewer.h" 
   45 #include "WIconManager.h" 
  156     void handleImage( 
size_t framesLeft, 
size_t totalFrames, osg::ref_ptr< osg::Image > image ) 
const;
 
std::shared_ptr< WGEViewer > SPtr
Convenience typedef.
 
This class is a screen recorder adapter in QT.
 
QLineEdit * m_customHeight
Widget for entering a custom resolution height.
 
void resetFrames()
Slot triggered by m_configFrameResetButton.
 
void screenShot()
Initiates taking a screenshot.
 
virtual ~WQtGLScreenCapture()
Destructor.
 
boost::signals2::connection m_recordConnection
Recording - callback connection.
 
QPushButton * m_screenshotButton
The trigger which triggers the screenshot.
 
QWidget * m_screenshotWidget
Widget containing all the widgets to control movie recording.
 
QLabel * m_configFrameLabel
Shows recorded frames.
 
QWidget * m_configWidget
The configuration widget.
 
QPushButton * m_movieRecButton
record button
 
boost::signals2::connection m_imageConnection
New image incoming - callback connection to handleImage.
 
void handleImage(size_t framesLeft, size_t totalFrames, osg::ref_ptr< osg::Image > image) const
The function handles new images.
 
QPushButton * m_configFrameResetButton
Triggers frame counter reset.
 
WGEViewer::SPtr m_viewer
The actual screen capture instance.
 
QToolBox * m_toolbox
The toolbox containing all the stuff.
 
void toolBoxChanged(int index)
Someone changed the open tab in the toolbox.
 
virtual void saveSettings()
Save settings.
 
virtual void restoreSettings()
Restore settings.
 
QAction * m_screenshotAction
This action triggers a screenshot.
 
void resolutionChange(bool force)
Changes resolution of gl widget.
 
void stopRec()
Slot triggered by m_moveStopButton.
 
void startRec()
Slot triggered by m_moveRecButton.
 
QPushButton * m_movieStopButton
stop button
 
QWidget * m_movieWidget
Widget containing all the widgets to control movie recording.
 
QAction * getScreenshotTrigger() const
Returns the trigger used for screenshotting.
 
QLabel * m_movieTimeLabel
Shows recorded time in movie-time.
 
QComboBox * m_resolutionCombo
Stores the resolution the user wants to have.
 
void recCallback()
Called by the screencapture callback to notify this widget about recording.
 
WQtGLScreenCapture(WQtGLDockWidget *parent)
Creates screen capture gui for the specified capture callback of a certain view.
 
QLineEdit * m_customWidth
Widget for entering a custom resolution width.
 
QLineEdit * m_configFileEdit
The filename for the screenshot.
 
WQtGLDockWidget * m_glDockWidget
My parent.
 
virtual bool event(QEvent *event)
Custom event dispatcher.