$search
#include <octonode.h>
Public Member Functions | |
unsigned char & | a () |
unsigned char | a () const |
unsigned char & | b () |
unsigned char | b () const |
bool | createChild (unsigned int i) |
EModelTreeNode () | |
void | expandNode () |
unsigned char & | g () |
unsigned char | g () const |
const EModelTreeNode * | getChild (unsigned int i) const |
EModelTreeNode * | getChild (unsigned int i) |
bool | isColorSet () const |
bool | pruneNode () |
unsigned char & | r () |
Get color components - reference version. | |
unsigned char | r () const |
Get color components. | |
std::istream & | readValue (std::istream &s) |
void | setAverageChildColor () |
void | setColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255) |
Set color components. | |
void | updateColorChildren () |
std::ostream & | writeValue (std::ostream &s) const |
~EModelTreeNode () | |
Protected Attributes | |
unsigned char | m_a |
unsigned char | m_b |
unsigned char | m_g |
unsigned char | m_r |
Color data. |
Nodes to be used in a environment model server.
Definition at line 38 of file octonode.h.
srs_env_model::EModelTreeNode::EModelTreeNode | ( | ) |
Constructor
Definition at line 35 of file octonode.cpp.
srs_env_model::EModelTreeNode::~EModelTreeNode | ( | ) |
Destructor
Definition at line 43 of file octonode.cpp.
unsigned char& srs_env_model::EModelTreeNode::a | ( | ) | [inline] |
Definition at line 81 of file octonode.h.
unsigned char srs_env_model::EModelTreeNode::a | ( | ) | const [inline] |
Definition at line 67 of file octonode.h.
unsigned char& srs_env_model::EModelTreeNode::b | ( | ) | [inline] |
Definition at line 78 of file octonode.h.
unsigned char srs_env_model::EModelTreeNode::b | ( | ) | const [inline] |
Definition at line 64 of file octonode.h.
bool srs_env_model::EModelTreeNode::createChild | ( | unsigned int | i | ) |
Create child
Definition at line 50 of file octonode.cpp.
void srs_env_model::EModelTreeNode::expandNode | ( | ) |
Definition at line 81 of file octonode.cpp.
unsigned char& srs_env_model::EModelTreeNode::g | ( | ) | [inline] |
Definition at line 75 of file octonode.h.
unsigned char srs_env_model::EModelTreeNode::g | ( | ) | const [inline] |
Definition at line 61 of file octonode.h.
const EModelTreeNode* srs_env_model::EModelTreeNode::getChild | ( | unsigned int | i | ) | const [inline] |
Definition at line 52 of file octonode.h.
EModelTreeNode* srs_env_model::EModelTreeNode::getChild | ( | unsigned int | i | ) | [inline] |
Definition at line 49 of file octonode.h.
bool srs_env_model::EModelTreeNode::isColorSet | ( | ) | const [inline] |
Definition at line 95 of file octonode.h.
bool srs_env_model::EModelTreeNode::pruneNode | ( | ) |
Definition at line 62 of file octonode.cpp.
unsigned char& srs_env_model::EModelTreeNode::r | ( | ) | [inline] |
Get color components - reference version.
Definition at line 72 of file octonode.h.
unsigned char srs_env_model::EModelTreeNode::r | ( | ) | const [inline] |
Get color components.
Definition at line 58 of file octonode.h.
std::istream & srs_env_model::EModelTreeNode::readValue | ( | std::istream & | s | ) |
Read node from binary stream (incl. float value), recursively continue with all children.
s |
Definition at line 129 of file octonode.cpp.
void srs_env_model::EModelTreeNode::setAverageChildColor | ( | ) |
Definition at line 92 of file octonode.cpp.
void srs_env_model::EModelTreeNode::setColor | ( | unsigned char | r, | |
unsigned char | g, | |||
unsigned char | b, | |||
unsigned char | a = 255 | |||
) | [inline] |
Set color components.
Definition at line 86 of file octonode.h.
void srs_env_model::EModelTreeNode::updateColorChildren | ( | ) |
Definition at line 58 of file octonode.cpp.
std::ostream & srs_env_model::EModelTreeNode::writeValue | ( | std::ostream & | s | ) | const |
Write node to binary stream (incl float value), recursively continue with all children. This preserves the complete state of the node.
s |
Definition at line 168 of file octonode.cpp.
unsigned char srs_env_model::EModelTreeNode::m_a [protected] |
Definition at line 132 of file octonode.h.
unsigned char srs_env_model::EModelTreeNode::m_b [protected] |
Definition at line 132 of file octonode.h.
unsigned char srs_env_model::EModelTreeNode::m_g [protected] |
Definition at line 132 of file octonode.h.
unsigned char srs_env_model::EModelTreeNode::m_r [protected] |
Color data.
Definition at line 132 of file octonode.h.