A widget that holds the output and media controls of a video source. More...
#include <scenewidget.h>
Public Slots | |
| void | setCameraXRot (int value) |
| Sets the camera rotation around X axis. More... | |
| void | setCameraYRot (int value) |
| Sets the camera rotation around Y axis. More... | |
| void | setCameraZRot (int value) |
| Sets the camera rotation around Z axis. More... | |
| void | setCameraHeight (int value) |
| Sets the camera height. More... | |
| void | setCameraFov (int value) |
| Sets the field of view of the camera. More... | |
| void | setDrawGridEnabled (bool enabled) |
| Sets whether the grid is drawn or not. More... | |
| void | setDrawCalibrationPointsEnabled (bool enabled) |
| Sets whether the calibration points are drawn or not. More... | |
| void | disableForConfiguration () |
| Changes the frame shadow to raised and enables the "Set active" button. | |
| void | activateForConfiguration () |
| Changes the frame shadow to Sunken and disables the "Set active" button. | |
Signals | |
| void | closeRequested (SourceID sender) |
| The signal is emitted when the user want's to close this source widget. More... | |
| void | requestedActivation (SceneWidget *sender) |
| The signal is emitted when user wants to activate this source widget for calibration. More... | |
| void | playRequested (SourceID sender) |
| The signal is emitted when the user wants to play the video. More... | |
| void | pauseRequested (SourceID sender) |
| The signal is emitted when the user wants to pause the video. More... | |
| void | seekBarValueChanged (SourceID sender, FrameTime value) |
| The signal is emitted when video seek bar value has changed. More... | |
Public Member Functions | |
| SceneWidget (SourceID sid, SourceType type, const QString &description, QWidget *parent=0) | |
| Constructs a new SceneWidget with the specified information. More... | |
| int | getCameraXRot () |
| Returns the camera rotation around X axis. More... | |
| int | getCameraYRot () |
| Returns the camera rotation around Y axis. More... | |
| int | getCameraZRot () |
| Returns the camera rotation around Z axis. More... | |
| int | getCameraHeight () |
| Returns the camera height. More... | |
| int | getCameraFov () |
| Returns the field of view of the camera. More... | |
| SourceID | getSourceID () const |
| Returns the ID number of the source that the scene represents. More... | |
| void | updateFrame (const FrameCapture &frame) |
| Updates the scene image. More... | |
| void | updateSettings (const SourceSettings &settings) |
| Updates the scene settings. More... | |
| cavapa::camera | getCameraSettings () |
| Gets the camera settings. More... | |
| std::vector < cavapa::calibration_point > | getCalibrationPoints () |
| Gets the calibration points. More... | |
| void | setCalibrationPoints (std::vector< cavapa::calibration_point > points) |
| Sets the calibration points. More... | |
| void | setAddCalibrationPointsEnabled (bool enabled) |
| Tells the SceneWidget whether adding calibration points is possible. More... | |
| void | setSeekBarValue (FrameTime value) |
| Sets the seek bar to a new value. More... | |
| void | showPlayButton () |
| Shows the play video button (pause button is hidden). | |
| void | showPauseButton () |
| Shows the pause video button (play button is hidden). | |
| void | setVideoLength (FrameTime frameTime) |
| Sets video length for the seek bar. More... | |
A widget that holds the output and media controls of a video source.
Purpose of this class is to provide easy way to add or remove the scenes and to intermediate calibration data between the Main Window and the SourceScene.
| cavapa_gui::SceneWidget::SceneWidget | ( | SourceID | sid, |
| SourceType | type, | ||
| const QString & | description, | ||
| QWidget * | parent = 0 |
||
| ) |
Constructs a new SceneWidget with the specified information.
| sid | The id of the source. |
| type | The type of the source. |
| description | The description of the source. |
| parent | The parent widget. |
|
signal |
The signal is emitted when the user want's to close this source widget.
| sender | Source ID-number. |
| std::vector< cavapa::calibration_point > cavapa_gui::SceneWidget::getCalibrationPoints | ( | ) |
Gets the calibration points.
|
inline |
Returns the field of view of the camera.
The value is specified in 0.1 degrees.
|
inline |
Returns the camera height.
The value is specified in 0.01 meters.
| cavapa::camera cavapa_gui::SceneWidget::getCameraSettings | ( | ) |
Gets the camera settings.
|
inline |
Returns the camera rotation around X axis.
The value is specified in 0.1 degrees.
|
inline |
Returns the camera rotation around Y axis.
The value is specified in 0.1 degrees.
|
inline |
Returns the camera rotation around Z axis.
The value is specified in 0.1 degrees.
|
inline |
Returns the ID number of the source that the scene represents.
|
signal |
The signal is emitted when the user wants to pause the video.
| sender | Source ID-number. |
|
signal |
The signal is emitted when the user wants to play the video.
| sender | Source ID-number. |
|
signal |
The signal is emitted when user wants to activate this source widget for calibration.
| sender | Source ID-number. |
The signal is emitted when video seek bar value has changed.
| sender | Source ID-number. |
| value | The new seek bar value. |
|
inline |
Tells the SceneWidget whether adding calibration points is possible.
| enabled | Whether adding calibration points should be possible or not. |
| void cavapa_gui::SceneWidget::setCalibrationPoints | ( | std::vector< cavapa::calibration_point > | points | ) |
Sets the calibration points.
| points | The new calibration points. |
|
slot |
Sets the field of view of the camera.
The value is specified in 0.1 degrees.
| value | The new fcamera field of view specified in 0.1 degrees. |
|
slot |
Sets the camera height.
The value is specified in 0.01 degrees.
| value | The new camera height specified in 0.01 units. |
|
slot |
Sets the camera rotation around X axis.
The value is specified in 0.1 degrees.
| value | The new X rotation specified in 0.1 degrees. |
|
slot |
Sets the camera rotation around Y axis.
The value is specified in 0.1 degrees.
| value | The new Y rotation specified in 0.1 degrees. |
|
slot |
Sets the camera rotation around Z axis.
The value is specified in 0.1 degrees.
| value | The new Z rotation specified in 0.1 degrees. |
|
inlineslot |
Sets whether the calibration points are drawn or not.
| enabled | Whether the calibration points are drawn or not. |
|
inlineslot |
Sets whether the grid is drawn or not.
| enabled | Whether the grid is drawn or not. |
| void cavapa_gui::SceneWidget::setSeekBarValue | ( | FrameTime | value | ) |
Sets the seek bar to a new value.
| value | The new value. |
| void cavapa_gui::SceneWidget::setVideoLength | ( | FrameTime | frameTime | ) |
Sets video length for the seek bar.
| frameTime | The video length specified in FrameTime. |
| void cavapa_gui::SceneWidget::updateFrame | ( | const FrameCapture & | frame | ) |
Updates the scene image.
| frame | The new frame information. |
| void cavapa_gui::SceneWidget::updateSettings | ( | const SourceSettings & | settings | ) |
Updates the scene settings.
| settings | The settings for the source. |
1.8.7