$search

srs_env_model::EModelTreeNode Class Reference

#include <octonode.h>

List of all members.

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 EModelTreeNodegetChild (unsigned int i) const
EModelTreeNodegetChild (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.

Detailed Description

Nodes to be used in a environment model server.

Definition at line 38 of file octonode.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
s 
Returns:

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.

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 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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


srs_env_model
Author(s): Vit Stancl (stancl@fit.vutbr.cz), Tomas Lokaj, Jan Gorig, Michal Spanel (spanel@fit.vutbr.cz)
autogenerated on Tue Mar 5 14:34:12 2013