Used by GuiSlider.
More...
Inherits G3D::ReferenceCountedObject.
|
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...
|
|
|
template<class T , class ... ArgTypes> |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
| Like std::make_shared, but works for protected constructors. More...
|
|
template<class T>
class G3D::LogScaleAdapter< T >
Used by GuiSlider.
◆ 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()
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().
◆ Pointer< T >