MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Signals | Public Member Functions | Protected Attributes
MAKLogger::DtLgrZoomableWidget Class Reference

A widget which can be zoomed. More...

+ Inheritance diagram for MAKLogger::DtLgrZoomableWidget:
+ Collaboration diagram for MAKLogger::DtLgrZoomableWidget:

Public Slots

virtual void setOffsets (float left, float right)
 
virtual void testForUpdate (DtLgrGuiModel &model)
 

Signals

void offsetsChanged (float left, float right)
 

Public Member Functions

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

Protected Attributes

float myLeftOffset
 
float myRightOffset
 
float myHorizontalMargin
 
double myDrawnFirstVisibleTime
 
double myDrawnLastVisibleTime
 
double myDrawnCurrentVisibleTime
 

Detailed Description

A widget which can be zoomed.

Constructor & Destructor Documentation

MAKLogger::DtLgrZoomableWidget::DtLgrZoomableWidget ( QWidget parent)

CTOR.

virtual MAKLogger::DtLgrZoomableWidget::~DtLgrZoomableWidget ( )
virtual

DTOR.

Member Function Documentation

QRect MAKLogger::DtLgrZoomableWidget::cursorBounds ( double  firstVisibleTime,
double  lastVisibleTime,
double  cursorTime,
int  xOffset 
)

Get the cursor bounds.

void MAKLogger::DtLgrZoomableWidget::drawCursor ( QPainter &  painter,
double  firstVisibleTime,
double  lastVisibleTime,
double  cursorTime,
int  xOffset,
bool  active 
)

Draw A cursor.

double MAKLogger::DtLgrZoomableWidget::firstVisibleTime ( double  firstTime,
double  lastTime 
) const

Get the first visible time, based upon the scale.

double MAKLogger::DtLgrZoomableWidget::firstVisibleTime ( DtLgrGuiModel model) const

Get the first visible time via the models display time.

float MAKLogger::DtLgrZoomableWidget::horizontalMargin ( ) const

get the horizontal margin.

double MAKLogger::DtLgrZoomableWidget::lastVisibleTime ( double  firstTime,
double  lastTime 
) const

Get the last visible time, based upon the scale.

double MAKLogger::DtLgrZoomableWidget::lastVisibleTime ( DtLgrGuiModel model) const

Get the last visible time via the models display time.

float MAKLogger::DtLgrZoomableWidget::leftOffset ( ) const
inline

Get the left offset (percent 0-100.0), inline for performance reasons.

void MAKLogger::DtLgrZoomableWidget::offsetsChanged ( float  left,
float  right 
)
signal
float MAKLogger::DtLgrZoomableWidget::rightOffset ( ) const
inline

Get the right offset (percent 0-100.0), inline for performance reasons.

QRectF MAKLogger::DtLgrZoomableWidget::scaledViewport ( QRect  orignalViewport,
QPoint  margins 
) const

Scale a viewport using the scaled settings and the provided margins.

void MAKLogger::DtLgrZoomableWidget::setDrawTimes ( DtLgrGuiModel model)
void MAKLogger::DtLgrZoomableWidget::setHorizontalMargin ( float  margin)

set the horizontal margin.

virtual void MAKLogger::DtLgrZoomableWidget::setOffsets ( float  left,
float  right 
)
virtualslot
virtual void MAKLogger::DtLgrZoomableWidget::testForUpdate ( DtLgrGuiModel model)
virtualslot

Member Data Documentation

double MAKLogger::DtLgrZoomableWidget::myDrawnCurrentVisibleTime
protected
double MAKLogger::DtLgrZoomableWidget::myDrawnFirstVisibleTime
protected
double MAKLogger::DtLgrZoomableWidget::myDrawnLastVisibleTime
protected
float MAKLogger::DtLgrZoomableWidget::myHorizontalMargin
protected
float MAKLogger::DtLgrZoomableWidget::myLeftOffset
protected
float MAKLogger::DtLgrZoomableWidget::myRightOffset
protected

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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)