3#include <Gui/RaGui.hpp>
5#include <Core/Animation/KeyFramedValue.hpp>
6#include <Core/Animation/KeyFramedValueController.hpp>
7#include <Engine/Scene/ItemEntry.hpp>
42 explicit Timeline( QWidget* parent =
nullptr );
54 void registerKeyFramedValue(
66 void registerKeyFramedValue(
78 void registerKeyFramedValue(
79 Ra::Core::Utils::Index roIdx,
85 void unregisterKeyFramedValue( Ra::Core::Utils::Index roIdx,
const std::string& name );
90 Scalar getTime()
const;
95 void detachFromEngine();
170 void onChangeStart( Scalar time );
176 void onChangeEnd( Scalar time );
182 void onChangeDuration( Scalar time );
188 void onChangeCursor( Scalar time );
193 void onSetPlay(
bool play );
196 void resizeEvent( QResizeEvent* ev )
override;
202 void on_pingPong_toggled(
bool checked );
207 void updateKeyFrames( Scalar time );
212 void onClearKeyFrames();
217 void onAddingKeyFrame( Scalar time );
222 void onRemovingKeyFrame(
size_t i );
227 void onChangingKeyFrame(
size_t i );
232 void onMovingKeyFrame(
size_t i, Scalar time1 );
237 void onMovingKeyFrames(
size_t first, Scalar offset );
242 void on_comboBox_attribute_currentTextChanged(
const QString& arg1 );
247 void on_pushButton_editAttribute_clicked();
252 void on_toolButton_help_clicked();
265 m_componentKeyFrames;
269 m_renderObjectKeyFrames;
276 int m_entityAddObserverId { -1 };
277 int m_entityRemoveObserverId { -1 };
278 int m_roAddObserverId { -1 };
A component is an element that can be updated by a system. It is also linked to some other components...
An entity is an scene element. It ties together components with a transform.
The Timeline class provides display and management of time, as well as keyframes.
void playClicked(bool play)
playClicked is emitted when user click on play button.
void keyFrameChanged(size_t i)
keyFrameChanged is emitted when user insert keyFrame in a known keyFrame position.
void setPingPong(bool)
setPingPong is emitted when user click on PingPong button.
void keyFrameAdded(Scalar time)
keyFrameAdded is emitted when user add new keyFrame.
void startChanged(Scalar time)
startChanged is emitted when user move left slider of playzone or set new value in start spin (green)
void durationChanged(Scalar time)
durationChanged is emitted when user change duration time in top right spin.
void keyFrameMoved(size_t i, Scalar time1)
keyFrameMoved is emitted when user move the keyFrame on cursor to a new position (on mouse)
void keyFrameDeleted(size_t i)
keyFrameDeleted is emitted when user remove keyFrame.
void endChanged(Scalar time)
endChanged is emitted when user move right slider of playzone or set new value in end spin (red)
void cursorChanged(Scalar time)
cursorChanged is emitted when user move cursor.
void keyFramesMoved(size_t first, Scalar offset)
keyFramesMoved is emitted when user move keyFrames.