Studierstube Documentation Project

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

SoBotanicalBase Class Reference
[BotanicVis]

base class for all elements of a botanical tree More...

#include <SoBotanicalBase.h>

Inheritance diagram for SoBotanicalBase:

SoBotanicalBranch SoBotanicalFruit List of all members.

Public Methods

 SoBotanicalBase ()
virtual SbBool setUpConnections (SbBool onOff, SbBool doItAlways=FALSE)

Static Public Methods

void initClass ()

Public Attributes

SoSFFloat lengthOfBranch
SoSFInt32 strands

Protected Methods

virtual ~SoBotanicalBase ()
virtual void resizeHeightCB ()
virtual void resizeThicknessCB ()

Static Protected Methods

void lengthOfBranchCB (void *, SoSensor *)
void strandsCB (void *, SoSensor *)

Protected Attributes

SoSFNode geometry
SoFieldSensor lengthOfBranchSensor
SoFieldSensor strandsSensor

Detailed Description

base class for all elements of a botanical tree

CATALOG PARTS

All Parts
Part NamePart TypeDefault TypeNULL Default
geometry SoSeparatorSoSeparatorYES

File Format / defaults:

  SoBotanicalBase {
      SoSFInt32 strands         0
      SoSFFloat lengthOfBranch  10.0
  }
  


Constructor & Destructor Documentation

SoBotanicalBase::SoBotanicalBase  
 

constructor

virtual SoBotanicalBase::~SoBotanicalBase   [protected, virtual]
 

destructor


Member Function Documentation

void SoBotanicalBase::initClass   [static]
 

Inventor class initialization.

Reimplemented in SoBotanicalBranch, and SoBotanicalFruit.

void SoBotanicalBase::lengthOfBranchCB void *   ,
SoSensor *   
[static, protected]
 

calls resizeHeightCB()

virtual void SoBotanicalBase::resizeHeightCB   [inline, protected, virtual]
 

Reimplemented in SoBotanicalBranch, and SoBotanicalFruit.

virtual void SoBotanicalBase::resizeThicknessCB   [inline, protected, virtual]
 

Reimplemented in SoBotanicalBranch, and SoBotanicalFruit.

virtual SbBool SoBotanicalBase::setUpConnections SbBool    onOff,
SbBool    doItAlways = FALSE
[virtual]
 

sets the connections of the sensors

Reimplemented in SoBotanicalBranch, and SoBotanicalFruit.

void SoBotanicalBase::strandsCB void *   ,
SoSensor *   
[static, protected]
 

calls strandsCB()


Member Data Documentation

SoSFNode SoBotanicalBase::geometry [protected]
 

contains the geometry of this element of the botanical tree

SoSFFloat SoBotanicalBase::lengthOfBranch
 

this field specifies the height of the cylinders representing the branches

SoFieldSensor SoBotanicalBase::lengthOfBranchSensor [protected]
 

sensor attached to the field "lengthOfBranches"

SoSFInt32 SoBotanicalBase::strands
 

in this field the number of strands of this element is stored.

The number of strands of one botanical branch equals the sum of strands of its subbranches. The number of strands of a fruit depends on the size of the leafs represented by this fruit

SoFieldSensor SoBotanicalBase::strandsSensor [protected]
 

sensor attached to the field "strands"


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