| Hosted by: |
OpenMBV C++ Interface |
BerliOS Project Page |
Abstract base class for all dynamically colored bodies. More...
#include <dynamiccoloredbody.h>
Public Member Functions | |
| void | setMinimalColorValue (double min) |
| Set the minimal color value. | |
| double | getMinimalColorValue () |
| void | setMaximalColorValue (double max) |
| Set the maximal color value. | |
| double | getMaximalColorValue () |
| void | setDynamicColor (const double col) |
| Set the color for the body dynamically. | |
| double | getDynamicColor () |
| void | setDiffuseColor (const std::vector< double > &hsv) |
| Set the diffuse color of the body (HSV values from 0 to 1). | |
| void | setDiffuseColor (double h, double s, double v) |
| std::vector< double > | getDiffuseColor () |
| void | setTransparency (double t) |
| Set the transparency of the body. | |
| double | getTransparency () |
| virtual void | initializeUsingXML (xercesc::DOMElement *element) |
| Initializes the time invariant part of the object using a XML node. | |
| xercesc::DOMElement * | writeXMLFile (xercesc::DOMNode *parent) |
Protected Attributes | |
| double | minimalColorValue |
| double | maximalColorValue |
| double | dynamicColor |
| std::vector< double > | diffuseColor |
| double | transparency |
Abstract base class for all dynamically colored bodies.
| void OpenMBV::DynamicColoredBody::setDiffuseColor | ( | const std::vector< double > & | hsv | ) | [inline] |
Set the diffuse color of the body (HSV values from 0 to 1).
If the hue is less then 0 (default = -1) then the dynamic color from the append routine is used as hue value.
| void OpenMBV::DynamicColoredBody::setDynamicColor | ( | const double | col | ) | [inline] |
Set the color for the body dynamically.
If this value is set, the color given to the append function (as last element of the data row) is overwritten with this value.
| void OpenMBV::DynamicColoredBody::setMaximalColorValue | ( | double | max | ) | [inline] |
Set the maximal color value.
See also minimalColorValue
| void OpenMBV::DynamicColoredBody::setMinimalColorValue | ( | double | min | ) | [inline] |
Set the minimal color value.
The color value of the body in linearly mapped between minimalColorValue and maximalColorValue to blue(minimal) over cyan, green, yellow to red(maximal).
| void OpenMBV::DynamicColoredBody::setTransparency | ( | double | t | ) | [inline] |
Set the transparency of the body.
1.8.0