| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/environment/greenspacecomposite.h>

Public Member Functions | |
| GreenSpaceComposite (double alphaTestValue=0.5, double distance=100.0) | |
| constructs an empty GreenSpaceComposite the specified 'alphaTestValue' and 'distance' parameters will override the values set in the contained greenspaces. | |
| void | setAlphaTestValue (double alphaTestValue) |
| get/set the alphatest value | |
| double | getAlphaTestValue () const |
| void | setDisplayDistance (double distance) |
| get/set the display distance | |
| double | getDisplayDistance () const |
| void | applyChanges (bool rebuildAll=false) |
| appending, removing or changing GreenSpace-data will not take place immediately. | |
| bool | getRebuildAll () const |
| returns the value of 'rebuildAll' at the last applyChanges()-call. | |
| void | append (VRS::SO< GreenSpace > greenspace) |
| appends a new GreenSpace-object. | |
| GreenSpace * | remove (unsigned int index) |
| removes the given GreenSpace or a GreenSpace at the given position. | |
| bool | remove (VRS::SO< GreenSpace > gs) |
| void | clear () |
| removes all GreenSpaces from the composite | |
| VRS::SO< VRS::Iterator < VRS::SO< GreenSpace > > > | getGreenSpaces () const |
| returns an iterator containing all GreenSpaces in the composite | |
| unsigned int | size () const |
| returns the number of GreenSpaces | |
| VRS::SO< GreenSpace > | component (unsigned int index) const |
| returns the GreenSpace at the given index. | |
| VRS::Bounds | boundingBox () const |
| returns the combined boundingbox of all contained GreenSpaces. | |
| bool | needsUpdate () const |
| needed by the painter. never call these methods. | |
| void | setBoundingBox (const VRS::Bounds &bounds) |
| VRS_TYPEINFO (GreenSpaceComposite, VRS::Shape) | |
| VRS_SERIALIZABLE (GreenSpaceComposite) | |
| EnvironmentRenderer::GreenSpaceComposite::GreenSpaceComposite | ( | double | alphaTestValue = 0.5, |
|
| double | distance = 100.0 | |||
| ) |
constructs an empty GreenSpaceComposite the specified 'alphaTestValue' and 'distance' parameters will override the values set in the contained greenspaces.
| void EnvironmentRenderer::GreenSpaceComposite::setAlphaTestValue | ( | double | alphaTestValue | ) |
get/set the alphatest value
| double EnvironmentRenderer::GreenSpaceComposite::getAlphaTestValue | ( | ) | const [inline] |
| void EnvironmentRenderer::GreenSpaceComposite::setDisplayDistance | ( | double | distance | ) |
get/set the display distance
| double EnvironmentRenderer::GreenSpaceComposite::getDisplayDistance | ( | ) | const [inline] |
| void EnvironmentRenderer::GreenSpaceComposite::applyChanges | ( | bool | rebuildAll = false |
) |
appending, removing or changing GreenSpace-data will not take place immediately.
it is triggered by calling applyChanges() and performed at the next scenegraph-evaluation. 'rebuildAll' set to true will cause an update of all contained GreenSpaces, no matter, whether they were modified or not. the default behavior (rebuildAll == false) will update only those GreenSpaces that were changed since the last call of applyChanges(). in case the used set of grass-textures changed (new textures were introduded or old textures were removed) this can alter the textures' alignment in the textureatlas. this may result in invalidly textured tussocks (e.g. a tussock accesses empty space inside the textureatlas, hence becomes invisible or the texturecoordinates include multiple textures inside the atlas). to avoid those problems, rebuild the whole GSComposite (rebuildAll = true).
| bool EnvironmentRenderer::GreenSpaceComposite::getRebuildAll | ( | ) | const [inline] |
returns the value of 'rebuildAll' at the last applyChanges()-call.
| void EnvironmentRenderer::GreenSpaceComposite::append | ( | VRS::SO< GreenSpace > | greenspace | ) |
appends a new GreenSpace-object.
| GreenSpace* EnvironmentRenderer::GreenSpaceComposite::remove | ( | unsigned int | index | ) |
removes the given GreenSpace or a GreenSpace at the given position.
| bool EnvironmentRenderer::GreenSpaceComposite::remove | ( | VRS::SO< GreenSpace > | gs | ) |
| void EnvironmentRenderer::GreenSpaceComposite::clear | ( | ) |
removes all GreenSpaces from the composite
| VRS::SO<VRS::Iterator<VRS::SO<GreenSpace> > > EnvironmentRenderer::GreenSpaceComposite::getGreenSpaces | ( | ) | const |
returns an iterator containing all GreenSpaces in the composite
| unsigned int EnvironmentRenderer::GreenSpaceComposite::size | ( | void | ) | const [inline] |
returns the number of GreenSpaces
| VRS::SO<GreenSpace> EnvironmentRenderer::GreenSpaceComposite::component | ( | unsigned int | index | ) | const |
returns the GreenSpace at the given index.
if index is greater than or equal to size(), it returns NULL.
| VRS::Bounds EnvironmentRenderer::GreenSpaceComposite::boundingBox | ( | ) | const [virtual] |
returns the combined boundingbox of all contained GreenSpaces.
changes to the contained GreenSpaces will not effect the bounding box until the geometry was updated using applyChanges().
Implements VRS::Shape.
| bool EnvironmentRenderer::GreenSpaceComposite::needsUpdate | ( | ) | const |
needed by the painter. never call these methods.
| void EnvironmentRenderer::GreenSpaceComposite::setBoundingBox | ( | const VRS::Bounds & | bounds | ) | [inline] |
| EnvironmentRenderer::GreenSpaceComposite::VRS_TYPEINFO | ( | GreenSpaceComposite | , | |
| VRS::Shape | ||||
| ) |
| EnvironmentRenderer::GreenSpaceComposite::VRS_SERIALIZABLE | ( | GreenSpaceComposite | ) |