#include <ColorModel.h>
Public Member Functions | |
| bool | addMax (const std::string &rclName) |
| bool | addMin (const std::string &rclName) |
| ColorLegend (const ColorLegend &rclCL) | |
| ColorLegend (void) | |
| Color | getColor (float fVal) const |
| Color | getColor (unsigned long ulPos) const |
| unsigned short | getColorIndex (float fVal) const |
| float | getMaxValue (void) const |
| float | getMinValue (void) const |
| uint32_t | getPackedColor (unsigned long ulPos) const |
| std::string | getText (unsigned long ulPos) const |
| float | getValue (unsigned long ulPos) const |
| unsigned long | hasNumberOfFields (void) const |
| bool | isOutsideGrayed (void) const |
| bool | operator!= (const ColorLegend &rclCL) const |
| ColorLegend & | operator= (const ColorLegend &rclCL) |
| bool | operator== (const ColorLegend &rclCL) const |
| bool | remove (unsigned long ulPos) |
| void | removeFirst (void) |
| void | removeLast (void) |
| void | resize (unsigned long ulN) |
| bool | setColor (unsigned long ulPos, unsigned long ulColor) |
| bool | setColor (unsigned long ulPos, float ucRed, float ucGreen, float ucBlue) |
| void | setOutsideGrayed (bool bOS) |
| bool | setText (unsigned long ulPos, const std::string &rclName) |
| bool | setValue (unsigned long ulPos, float fVal) |
| virtual | ~ColorLegend () |
Protected Attributes | |
| std::deque< Color > | _aclColorFields |
| std::deque< std::string > | _aclNames |
| std::deque< float > | _aclValues |
| bool | _bOutsideGrayed |
Definition at line 316 of file ColorModel.h.
| ColorLegend::ColorLegend | ( | void | ) |
Definition at line 319 of file ColorModel.cpp.
References _aclColorFields, _aclNames, _aclValues, and SketcherExample::f.
| ColorLegend::ColorLegend | ( | const ColorLegend & | rclCL | ) |
Definition at line 334 of file ColorModel.cpp.
| virtual App::ColorLegend::~ColorLegend | ( | ) | [inline, virtual] |
Definition at line 321 of file ColorModel.h.
| bool ColorLegend::addMax | ( | const std::string & | rclName | ) |
Definition at line 417 of file ColorModel.cpp.
References _aclColorFields, _aclNames, _aclValues, App::Color::b, SketcherExample::f, App::Color::g, and App::Color::r.
| bool ColorLegend::addMin | ( | const std::string & | rclName | ) |
Definition at line 402 of file ColorModel.cpp.
References _aclColorFields, _aclNames, _aclValues, App::Color::b, App::Color::g, and App::Color::r.
Referenced by resize().
| Color App::ColorLegend::getColor | ( | float | fVal | ) | const [inline] |
Definition at line 358 of file ColorModel.h.
References _aclColorFields, _aclValues, _bOutsideGrayed, and SketcherExample::f.
| Color ColorLegend::getColor | ( | unsigned long | ulPos | ) | const |
Definition at line 379 of file ColorModel.cpp.
References _aclColorFields.
Referenced by getPackedColor().
| unsigned short App::ColorLegend::getColorIndex | ( | float | fVal | ) | const [inline] |
Definition at line 383 of file ColorModel.h.
References _aclColorFields, and _aclValues.
| float App::ColorLegend::getMaxValue | ( | void | ) | const [inline] |
Definition at line 405 of file ColorModel.h.
References _aclValues.
| float App::ColorLegend::getMinValue | ( | void | ) | const [inline] |
Definition at line 400 of file ColorModel.h.
References _aclValues.
| uint32_t ColorLegend::getPackedColor | ( | unsigned long | ulPos | ) | const |
Definition at line 388 of file ColorModel.cpp.
References getColor(), and App::Color::getPackedValue().
| std::string ColorLegend::getText | ( | unsigned long | ulPos | ) | const |
Definition at line 394 of file ColorModel.cpp.
References _aclNames.
| float ColorLegend::getValue | ( | unsigned long | ulPos | ) | const |
Definition at line 360 of file ColorModel.cpp.
References _aclValues.
| unsigned long App::ColorLegend::hasNumberOfFields | ( | void | ) | const [inline] |
Definition at line 342 of file ColorModel.h.
| bool App::ColorLegend::isOutsideGrayed | ( | void | ) | const [inline] |
Definition at line 344 of file ColorModel.h.
| bool App::ColorLegend::operator!= | ( | const ColorLegend & | rclCL | ) | const [inline] |
Definition at line 325 of file ColorModel.h.
| ColorLegend & ColorLegend::operator= | ( | const ColorLegend & | rclCL | ) |
Definition at line 339 of file ColorModel.cpp.
References _aclColorFields, _aclNames, _aclValues, and _bOutsideGrayed.
| bool ColorLegend::operator== | ( | const ColorLegend & | rclCL | ) | const |
Definition at line 349 of file ColorModel.cpp.
References _aclColorFields, _aclNames, _aclValues, and _bOutsideGrayed.
| bool ColorLegend::remove | ( | unsigned long | ulPos | ) |
Definition at line 432 of file ColorModel.cpp.
References _aclColorFields, _aclNames, and _aclValues.
| void ColorLegend::removeFirst | ( | void | ) |
Definition at line 446 of file ColorModel.cpp.
References _aclColorFields, _aclNames, and _aclValues.
| void ColorLegend::removeLast | ( | void | ) |
Definition at line 456 of file ColorModel.cpp.
References _aclColorFields, _aclNames, and _aclValues.
Referenced by resize().
| void ColorLegend::resize | ( | unsigned long | ulN | ) |
Definition at line 466 of file ColorModel.cpp.
References _aclColorFields, addMin(), k, and removeLast().
| bool ColorLegend::setColor | ( | unsigned long | ulPos, | |
| unsigned long | ulColor | |||
| ) |
Definition at line 497 of file ColorModel.cpp.
References setColor().
| bool ColorLegend::setColor | ( | unsigned long | ulPos, | |
| float | ucRed, | |||
| float | ucGreen, | |||
| float | ucBlue | |||
| ) |
Definition at line 485 of file ColorModel.cpp.
References _aclColorFields, and _aclNames.
Referenced by setColor().
| void App::ColorLegend::setOutsideGrayed | ( | bool | bOS | ) | [inline] |
Definition at line 343 of file ColorModel.h.
| bool ColorLegend::setText | ( | unsigned long | ulPos, | |
| const std::string & | rclName | |||
| ) |
Definition at line 505 of file ColorModel.cpp.
References _aclNames.
| bool ColorLegend::setValue | ( | unsigned long | ulPos, | |
| float | fVal | |||
| ) |
Definition at line 368 of file ColorModel.cpp.
References _aclValues.
std::deque<Color> App::ColorLegend::_aclColorFields [protected] |
Definition at line 352 of file ColorModel.h.
Referenced by addMax(), addMin(), ColorLegend(), getColor(), getColorIndex(), operator=(), operator==(), remove(), removeFirst(), removeLast(), resize(), and setColor().
std::deque<std::string> App::ColorLegend::_aclNames [protected] |
Definition at line 353 of file ColorModel.h.
Referenced by addMax(), addMin(), ColorLegend(), getText(), operator=(), operator==(), remove(), removeFirst(), removeLast(), setColor(), and setText().
std::deque<float> App::ColorLegend::_aclValues [protected] |
Definition at line 354 of file ColorModel.h.
Referenced by addMax(), addMin(), ColorLegend(), getColor(), getColorIndex(), getMaxValue(), getMinValue(), getValue(), operator=(), operator==(), remove(), removeFirst(), removeLast(), and setValue().
bool App::ColorLegend::_bOutsideGrayed [protected] |
Definition at line 355 of file ColorModel.h.
Referenced by getColor(), operator=(), and operator==().
1.6.1