OpenWalnut
1.5.0dev
|
Color converter for different scalings, i.e. More...
#include <WMPickingDVRHelper.h>
Public Member Functions | |
WMPickingColor () | |
Standard constructor that creates transparent black. More... | |
WMPickingColor (T red, T green, T blue, T alpha) | |
Constructor creating the color. More... | |
T | getRed () |
Get red color component value. More... | |
T | getGreen () |
Get green color component value. More... | |
T | getBlue () |
Get blue color component value. More... | |
T | getAlpha () |
Get opacity color component value. More... | |
void | setRed (T red) |
Set red color component value. More... | |
void | setGreen (T green) |
Set green color component value. More... | |
void | setBlue (T blue) |
Set blue color component value. More... | |
void | setAlpha (T alpha) |
Set opacity color component value. More... | |
void | normalize () |
Scales color down from [0,255] to [0,1]. More... | |
Private Attributes | |
T | red |
Red color component value. More... | |
T | green |
Green color component value. More... | |
T | blue |
Blue color component value. More... | |
T | alpha |
Opacity compnent value. More... | |
Color converter for different scalings, i.e.
[0,1] vs. [0,255]
Definition at line 48 of file WMPickingDVRHelper.h.
WMPickingColor< T >::WMPickingColor |
Standard constructor that creates transparent black.
Definition at line 133 of file WMPickingDVRHelper.h.
WMPickingColor< T >::WMPickingColor | ( | T | red, |
T | green, | ||
T | blue, | ||
T | alpha | ||
) |
Constructor creating the color.
red | red color component value |
green | green color component value |
blue | blue color copmonent value |
alpha | opacity component value |
Definition at line 139 of file WMPickingDVRHelper.h.
T WMPickingColor< T >::getAlpha |
Get opacity color component value.
Definition at line 164 of file WMPickingDVRHelper.h.
Referenced by WMPickingDVR::getTFAlpha().
T WMPickingColor< T >::getBlue |
Get blue color component value.
Definition at line 158 of file WMPickingDVRHelper.h.
T WMPickingColor< T >::getGreen |
Get green color component value.
Definition at line 152 of file WMPickingDVRHelper.h.
T WMPickingColor< T >::getRed |
Get red color component value.
Definition at line 146 of file WMPickingDVRHelper.h.
void WMPickingColor< T >::normalize |
Scales color down from [0,255] to [0,1].
Definition at line 195 of file WMPickingDVRHelper.h.
Referenced by WMPickingDVR::getTFAlpha().
void WMPickingColor< T >::setAlpha | ( | T | alpha | ) |
Set opacity color component value.
alpha | opacity value |
Definition at line 189 of file WMPickingDVRHelper.h.
Referenced by WMPickingDVR::getTFAlpha().
void WMPickingColor< T >::setBlue | ( | T | blue | ) |
Set blue color component value.
blue | blue value |
Definition at line 183 of file WMPickingDVRHelper.h.
Referenced by WMPickingDVR::getTFAlpha().
void WMPickingColor< T >::setGreen | ( | T | green | ) |
Set green color component value.
green | green value |
Definition at line 177 of file WMPickingDVRHelper.h.
Referenced by WMPickingDVR::getTFAlpha().
void WMPickingColor< T >::setRed | ( | T | red | ) |
Set red color component value.
red | red value |
Definition at line 171 of file WMPickingDVRHelper.h.
Referenced by WMPickingDVR::getTFAlpha().
|
private |
Opacity compnent value.
Definition at line 54 of file WMPickingDVRHelper.h.
|
private |
Blue color component value.
Definition at line 53 of file WMPickingDVRHelper.h.
|
private |
Green color component value.
Definition at line 52 of file WMPickingDVRHelper.h.
|
private |
Red color component value.
Definition at line 51 of file WMPickingDVRHelper.h.