ofxMUI
A Multi-touch GUI implementation built with ofxDOM for openFrameworks.
ofx::MUI::Axis< DataType > Class Template Reference

An Axis describes the behavior of one dimension of data in a series. More...

#include <Axis.h>

Public Types

enum  Scale { LINEAR, SEMILOG }
 Describes the axis scale. More...
 

Public Member Functions

 Axis (const DataType &minimum, const DataType &maximum, Scale scale, bool inverted, bool autoRange, bool clipped)
 
DataType map (const DataType &value, const DataType &outputMin, const DataType &outputMax) const
 
void setRange (const DataType &minimum, const DataType &maximum)
 
void setMinimum (const DataType &minimum)
 
const DataType & getMinimum () const
 
void setMaximum (const DataType &maximum)
 
const DataType & getMaximum () const
 
void setAutoRange (bool autoRange)
 
bool isAutoRange () const
 
void setScale (Scale scale)
 
Scale getScale () const
 
void setInverted (bool inverted)
 
bool isInverted () const
 
void setClipped (bool clipped)
 
bool isClipped () const
 

Detailed Description

template<typename DataType>
class ofx::MUI::Axis< DataType >

An Axis describes the behavior of one dimension of data in a series.

Template Parameters
DataTypethe data type described by the axis.

Member Enumeration Documentation

template<typename DataType>
enum ofx::MUI::Axis::Scale

Describes the axis scale.

Enumerator
LINEAR 

Linear scale.

SEMILOG 

Semilog scale.


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