Public Member Functions | Protected Attributes
srs_env_model::EModelTreeNode Class Reference

#include <octonode.h>

List of all members.

Public Member Functions

unsigned char a () const
unsigned char & a ()
unsigned char b () const
unsigned char & b ()
bool createChild (unsigned int i)
 EModelTreeNode ()
void expandNode ()
unsigned char g () const
unsigned char & g ()
EModelTreeNodegetChild (unsigned int i)
const EModelTreeNodegetChild (unsigned int i) const
bool isColorSet () const
bool pruneNode ()
unsigned char r () const
 Get color components.
unsigned char & r ()
 Get color components - reference version.
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.

Detailed Description

Nodes to be used in a environment model server.

Definition at line 40 of file octonode.h.


Constructor & Destructor Documentation

Constructor

Definition at line 35 of file octonode.cpp.

Destructor

Definition at line 43 of file octonode.cpp.


Member Function Documentation

unsigned char srs_env_model::EModelTreeNode::a ( ) const [inline]

Definition at line 75 of file octonode.h.

unsigned char& srs_env_model::EModelTreeNode::a ( ) [inline]

Definition at line 89 of file octonode.h.

unsigned char srs_env_model::EModelTreeNode::b ( ) const [inline]

Definition at line 72 of file octonode.h.

unsigned char& srs_env_model::EModelTreeNode::b ( ) [inline]

Definition at line 86 of file octonode.h.

Create child

Definition at line 50 of file octonode.cpp.

Definition at line 81 of file octonode.cpp.

unsigned char srs_env_model::EModelTreeNode::g ( ) const [inline]

Definition at line 69 of file octonode.h.

unsigned char& srs_env_model::EModelTreeNode::g ( ) [inline]

Definition at line 83 of file octonode.h.

Definition at line 57 of file octonode.h.

const EModelTreeNode* srs_env_model::EModelTreeNode::getChild ( unsigned int  i) const [inline]

Definition at line 60 of file octonode.h.

Definition at line 103 of file octonode.h.

Definition at line 62 of file octonode.cpp.

unsigned char srs_env_model::EModelTreeNode::r ( ) const [inline]

Get color components.

Definition at line 66 of file octonode.h.

unsigned char& srs_env_model::EModelTreeNode::r ( ) [inline]

Get color components - reference version.

Definition at line 80 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.

Parameters:
s
Returns:

Definition at line 129 of file octonode.cpp.

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 94 of file octonode.h.

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.

Parameters:
s
Returns:

Definition at line 168 of file octonode.cpp.


Member Data Documentation

unsigned char srs_env_model::EModelTreeNode::m_a [protected]

Definition at line 140 of file octonode.h.

unsigned char srs_env_model::EModelTreeNode::m_b [protected]

Definition at line 140 of file octonode.h.

unsigned char srs_env_model::EModelTreeNode::m_g [protected]

Definition at line 140 of file octonode.h.

unsigned char srs_env_model::EModelTreeNode::m_r [protected]

Color data.

Definition at line 140 of file octonode.h.


The documentation for this class was generated from the following files:


srs_env_model
Author(s): Vit Stancl (stancl@fit.vutbr.cz), Tomas Lokaj, Jan Gorig, Michal Spanel (spanel@fit.vutbr.cz)
autogenerated on Sun Jan 5 2014 11:50:51