NorMIT-nav  22.09
An IGT application
cx::TimelineWidget Class Reference

widget for displaying a timeline for events. More...

#include <cxTimelineWidget.h>

Inheritance diagram for cx::TimelineWidget:

Signals

void positionChanged ()
 

Public Member Functions

 TimelineWidget (QWidget *parent)
 
virtual ~TimelineWidget ()
 
void setEvents (std::vector< TimelineEvent > events)
 
void setRange (double start, double stop)
 
void setPos (double pos)
 
double getPos () const
 

Protected Member Functions

virtual bool event (QEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void resizeEvent (QResizeEvent *evt)
 Reimplemented from superclass. More...
 
virtual void paintEvent (QPaintEvent *event)
 Reimplemented from superclass. Paints the transferfunction GUI. More...
 
virtual QSize sizeHint () const
 
QSize minimumSizeHint () const
 

Detailed Description

widget for displaying a timeline for events.

The point is to display periods of time where tools are visible in a different color than the visible periods. Also other events like registration, data load.

Date
Mar 29, 2012
Author
Christian Askeland, SINTEF

Definition at line 38 of file cxTimelineWidget.h.

Constructor & Destructor Documentation

◆ TimelineWidget()

cx::TimelineWidget::TimelineWidget ( QWidget *  parent)

Definition at line 27 of file cxTimelineWidget.cpp.

◆ ~TimelineWidget()

cx::TimelineWidget::~TimelineWidget ( )
virtual

Definition at line 45 of file cxTimelineWidget.cpp.

Member Function Documentation

◆ event()

bool cx::TimelineWidget::event ( QEvent *  event)
protectedvirtual

Definition at line 378 of file cxTimelineWidget.cpp.

◆ getPos()

double cx::TimelineWidget::getPos ( ) const

Definition at line 57 of file cxTimelineWidget.cpp.

◆ minimumSizeHint()

QSize cx::TimelineWidget::minimumSizeHint ( ) const
protected

Definition at line 446 of file cxTimelineWidget.cpp.

◆ mouseMoveEvent()

void cx::TimelineWidget::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 423 of file cxTimelineWidget.cpp.

◆ mousePressEvent()

void cx::TimelineWidget::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 364 of file cxTimelineWidget.cpp.

◆ mouseReleaseEvent()

void cx::TimelineWidget::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 373 of file cxTimelineWidget.cpp.

◆ paintEvent()

void cx::TimelineWidget::paintEvent ( QPaintEvent *  event)
protectedvirtual

Reimplemented from superclass. Paints the transferfunction GUI.

Definition at line 237 of file cxTimelineWidget.cpp.

◆ positionChanged

void cx::TimelineWidget::positionChanged ( )
signal

◆ resizeEvent()

void cx::TimelineWidget::resizeEvent ( QResizeEvent *  evt)
protectedvirtual

Reimplemented from superclass.

Definition at line 348 of file cxTimelineWidget.cpp.

◆ setEvents()

void cx::TimelineWidget::setEvents ( std::vector< TimelineEvent events)

Definition at line 185 of file cxTimelineWidget.cpp.

◆ setPos()

void cx::TimelineWidget::setPos ( double  pos)

Definition at line 50 of file cxTimelineWidget.cpp.

◆ setRange()

void cx::TimelineWidget::setRange ( double  start,
double  stop 
)

Definition at line 210 of file cxTimelineWidget.cpp.

◆ sizeHint()

QSize cx::TimelineWidget::sizeHint ( ) const
protectedvirtual

Definition at line 441 of file cxTimelineWidget.cpp.


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