| 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 (const ScalarParameter min) |
| Set the minimal color value. | |
| double | getMinimalColorValue () |
| void | setMaximalColorValue (const ScalarParameter max) |
| Set the maximal color value. | |
| double | getMaximalColorValue () |
| void | setStaticColor (const ScalarParameter col) |
| Deprecated! Set a static color for the body. | |
| double | getStaticColor (bool internalDoNotUse=true) |
| Deprecated! | |
| void | setDynamicColor (const double col) |
| Set the color for the body dynamically. | |
| double | getDynamicColor () |
| void | setDiffuseColor (const VectorParameter &hsv) |
| Set the diffuse color of the body (HSV values from 0 to 1). | |
| void | setDiffuseColor (const std::vector< double > &hsv) |
| void | setDiffuseColor (double h, double s, double v) |
| std::vector< double > | getDiffuseColor () |
| void | setTransparency (ScalarParameter t) |
| Set the transparency of the body. | |
| double | getTransparency () |
| virtual void | initializeUsingXML (MBXMLUtils::TiXmlElement *element) |
| Initializes the time invariant part of the object using a XML node. | |
| MBXMLUtils::TiXmlElement * | writeXMLFile (MBXMLUtils::TiXmlNode *parent) |
Protected Attributes | |
| ScalarParameter | minimalColorValue |
| ScalarParameter | maximalColorValue |
| ScalarParameter | staticColor |
| double | dynamicColor |
| VectorParameter | diffuseColor |
| ScalarParameter | transparency |
Abstract base class for all dynamically colored bodies.
| void OpenMBV::DynamicColoredBody::setDiffuseColor | ( | const VectorParameter & | 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 | ( | const ScalarParameter | max | ) | [inline] |
Set the maximal color value.
See also minimalColorValue
| void OpenMBV::DynamicColoredBody::setMinimalColorValue | ( | const ScalarParameter | 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::setStaticColor | ( | const ScalarParameter | col | ) | [inline] |
Deprecated! Set a static color for the body.
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::setTransparency | ( | ScalarParameter | t | ) | [inline] |
Set the transparency of the body.
1.8.0