SoBotanicalFruit Class Reference
[BotanicVis]
implements a fruit of a botanical tree.
More...
#include <SoBotanicalFruit.h>
Inheritance diagram for SoBotanicalFruit:

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 Name | Part Type | Default Type | NULL Default |
| translation | SoTranslation | SoTranslation | NO |
| color | SoMaterial | SoMaterial | NO |
| fruit | SoSphere | SoSphere | NO |
| data | SoNodeKitListPart | --- | NO |
Extra Information for List Parts from Above Table
| Part Name | Container Type | Possible Types |
| data | SoGroup | SoTreeLeaf |
File Format / defaults:
SoBotanicalFruit {
# from SoBotanicalBase
SoSFInt32 strands 0
SoSFFloat lengthOfBranch 10.0
}
Constructor & Destructor Documentation
|
|
constructor
|
|
|
destructor
|
Member Function Documentation
|
||||||||||||
|
adapts the geometry of the fruit using the information stored in "data"
|
|
|
returns the size of this fruit
|
|
|
inventor class initialization
Reimplemented from SoBotanicalBase. |
|
|
Reimplemented from SoBotanicalBase. |
|
|
Reimplemented from SoBotanicalBase. |
|
||||||||||||
|
sets the connections of the sensors
Reimplemented from SoBotanicalBase. |
Member Data Documentation
|
|
colour of the fruit
|
|
|
list of the SoTreeLeaf's represented by this fruit
|
|
|
|
|
|
SoSphere representing the fruit.
|
|
|
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:
