00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <vrs/qt4/qt4canvas.h>
00020 #include <QtGui/qwidget.h>
00021
00022 #include <vrs/sg/camerapatheditor.h>
00023
00024 #include "../../../../src/qt4/CameraPathEditorWidget/resource/ui_CameraPathEditorWidget.h"
00025
00026
00027
00028 using namespace VRS;
00029 class VRS_QT4_API CameraPathEditorWidget : public QDockWidget {
00030 Q_OBJECT
00031
00032 public:
00033 CameraPathEditorWidget();
00034 void init(SO<VRS::CameraPathEditor> camera);
00035
00036 KeyFrameListWidget* keyFrameListWidget(){
00037 return _ui.keyFrameTree_widget; }
00038
00039 public slots:
00040 void appendKeyframe();
00041 void playFromCursor();
00042 void playFromBeginning();
00043 void stopPlaying();
00044 void renderVideoSequence();
00045 void setPathDuration(double duration);
00046 void showCircleProperties(bool);
00047 void showSpeedmarkProperties(bool);
00048 void deleteCurrentPathnode();
00049 void saveCameraPath();
00050 void openCameraPath();
00051
00052 void changeSpeed(double);
00053 void changeAccel(double);
00054 void changeStartSpeed(int);
00055 void changeCircleRounds(int);
00056
00057 void playButtonPressed();
00058 void stopButtonPressed();
00059
00060 protected:
00061 Ui::DockWidget _ui;
00062
00063 protected:
00064 void timerEvent(QTimerEvent *event);
00065 private:
00066
00067 void setSpeedAndCirclePropertys();
00068 private:
00069
00070 SO<GLCanvas> _canvas;
00071 SO<SceneThing> _threeds;
00072 SO<VRS::CameraPathEditor> _camera;
00073 int _oldCursorPosition;
00074 bool _playKeyframes;
00075
00076 };
00077