Sequential Colormap generator. More...
#include <ofxOuiColormap.hpp>
Public Member Functions | |
Colormap () | |
Default Constructor. More... | |
virtual | ~Colormap () |
Destructor. More... | |
string | getName () const |
get the name of the current colormap More... | |
bool | setByName (string name) |
set the colormap by name More... | |
void | setBaseColors (vector< ofColor > colors) |
set a colormap from a vector of base colors More... | |
void | resize (int num_values) |
resize the colormap More... | |
ofColor | sample (float position) |
Public Attributes | |
vector< ofColor > | values |
vector of colors of the colormap More... | |
Private Member Functions | |
void | generateValues () |
Private Attributes | |
vector< ofColor > | base_colors_ |
string | current_map_name_ |
Static Private Attributes | |
static map< string, vector< ofColor > > | fabric_ |
Sequential Colormap generator.
ofxOui::Colormap::Colormap | ( | ) |
Default Constructor.
|
virtual |
Destructor.
|
private |
string ofxOui::Colormap::getName | ( | ) | const |
get the name of the current colormap
void ofxOui::Colormap::resize | ( | int | num_values | ) |
resize the colormap
ofColor ofxOui::Colormap::sample | ( | float | position | ) |
void ofxOui::Colormap::setBaseColors | ( | vector< ofColor > | colors | ) |
set a colormap from a vector of base colors
colors | vector of Colors to of the sequential colormap |
bool ofxOui::Colormap::setByName | ( | string | name | ) |
set the colormap by name
name | name of the current colormap |
|
private |
|
private |
|
staticprivate |
vector<ofColor> ofxOui::Colormap::values |
vector of colors of the colormap