pqCameraKeyFrameWidget is the widget that is shown to edit the value of a single camera key frame.
More...
#include <pqCameraKeyFrameWidget.h>
Inherits QWidget.
pqCameraKeyFrameWidget is the widget that is shown to edit the value of a single camera key frame.
This class is based on pqCameraWidget and hence has sections of code borrowed from there.
Definition at line 20 of file pqCameraKeyFrameWidget.h.
◆ pqCameraKeyFrameWidget()
pqCameraKeyFrameWidget::pqCameraKeyFrameWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~pqCameraKeyFrameWidget()
pqCameraKeyFrameWidget::~pqCameraKeyFrameWidget |
( |
| ) |
|
|
override |
◆ usePathBasedMode()
bool pqCameraKeyFrameWidget::usePathBasedMode |
( |
| ) |
const |
Return 'true' if the CameraKeyFrameWidget is set to 'path' mode, indicating that the widget's configuration applies to the entire animation track rather than being defined on a per-keyframe basis.
◆ initializeUsingJSON()
void pqCameraKeyFrameWidget::initializeUsingJSON |
( |
const Json::Value & |
json | ) |
|
Initialize the widget properties using JSON.
Does not work in 'path' mode.
◆ serializeToJSON()
Json::Value pqCameraKeyFrameWidget::serializeToJSON |
( |
| ) |
const |
Generate a JSON representing the widget configuration.
Does not work in 'path' mode.
◆ useCurrentCamera
void pqCameraKeyFrameWidget::useCurrentCamera |
( |
| ) |
|
|
signal |
Fired when user requests the use of the current camera as the value for the key frame.
◆ updateCurrentCamera
void pqCameraKeyFrameWidget::updateCurrentCamera |
( |
| ) |
|
|
signal |
◆ initializeUsingKeyFrame
void pqCameraKeyFrameWidget::initializeUsingKeyFrame |
( |
vtkSMProxy * |
keyframeProxy | ) |
|
|
slot |
Initialize the widget using the values from the key frame proxy.
◆ initializeUsingCamera
void pqCameraKeyFrameWidget::initializeUsingCamera |
( |
vtkCamera * |
camera | ) |
|
|
slot |
Initialize the widget using the camera.
◆ applyToCamera
void pqCameraKeyFrameWidget::applyToCamera |
( |
vtkCamera * |
camera | ) |
|
|
slot |
Initialize the camera using the widget values.
◆ setUsePathBasedMode
void pqCameraKeyFrameWidget::setUsePathBasedMode |
( |
bool |
| ) |
|
|
slot |
The camera keyframes have 2 modes either interpolate vtkCamera's using the camera interpolator or use path-based.
This mode is not defined on per-keyframe basis, but on the entire animation track. Hence, we provide this slot to choose which mode should the widget operate in.
◆ saveToKeyFrame
void pqCameraKeyFrameWidget::saveToKeyFrame |
( |
vtkSMProxy * |
keyframeProxy | ) |
|
|
slot |
Write the user chosen values for this key frame to the proxy.
◆ setPositionPoints
Set the positions points for path-based keyframe.
◆ setFocalPoints
Set the focal points for path-based keyframe.
◆ setViewUp
void pqCameraKeyFrameWidget::setViewUp |
( |
double |
viewUp[3] | ) |
|
|
slot |
Set the view up for path-based keyframe.
◆ showEvent()
void pqCameraKeyFrameWidget::showEvent |
( |
QShowEvent * |
| ) |
|
|
overrideprotected |
◆ hideEvent()
void pqCameraKeyFrameWidget::hideEvent |
( |
QHideEvent * |
| ) |
|
|
overrideprotected |
The documentation for this class was generated from the following file: