MAK Data Logger API Documentation for HLA
List of all members | Public Slots | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
MAKLogger::DtTimelineBar Class Reference

A time line bar which is zoom able and drawable current time marker. More...

+ Inheritance diagram for MAKLogger::DtTimelineBar:
+ Collaboration diagram for MAKLogger::DtTimelineBar:

Public Slots

void setStartStopTimePercentages (float, float)
void testForUpdate ()
 Slot used to test to see if an update should be performed.
- Public Slots inherited from MAKLogger::DtLgrZoomableWidget
virtual void setOffsets (float left, float right)
virtual void testForUpdate (DtLgrGuiModel &model)

Public Member Functions

 DtTimelineBar (DtLgrGuiModel &model, QWidget *parent)
 CTOR.
virtual ~DtTimelineBar ()
 DTOR.
DtAbsoluteTime firstTime () const
DtAbsoluteTime lastTime () const
DtAbsoluteTime currentTime () const
DtAbsoluteTime startTime () const
DtAbsoluteTime stopTime () const
DtRelativeTime duration () const
DtRelativeTime playDuration () const
int verticalMargin () const
- Public Member Functions inherited from MAKLogger::DtLgrZoomableWidget
 DtLgrZoomableWidget (QWidget *parent)
 CTOR.
virtual ~DtLgrZoomableWidget ()
 DTOR.
QRectF scaledViewport (QRect orignalViewport, QPoint margins) const
 Scale a viewport using the scaled settings and the provided margins.
void drawCursor (QPainter &painter, double firstVisibleTime, double lastVisibleTime, double cursorTime, int xOffset, bool active)
 Draw A cursor.
QRect cursorBounds (double firstVisibleTime, double lastVisibleTime, double cursorTime, int xOffset)
 Get the cursor bounds.
double firstVisibleTime (double firstTime, double lastTime) const
 Get the first visible time, based upon the scale.
double firstVisibleTime (DtLgrGuiModel &model) const
 Get the first visible time via the models display time.
double lastVisibleTime (double firstTime, double lastTime) const
 Get the last visible time, based upon the scale.
double lastVisibleTime (DtLgrGuiModel &model) const
 Get the last visible time via the models display time.
float leftOffset () const
 Get the left offset (percent 0-100.0), inline for performance reasons.
float rightOffset () const
 Get the right offset (percent 0-100.0), inline for performance reasons.
float horizontalMargin () const
 get the horizontal margin.
void setHorizontalMargin (float margin)
 set the horizontal margin.
void setDrawTimes (DtLgrGuiModel &model)

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void keyPressEvent (QKeyEvent *)
virtual void contextMenuEvent (QContextMenuEvent *)
virtual void updateCurrentTime (QPoint)
void draw (QPainter &painter, const QRect &boundingRect)
void drawTicks (QPainter &painter, double, double)
void drawBackground (QPainter &painter, double, double)

Static Protected Member Functions

static DtRelativeTime textTickSize (DtRelativeTime duration)

Protected Attributes

double myDrawnCurrentTime
double myDrawnStartTime
double myDrawnStopTime
double myDrawnFirstVisibleTime
double myDrawnLastVisibleTime
int myHorizontalMargin
int myVerticalMargin
DtAbsoluteTime myOnSelectionCurrentTime
bool myUpdateTimeFlag
bool mySelectingArea
DtValueSmoothermyValueSmoother
DtLgrGuiModelmyModel
- Protected Attributes inherited from MAKLogger::DtLgrZoomableWidget
float myLeftOffset
float myRightOffset
float myHorizontalMargin
double myDrawnFirstVisibleTime
double myDrawnLastVisibleTime
double myDrawnCurrentVisibleTime

Additional Inherited Members

- Signals inherited from MAKLogger::DtLgrZoomableWidget
void offsetsChanged (float left, float right)

Detailed Description

A time line bar which is zoom able and drawable current time marker.

Constructor & Destructor Documentation

MAKLogger::DtTimelineBar::DtTimelineBar ( DtLgrGuiModel model,
QWidget parent 
)

CTOR.

virtual MAKLogger::DtTimelineBar::~DtTimelineBar ( )
virtual

DTOR.

Member Function Documentation

virtual void MAKLogger::DtTimelineBar::contextMenuEvent ( QContextMenuEvent *  )
protectedvirtual
DtAbsoluteTime MAKLogger::DtTimelineBar::currentTime ( ) const
void MAKLogger::DtTimelineBar::draw ( QPainter &  painter,
const QRect &  boundingRect 
)
protected
void MAKLogger::DtTimelineBar::drawBackground ( QPainter &  painter,
double  ,
double   
)
protected
void MAKLogger::DtTimelineBar::drawTicks ( QPainter &  painter,
double  ,
double   
)
protected
DtRelativeTime MAKLogger::DtTimelineBar::duration ( ) const
DtAbsoluteTime MAKLogger::DtTimelineBar::firstTime ( ) const
virtual void MAKLogger::DtTimelineBar::keyPressEvent ( QKeyEvent *  )
protectedvirtual
DtAbsoluteTime MAKLogger::DtTimelineBar::lastTime ( ) const
virtual void MAKLogger::DtTimelineBar::mouseMoveEvent ( QMouseEvent *  )
protectedvirtual
virtual void MAKLogger::DtTimelineBar::mousePressEvent ( QMouseEvent *  )
protectedvirtual
virtual void MAKLogger::DtTimelineBar::mouseReleaseEvent ( QMouseEvent *  )
protectedvirtual
virtual void MAKLogger::DtTimelineBar::paintEvent ( QPaintEvent *  )
protectedvirtual
DtRelativeTime MAKLogger::DtTimelineBar::playDuration ( ) const
void MAKLogger::DtTimelineBar::setStartStopTimePercentages ( float  ,
float   
)
slot
DtAbsoluteTime MAKLogger::DtTimelineBar::startTime ( ) const
DtAbsoluteTime MAKLogger::DtTimelineBar::stopTime ( ) const
void MAKLogger::DtTimelineBar::testForUpdate ( )
slot

Slot used to test to see if an update should be performed.

static DtRelativeTime MAKLogger::DtTimelineBar::textTickSize ( DtRelativeTime  duration)
staticprotected
virtual void MAKLogger::DtTimelineBar::updateCurrentTime ( QPoint  )
protectedvirtual
int MAKLogger::DtTimelineBar::verticalMargin ( ) const

Member Data Documentation

double MAKLogger::DtTimelineBar::myDrawnCurrentTime
protected
double MAKLogger::DtTimelineBar::myDrawnFirstVisibleTime
protected
double MAKLogger::DtTimelineBar::myDrawnLastVisibleTime
protected
double MAKLogger::DtTimelineBar::myDrawnStartTime
protected
double MAKLogger::DtTimelineBar::myDrawnStopTime
protected
int MAKLogger::DtTimelineBar::myHorizontalMargin
protected
DtLgrGuiModel* MAKLogger::DtTimelineBar::myModel
protected
DtAbsoluteTime MAKLogger::DtTimelineBar::myOnSelectionCurrentTime
protected
bool MAKLogger::DtTimelineBar::mySelectingArea
protected
bool MAKLogger::DtTimelineBar::myUpdateTimeFlag
protected
DtValueSmoother* MAKLogger::DtTimelineBar::myValueSmoother
protected
int MAKLogger::DtTimelineBar::myVerticalMargin
protected

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

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)