te::qt::widgets::TimeScaleDraw Class Reference

A class that adjusts the labels on a chart. More...

#include <TimeScaleDraw.h>

Inheritance diagram for te::qt::widgets::TimeScaleDraw:

Public Member Functions

virtual QwtText label (double v) const
 
 TimeScaleDraw (std::string dateFormat="dd MMM yyyy")
 Constructor. More...
 
 ~TimeScaleDraw ()
 Destructor. More...
 

Private Attributes

std::string m_dateFormat
 

Detailed Description

A class that adjusts the labels on a chart.

Definition at line 49 of file TimeScaleDraw.h.

Constructor & Destructor Documentation

te::qt::widgets::TimeScaleDraw::TimeScaleDraw ( std::string  dateFormat = "dd MMM yyyy")

Constructor.

It constructs a TimeScaleDraw that has the appropriate granularity for the data that the label is displaying.

The default format strings are:

  • Millisecond :hh:mm:ss:zzz dd MMM yyyy
  • Second: hh:mm:ss dd MMM yyyy
  • Minute: hh:mm dd MMM yyyy
  • Hour: hh:mm dd MMM yyyy
  • Day: ddd dd MMM yyyy
  • Week Www yyyy
  • Month: MMM yyyy
  • Year: yyyy
te::qt::widgets::TimeScaleDraw::~TimeScaleDraw ( )

Destructor.

Member Function Documentation

virtual QwtText te::qt::widgets::TimeScaleDraw::label ( double  v) const
virtual

Member Data Documentation

std::string te::qt::widgets::TimeScaleDraw::m_dateFormat
private

Definition at line 76 of file TimeScaleDraw.h.


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