Studierstube Documentation Project

   Main Page       Modules       Class Hierarchy       Alphabetical List       Compound List       File List       Compound Members       Related Pages   

SoBuildBotanicAction Class Reference
[BotanicVis]

reorganises a hierarchical structure consisting of SoTreeNode's and SoTreeLeaf's into a botanical hierachical structure consisting of SoBotanicalBranch'es and SoBotanicalFruit's. More...

#include <SoBuildBotanicAction.h>

List of all members.

Public Methods

 SoBuildBotanicAction ()
virtual ~SoBuildBotanicAction ()
SoSeparator * getGeometry () const
void setNumBranches (int num)

Static Public Methods

void initClass ()

Protected Methods

virtual void beginTraversal (SoNode *node)

Private Methods

 SO_ACTION_HEADER (SoBuildBotanicAction)

Static Private Methods

void callDoAction (SoAction *, SoNode *)
void treeNodeAction (SoAction *, SoNode *)
void treeLeafAction (SoAction *, SoNode *)

Private Attributes

SoSeparator * treeLayout
int numBranches
SoBotanicalBranchcurBranch
SoNodeKitListPart * curBranchList
bool first


Detailed Description

reorganises a hierarchical structure consisting of SoTreeNode's and SoTreeLeaf's into a botanical hierachical structure consisting of SoBotanicalBranch'es and SoBotanicalFruit's.

This action is thus only responsible for determing the structure of the botanical tree and doesn't calculate any transformations of its elements.


Constructor & Destructor Documentation

SoBuildBotanicAction::SoBuildBotanicAction  
 

constructor

SoBuildBotanicAction::~SoBuildBotanicAction   [virtual]
 

destructor


Member Function Documentation

void SoBuildBotanicAction::beginTraversal SoNode *    node [protected, virtual]
 

is called before traversal of the scenegraph

void SoBuildBotanicAction::callDoAction SoAction *   ,
SoNode *   
[static, private]
 

function that is called for nodes that perform a default action behaviour e.g.separators

SoSeparator* SoBuildBotanicAction::getGeometry   const [inline]
 

returns the structure of the botanical tree

void SoBuildBotanicAction::initClass   [static]
 

inventor class initialisation

void SoBuildBotanicAction::setNumBranches int    num [inline]
 

sets the number of branching connections to num

SoBuildBotanicAction::SO_ACTION_HEADER SoBuildBotanicAction    [private]
 

void SoBuildBotanicAction::treeLeafAction SoAction *   ,
SoNode *   
[static, private]
 

function that is called for nodes of type SoTreeLeaf

void SoBuildBotanicAction::treeNodeAction SoAction *   ,
SoNode *   
[static, private]
 

function that is called for nodes of type SoTreeNode


Member Data Documentation

SoBotanicalBranch* SoBuildBotanicAction::curBranch [private]
 

pointer to the branch where the next child should be added

SoNodeKitListPart* SoBuildBotanicAction::curBranchList [private]
 

pointer to the node list of the branch where the next child should be added

bool SoBuildBotanicAction::first [private]
 

if TRUE the current node that is traversed is the root node

int SoBuildBotanicAction::numBranches [private]
 

number of branching connections leaving one branch

SoSeparator* SoBuildBotanicAction::treeLayout [private]
 

contains the new structure of the botanical tree


The documentation for this class was generated from the following files:
 This page was generated at Sat Jun 26 21:29:49 2004 for BotanicVis by Doxygen.
 If you have any comments, please send a message to schmalstieg@ims.tuwien.ac.at.
www.studierstube.org