Open 3D Engine LyShine Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
TimelineWidget Class Reference

Inherits QWidget, and AbstractTimelineWidget.

Public Types

enum  MarkerStyle { MARKER_STYLE_SECONDS , MARKER_STYLE_FRAMES }
 

Signals

void deleteRequested ()
 
void clicked ()
 
void startChange ()
 
void change ()
 
void endChange ()
 

Public Member Functions

void setZoom (float zoom, float origin) override
 
void update (const QRect &r=QRect()) override
 
void setGeometry (const QRect &r) override
 
void SetTimeRange (const Range &r)
 
void SetTimeMarker (float fTime) override
 
float GetTimeMarker () const
 
void SetZoom (float fZoom)
 
void SetOrigin (float fOffset)
 
void SetKeyTimeSet (IKeyTimeSet *pKeyTimeSet)
 
void SetTicksTextScale (float fScale)
 
float GetTicksTextScale () const
 
void SetTrackingSnapToFrames (bool bEnable)
 
void SetMarkerStyle (MarkerStyle markerStyle)
 
void SetFPS (float fps)
 
float GetFPS () const
 
void SetPlayCallback (const std::function< void()> &callback)
 
virtual void setZoom (float zoom, float origin)=0
 
virtual void update (const QRect &r=QRect())=0
 
virtual void setGeometry (const QRect &r)=0
 
virtual void SetTimeMarker (float marker)=0
 

Protected Types

enum  TrackingMode { TRACKING_MODE_NONE , TRACKING_MODE_SET_TIME , TRACKING_MODE_MOVE_KEYS , TRACKING_MODE_SELECTION_RANGE }
 

Protected Member Functions

int HitKeyTimes (const QPoint &point)
 
void MoveSelectedKeyTimes (float scale, float offset)
 
void SelectKeysInRange (float start, float end, bool select)
 
void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void OnLButtonDown (const QPoint &point, Qt::KeyboardModifiers modifiers)
 
void OnLButtonUp (const QPoint &point, Qt::KeyboardModifiers modifiers)
 
void OnRButtonDown (const QPoint &point, Qt::KeyboardModifiers modifiers)
 
void OnRButtonUp (const QPoint &point, Qt::KeyboardModifiers modifiers)
 
void keyPressEvent (QKeyEvent *event) override
 
float ClientToTime (int x)
 
int TimeToClient (float fTime)
 
void DrawTicks (QPainter *painter)
 
Range GetVisibleRange () const
 
void StartTracking (TrackingMode trackingMode)
 
void StopTracking ()
 
QString TimeToString (float time)
 
int ToMillis (float time)
 
float MillisToTime (int nMillis)
 
float SnapTime (float time)
 
void DrawSecondTicks (QPainter *dc)
 
void DrawFrameTicks (QPainter *dc)
 

Member Function Documentation

◆ setGeometry()

void TimelineWidget::setGeometry ( const QRect &  r)
inlineoverridevirtual

◆ SetTimeMarker()

void TimelineWidget::SetTimeMarker ( float  fTime)
overridevirtual

◆ setZoom()

void TimelineWidget::setZoom ( float  zoom,
float  origin 
)
inlineoverridevirtual

◆ update()

void TimelineWidget::update ( const QRect &  r = QRect())
inlineoverridevirtual

The documentation for this class was generated from the following file: