Support Forum       G3D Web Page     
Static Public Member Functions | Static Protected Member Functions | Friends | List of all members
G3D::LogScaleAdapter< T > Class Template Reference

Used by GuiSlider. More...

Inherits G3D::ReferenceCountedObject.

Static Public Member Functions

static Pointer< T > wrap (const Pointer< T > &ptr, const T &low, const T &high, bool lowerLimitInf=false, bool upperLimitInf=false)
 Converts a pointer to a linear scale value on the range [low, high] to a logarithic scale value on the same range. More...
 

Static Protected Member Functions

template<class T , class ... ArgTypes>
static shared_ptr< T > createShared (ArgTypes &&... args)
 Like std::make_shared, but works for protected constructors. More...
 

Friends

class Pointer< T >
 

Detailed Description

template<class T>
class G3D::LogScaleAdapter< T >

Used by GuiSlider.

Member Function Documentation

◆ createShared()

template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared ( ArgTypes &&...  args)
inlinestaticprotectedinherited

Like std::make_shared, but works for protected constructors.

Call as createShared<myclass>.

◆ wrap()

template<class T >
static Pointer<T> G3D::LogScaleAdapter< T >::wrap ( const Pointer< T > &  ptr,
const T &  low,
const T &  high,
bool  lowerLimitInf = false,
bool  upperLimitInf = false 
)
inlinestatic

Converts a pointer to a linear scale value on the range [low, high] to a logarithic scale value on the same range.

Note that the scale is spaced logarithmically between low and high. However, the transformed value is not the logarithm of the value, so low = 0 is supported, but negative low values will not yield a negative logarithmic scale.

Referenced by G3D::GuiSlider< int >::GuiSlider().

Friends And Related Function Documentation

◆ Pointer< T >

template<class T >
friend class Pointer< T >
friend

documentation generated on Wed Nov 24 2021 08:01:57 using doxygen 1.8.15