te::qt::widgets::StringScaleDraw Class Reference

#include <StringScaleDraw.h>

Inheritance diagram for te::qt::widgets::StringScaleDraw:

Public Member Functions

std::set< QString > & getLabels ()
 It returns the list containing the labels. More...
 
virtual QwtText label (double value) const
 It returns the label at the given index. More...
 
void setLabels (std::set< QString > new_labels)
 It sets the list containing the labels. More...
 
 StringScaleDraw (std::set< QString > &labels)
 Constructor. More...
 
 StringScaleDraw (std::set< std::string > &labels)
 Constructor. More...
 
 ~StringScaleDraw ()
 Destructor. More...
 

Private Attributes

std::set< QString > m_labels
 A set of label values. More...
 

Detailed Description

Definition at line 44 of file StringScaleDraw.h.

Constructor & Destructor Documentation

◆ StringScaleDraw() [1/2]

te::qt::widgets::StringScaleDraw::StringScaleDraw ( std::set< QString > &  labels)

Constructor.

It constructs a StringScaleDraw.

Parameters
labelsthe list of labels as a set of QStrings
Note
It will not take the ownership of the pointers.

◆ StringScaleDraw() [2/2]

te::qt::widgets::StringScaleDraw::StringScaleDraw ( std::set< std::string > &  labels)

Constructor.

It constructs a StringScaleDraw.

Parameters
labelsthe list of labels as a set of Strings
Note
It will not take the ownership of the pointers.

◆ ~StringScaleDraw()

te::qt::widgets::StringScaleDraw::~StringScaleDraw ( )

Destructor.

Member Function Documentation

◆ getLabels()

std::set<QString>& te::qt::widgets::StringScaleDraw::getLabels ( )

It returns the list containing the labels.

Returns
The list containing the labels.

◆ label()

virtual QwtText te::qt::widgets::StringScaleDraw::label ( double  value) const
virtual

It returns the label at the given index.

Parameters
new_labelsThe new list of labels.

◆ setLabels()

void te::qt::widgets::StringScaleDraw::setLabels ( std::set< QString >  new_labels)

It sets the list containing the labels.

Parameters
new_labelsThe new list of labels.

Member Data Documentation

◆ m_labels

std::set<QString> te::qt::widgets::StringScaleDraw::m_labels
private

A set of label values.

Definition at line 100 of file StringScaleDraw.h.


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