Studierstube Documentation Project

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

SoBotanicalFruit Class Reference
[BotanicVis]

implements a fruit of a botanical tree. More...

#include <SoBotanicalFruit.h>

Inheritance diagram for SoBotanicalFruit:

SoBotanicalBase List of all members.

Public Methods

 SoBotanicalFruit ()
virtual SbBool setUpConnections (SbBool onOff, SbBool doItAlways=FALSE)
float getSize ()

Static Public Methods

void initClass ()

Protected Methods

virtual ~SoBotanicalFruit ()
virtual void resizeHeightCB ()
virtual void resizeThicknessCB ()

Static Protected Methods

void dataSensorCB (void *data, SoSensor *sen)

Protected Attributes

SoSFNode color
SoSFNode fruit
SoSFNode data
SoNodeSensor dataSensor
float size

Detailed Description

implements a fruit of a botanical tree.

Each fruit is represented by a SoSphere with variable radius and colour. A fruit corresponds to one or more SoTreeLeaf's where the radius is commuted by adding up the sizes of the SoTreeLeaf's.

CATALOG PARTS

All Parts
Part NamePart TypeDefault TypeNULL Default
translation SoTranslationSoTranslationNO
color SoMaterialSoMaterialNO
fruit SoSphereSoSphereNO
data SoNodeKitListPart---NO

Extra Information for List Parts from Above Table

Part NameContainer TypePossible Types
dataSoGroupSoTreeLeaf

File Format / defaults:

SoBotanicalFruit {

    # from SoBotanicalBase
    SoSFInt32 strands           0
    SoSFFloat lengthOfBranch    10.0

}


Constructor & Destructor Documentation

SoBotanicalFruit::SoBotanicalFruit  
 

constructor

color part type SoMaterial n null by default FALSE n is public part TRUE fruit part type SoSphere n null by default FALSE n is public part TRUE data container Type SoGroup n null by default FALSE n may contain SoTreeLeaf n is public TRUE SoBotanicalFruit::~SoBotanicalFruit   [protected, virtual]
 

destructor


Member Function Documentation

void SoBotanicalFruit::dataSensorCB void *    data,
SoSensor *    sen
[static, protected]
 

adapts the geometry of the fruit using the information stored in "data"

float SoBotanicalFruit::getSize   [inline]
 

returns the size of this fruit

void SoBotanicalFruit::initClass   [static]
 

inventor class initialization

Reimplemented from SoBotanicalBase.

void SoBotanicalFruit::resizeHeightCB   [protected, virtual]
 

Reimplemented from SoBotanicalBase.

void SoBotanicalFruit::resizeThicknessCB   [protected, virtual]
 

Reimplemented from SoBotanicalBase.

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

sets the connections of the sensors

Reimplemented from SoBotanicalBase.


Member Data Documentation

SoSFNode SoBotanicalFruit::color [protected]
 

colour of the fruit

SoSFNode SoBotanicalFruit::data [protected]
 

list of the SoTreeLeaf's represented by this fruit

SoNodeSensor SoBotanicalFruit::dataSensor [protected]
 

SoSFNode SoBotanicalFruit::fruit [protected]
 

SoSphere representing the fruit.

float SoBotanicalFruit::size [protected]
 

size of this fruit.

Corresponds to a logarithmic value of the sum of the sizes of the leaves represented by this fruit


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