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

#include <rectangle.h>

Inheritance diagram for AP_LSystem::Rectangle:
AP_LSystem::MovingTurtle AP_LSystem::AbstractTurtle

Public Member Functions

 Rectangle (void)
 
 ~Rectangle (void)
 
virtual int drawStep (double dist)
 
virtual int initialize ()
 
virtual int finalize ()
 
- Public Member Functions inherited from AP_LSystem::MovingTurtle
virtual int turnLeft (std::vector< Parameter > &p)
 
virtual int turnRight (std::vector< Parameter > &p)
 
virtual int pitchDown (std::vector< Parameter > &p)
 
virtual int pitchUp (std::vector< Parameter > &p)
 
virtual int rollLeft (std::vector< Parameter > &p)
 
virtual int rollRight (std::vector< Parameter > &p)
 
virtual int turnArround ()
 
virtual int rollArround ()
 
virtual int rollUntilHorizontal ()
 
virtual int randomTurnPitchRoll (std::vector< Parameter > &p)
 
virtual int multiplyLength (std::vector< Parameter > &p)
 
virtual int multiplyRadius (std::vector< Parameter > &p)
 
virtual int multiplyAngle (std::vector< Parameter > &p)
 
virtual int multiplyTropismElasticity (std::vector< Parameter > &p)
 
virtual int multiplyGravitropismElasticity (std::vector< Parameter > &p)
 
virtual int drawForward (std::vector< Parameter > &p)
 
virtual int drawForwardHalf ()
 
virtual int moveForward (std::vector< Parameter > &p)
 
virtual int moveForwardHalf ()
 
- Public Member Functions inherited from AP_LSystem::AbstractTurtle
virtual int resetValues ()
 
TurtlePropertiesgetProperties ()
 
virtual void setProperties (TurtleProperties p)
 
virtual void inheritProperties (TurtleProperties p)
 
void bindGeode (LSGeode *geode)
 
LSGeodegetGeode ()
 
osg::Matrixd getMatrix ()
 
virtual void drawVector (const osg::Vec3d &vector, osg::Matrixd &matrix, osg::Vec4d &color)
 
double toRad (double angle)
 
double rand (double angle)
 

Additional Inherited Members

- Protected Member Functions inherited from AP_LSystem::MovingTurtle
virtual int makeRotate (osg::Quat &)
 
virtual int preRotate ()
 
virtual int postRotate ()
 
virtual int doStep (double dist)
 
virtual int preStep ()
 
virtual int postStep ()
 
virtual void drawFrame (osg::Matrixd &, osg::Vec4d *=NULL)
 
virtual void adjustMatrices ()
 
- Protected Attributes inherited from AP_LSystem::AbstractTurtle
TurtleProperties properties
 properties of turtle is used for getting parameters for generation of geometry More...
 
LSGeodegeode
 all geometry generated by turtle is stored to this output geode More...
 

Detailed Description

Turtle for generating simple rectangles. Can be used for simple leaves.

Constructor & Destructor Documentation

APDYNAMICART::Rectangle::Rectangle ( void  )
inline

Rectangle class

AP_LSystem::Rectangle::~Rectangle ( void  )
inline

Member Function Documentation

int Rectangle::drawStep ( double  dist)
virtual

Draw one rectangle.

Reimplemented from AP_LSystem::MovingTurtle.

virtual int AP_LSystem::Rectangle::finalize ( )
inlinevirtual

Process a finalization of turtle. This method is called when turtle is removed from the stack.

Returns
error code

Reimplemented from AP_LSystem::AbstractTurtle.

virtual int AP_LSystem::Rectangle::initialize ( void  )
inlinevirtual

Process an initialization of turtle. This method is called when turtle is pushed onto the stack.

Returns
error code

Reimplemented from AP_LSystem::AbstractTurtle.


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