quickplot
Loading...
Searching...
No Matches
Public Types | Public Slots | Signals | Public Member Functions | Protected Attributes | Properties | List of all members
Axis Class Reference

#include <axis.h>

Inheritance diagram for Axis:
Collaboration diagram for Axis:

Public Types

enum  Direction { Z , Y , X }
 

Public Slots

virtual void nudge (double delta)
 

Signals

void dataChanged ()
 

Public Member Functions

virtual std::vector< float > convert (QList< double > values) const
 
AxisTickLabelstickLabels ()
 
Direction direction () const
 
double minimum () const
 
void setMinimum (const double value)
 
double maximum () const
 
void setMaximum (const double value)
 
int tickCount () const
 
double tick (int index) const
 
virtual double tickCoord (int index) const
 

Protected Attributes

std::vector< double > tics_
 
double minimum_
 
double maximum_
 

Properties

double thickness
 
double minimum
 
double maximum
 
Direction direction
 
AxisTickLabelstickLabels
 
int tickCount
 

Detailed Description

A translation between data values and graph coordinates

Member Function Documentation

◆ convert()

std::vector< float > Axis::convert ( QList< double >  values) const
virtual

Translate data space values into plot space values. Subclasses will overload this method to enable different scaling methods (e.g. log scaling).

Reimplemented in LogAxis.

◆ direction()

Axis::Direction Axis::direction ( ) const

The direction in which the axis is pointing.

Todo:
This needs to be a proper enum to handle three dimensions

◆ maximum()

double Axis::maximum ( ) const

Get the maximum edge of the axis

◆ minimum()

double Axis::minimum ( ) const

Get the minimum edge of the axis

◆ nudge

void Axis::nudge ( double  delta)
virtualslot

Shift the axis bounds by a given distance

Reimplemented in LogAxis.

◆ setMaximum()

void Axis::setMaximum ( const double  value)

Set the maximum edge of the axis

◆ setMinimum()

void Axis::setMinimum ( const double  value)

Set the minimum edge of the axis

◆ tick()

double Axis::tick ( int  index) const

Access the value of an individual tick label by index

◆ tickCoord()

double Axis::tickCoord ( int  index) const
virtual

Access the position of an individual tick label by index

Reimplemented in LogAxis.

◆ tickCount()

int Axis::tickCount ( ) const

The number of tick labels on the axis

◆ tickLabels()

AxisTickLabels * Axis::tickLabels ( )

The tick label model for this axis

Member Data Documentation

◆ tics_

std::vector<double> Axis::tics_
protected

The tick labels values


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