Skip to content

Class eva::Slider

template <class TReader, unsigned short tMinPos, unsigned short tMaxPos>

ClassList > eva > Slider

Maps analog readings to 1000-2000 range. More...

  • #include <evaSlider.h>

Inherits the following classes: TReader

Public Functions

Type Name
Slider (Args... args)
Constructs a Slider .
signed short getValue ()
Gets normalized slider position with custom range.
signed short getValue ()
Gets normalized slider position.

Detailed Description

Template parameters:

  • TReader Underlying reader type
  • tMinPos Minimum analog reading
  • tMaxPos Maximum analog reading

Public Functions Documentation

function Slider

Constructs a Slider .

template<typename... Args>
inline eva::Slider::Slider (
    Args... args
) 

Parameters:

  • args Additional arguments passed to TReader constructor

function getValue [1/2]

Gets normalized slider position with custom range.

template<unsigned short MINPOS, unsigned short MAXPOS>
inline signed short eva::Slider::getValue () 

Template parameters:

  • MINPOS Minimum analog reading
  • MAXPOS Maximum analog reading

Returns:

Value from 1000 to 2000


function getValue [2/2]

Gets normalized slider position.

inline signed short eva::Slider::getValue () 

Returns:

Value from 1000 to 2000



The documentation for this class was generated from the following file src/evaSlider.h