vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AP_LSystem::LSGeode Class Reference

#include <lsgeode.h>

Inheritance diagram for AP_LSystem::LSGeode:

Public Member Functions

void setTurtleType (const std::string &type)
 
void setTurtleType (TurtleType type)
 
TurtleType getTurtleType ()
 
void setDefaultTurtleProperties (TurtleProperties &p)
 
void setDefaultTurtleProperties (int index)
 
TurtlePropertiesgetDefaultTurtleProperties ()
 
 LSGeode (unsigned int index)
 

Detailed Description

OSG geometric node with added

  • capability to configure node properties from Configuration
  • storing of turtle type that will be used to generate geometry

Constructor & Destructor Documentation

LSGeode::LSGeode ( unsigned int  index)

LSGeode can be created only by this constructor. It uses unique L-system ID to configure this LSGeode as geode for storing geometry of this L-system.

Parameters
indexL-system ID

Member Function Documentation

TurtleProperties & LSGeode::getDefaultTurtleProperties ( )

Get default properties

Returns
default properties
TurtleType LSGeode::getTurtleType ( )

Get turtle type.

Returns
assigned turtle type
void LSGeode::setDefaultTurtleProperties ( TurtleProperties p)

Set the default properties by copying another properties

Parameters
pThis properties are copied
void LSGeode::setDefaultTurtleProperties ( int  index)

Set the default properties by gathering info about L-system from Configuration.

Parameters
indexunique L-system ID
void LSGeode::setTurtleType ( const std::string &  type)

Set turtle type.

Parameters
typestring is converted to turtle type and assigned to this LSGeode instance
void LSGeode::setTurtleType ( TurtleType  type)

Set turtle type.

Parameters
typethis type is assigned to this LSGeode instance

The documentation for this class was generated from the following files: