Open 3D Engine EMotionFX Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
EMStudio::TimeTrackElement Class Reference

Public Types

enum  { RESIZEPOINT_START = 0 , RESIZEPOINT_END = 1 }
 

Public Member Functions

 TimeTrackElement (const char *name, TimeTrack *timeTrack, size_t elementNumber=InvalidIndex, QColor color=QColor(0, 0, 0))
 
MCORE_INLINE double GetStartTime () const
 
MCORE_INLINE double GetEndTime () const
 
MCORE_INLINE bool GetIsSelected () const
 
MCORE_INLINE TimeTrackGetTrack ()
 
MCORE_INLINE size_t GetElementNumber () const
 
QColor GetColor () const
 
void SetIsSelected (bool selected)
 
void SetStartTime (double startTime)
 
void SetEndTime (double endTime)
 
void SetName (const char *name)
 
void SetToolTip (const char *toolTip)
 
void SetTrack (TimeTrack *track)
 
void SetElementNumber (size_t elementNumber)
 
void SetColor (QColor color)
 
const QString & GetName () const
 
const QString & GetToolTip () const
 
const QFont & GetFont () const
 
virtual void Render (QPainter &painter, bool isTrackEnabled)
 
virtual bool SnapTime (double *inOutTime, double snapTreshold) const
 
virtual bool FindResizePoint (int32 x, int32 y, uint32 *outID)
 
virtual uint32 HandleResize (uint32 id, double timeDelta, double snapThreshold)
 
bool CheckIfIsInside (int32 x, int32 y) const
 
void MoveRelative (double timeDelta)
 
void CalcDimensions (int32 *outStartX, int32 *outStartY, int32 *outWidth, int32 *outHeight) const
 
QRect CalcRect ()
 
bool GetShowTimeHandles () const
 
void SetShowTimeHandles (bool show)
 
void SetShowToolTip (bool show)
 
bool GetShowToolTip () const
 
bool GetIsVisible () const
 
void SetIsVisible (bool visible)
 
bool GetIsCut () const
 
void SetIsCut (bool cut)
 
MCORE_INLINE bool GetIsHighlighted () const
 
MCORE_INLINE void SetIsHighlighted (bool enabled)
 

Protected Attributes

QFont m_font
 
QBrush m_brush
 
TimeTrackm_track
 
double m_startTime
 
double m_endTime
 
QString m_name
 
QString m_toolTip
 
QColor m_color
 
size_t m_elementNumber
 
QPoint m_tickPoints [6]
 
bool m_visible
 
bool m_isCut
 
bool m_isSelected
 
bool m_showTimeHandles
 
bool m_showToolTip
 
bool m_isHighlighted
 

Static Protected Attributes

static QColor s_highlightedColor
 
static QColor s_textColor
 
static QColor s_highlightedTextColor
 
static int32 s_tickHalfWidth
 

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