QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Protected Member Functions | Protected Attributes | Friends | List of all members
Qwt3D::Scale Class Referenceabstract

Non-visual scale class encapsulating tic generation. More...

#include <qwt3d_scale.h>

Inheritance diagram for Qwt3D::Scale:
Qwt3D::LinearScale Qwt3D::LogScale

Protected Member Functions

virtual QString ticLabel (unsigned int idx) const
 Maps the double value at tic-position idx to a final representation.
 
virtual void setLimits (double start, double stop)
 Sets start and stop value for the scale.
 
virtual void setMajors (int val)
 
virtual void setMinors (int val)
 
virtual void setMajorLimits (double start, double stop)
 Sets value of first and last major tic.
 
int majors () const
 
int minors () const
 
virtual Scaleclone () const =0
 
virtual void calculate ()=0
 
virtual int autoscale (double &a, double &b, double start, double stop, int ivals)
 Autoscales the axis.
 

Protected Attributes

std::vector< double > majors_p
 
std::vector< double > minors_p
 
double start_p
 
double stop_p
 
int majorintervals_p
 
int minorintervals_p
 
double mstart_p
 
double mstop_p
 

Friends

class Axis
 Indices used to identify an axis.
 
class qwt3d_ptr< Scale >
 

Detailed Description

Non-visual scale class encapsulating tic generation.

Member Function Documentation

◆ autoscale()

int Scale::autoscale ( double &  a,
double &  b,
double  start,
double  stop,
int  ivals 
)
protectedvirtual

Autoscales the axis.

Reimplemented in Qwt3D::LinearScale.

◆ calculate()

virtual void Qwt3D::Scale::calculate ( )
protectedpure virtual

Implemented in Qwt3D::LinearScale, and Qwt3D::LogScale.

◆ setLimits()

void Scale::setLimits ( double  start,
double  stop 
)
protectedvirtual

Sets start and stop value for the scale.

◆ setMajorLimits()

void Scale::setMajorLimits ( double  start,
double  stop 
)
protectedvirtual

Sets value of first and last major tic.

◆ setMinors()

virtual void Qwt3D::Scale::setMinors ( int  val)
inlineprotectedvirtual

Reimplemented in Qwt3D::LogScale.

◆ ticLabel()

QString Scale::ticLabel ( unsigned int  idx) const
protectedvirtual

Maps the double value at tic-position idx to a final representation.

Reimplemented in Qwt3D::LogScale.

Friends And Related Symbol Documentation

◆ Axis

friend class Axis
friend

Indices used to identify an axis.

See also
Scale

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