Bits and Droids connector
Connect your microcontroller to handle MFS2020 commands.
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Axis Class Reference

#include <Axis.h>

Inheritance diagram for Axis:
CurveAxis Engine

Public Member Functions

int getMappedValue () const
 
void setMappedValue (int mappedValueToSet)
 
int getOldMappedValue () const
 
void setOldMappedValue (int oldMappedValue)
 
 Axis ()
 
 Axis (InputEnum::DATA_DEFINE_ID_INPUT event)
 
 Axis (float min, float max, InputEnum::DATA_DEFINE_ID_INPUT event)
 
 Axis (float min, float max, InputTypeEnum type, InputEnum::DATA_DEFINE_ID_INPUT event)
 
int getCurrentValue () const
 
void setCurrentValue (int currentValue)
 
int getOldValue () const
 
void setOldValue (int oldValue)
 
float getMin () const
 
void setMin (float min)
 
void setMax (float max)
 
void setEvent (InputEnum::DATA_DEFINE_ID_INPUT)
 
float getMax () const
 
InputTypeEnum getType () const
 
InputEnum::DATA_DEFINE_ID_INPUT getEvent () const
 

Private Attributes

int currentValue = 0
 
int oldValue = 0
 
InputEnum::DATA_DEFINE_ID_INPUT event
 
InputTypeEnum type = AXIS
 
int mappedValue = 0
 
int oldMappedValue = 0
 
float min = 0
 
float max = 0
 

Constructor & Destructor Documentation

◆ Axis() [1/4]

Axis::Axis ( )

◆ Axis() [2/4]

Axis::Axis ( InputEnum::DATA_DEFINE_ID_INPUT  event)

◆ Axis() [3/4]

Axis::Axis ( float  min,
float  max,
InputEnum::DATA_DEFINE_ID_INPUT  event 
)

◆ Axis() [4/4]

Axis::Axis ( float  min,
float  max,
InputTypeEnum  type,
InputEnum::DATA_DEFINE_ID_INPUT  event 
)

Member Function Documentation

◆ getCurrentValue()

int Axis::getCurrentValue ( ) const

◆ getEvent()

InputEnum::DATA_DEFINE_ID_INPUT Axis::getEvent ( ) const

◆ getMappedValue()

int Axis::getMappedValue ( ) const

◆ getMax()

float Axis::getMax ( ) const

◆ getMin()

float Axis::getMin ( ) const

◆ getOldMappedValue()

int Axis::getOldMappedValue ( ) const

◆ getOldValue()

int Axis::getOldValue ( ) const

◆ getType()

InputTypeEnum Axis::getType ( ) const

◆ setCurrentValue()

void Axis::setCurrentValue ( int  currentValue)

◆ setEvent()

void Axis::setEvent ( InputEnum::DATA_DEFINE_ID_INPUT  event)

◆ setMappedValue()

void Axis::setMappedValue ( int  mappedValueToSet)

◆ setMax()

void Axis::setMax ( float  max)

◆ setMin()

void Axis::setMin ( float  min)

◆ setOldMappedValue()

void Axis::setOldMappedValue ( int  oldMappedValue)

◆ setOldValue()

void Axis::setOldValue ( int  oldValue)

Member Data Documentation

◆ currentValue

int Axis::currentValue = 0
private

◆ event

InputEnum::DATA_DEFINE_ID_INPUT Axis::event
private

◆ mappedValue

int Axis::mappedValue = 0
private

◆ max

float Axis::max = 0
private

◆ min

float Axis::min = 0
private

◆ oldMappedValue

int Axis::oldMappedValue = 0
private

◆ oldValue

int Axis::oldValue = 0
private

◆ type

InputTypeEnum Axis::type = AXIS
private

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