33 #ifndef CXTIMELINEWIDGET_H_
34 #define CXTIMELINEWIDGET_H_
36 #include "cxResourceWidgetsExport.h"
68 void setEvents(std::vector<TimelineEvent> events);
70 void setRange(
double start,
double stop);
71 void setPos(
double pos);
72 double getPos()
const;
75 void positionChanged();
80 virtual bool event(QEvent *event);
81 virtual void mousePressEvent(QMouseEvent* event);
82 virtual void mouseReleaseEvent(QMouseEvent* event);
83 virtual void mouseMoveEvent(QMouseEvent* event);
84 virtual void resizeEvent(QResizeEvent* evt);
85 virtual void paintEvent(QPaintEvent* event);
86 virtual QSize sizeHint()
const;
87 QSize minimumSizeHint()
const;
90 int mapTime2PlotX(
double time)
const;
91 double mapPlotX2Time(
int plotX)
const;
92 bool showHelp(QPoint pos);
94 void setPositionFromScreenPos(
int x,
int y);
95 void createCompactingTransforms();
96 double findCompactedTime(
double timeInterval,
double totalUsedTime,
double totalTime)
const;
99 std::vector<TimelineEvent> mEvents;
101 double mStart, mStop, mPos;
106 QStringList mContinousEvents;
107 std::vector<TimelineEvent> mNoncompactedIntervals;
vtkSmartPointer< class vtkPiecewiseFunction > vtkPiecewiseFunctionPtr