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

#include <jointedpipe.h>

Inheritance diagram for AP_LSystem::JointedPipe:
AP_LSystem::LoftTurtle AP_LSystem::MovingTurtle AP_LSystem::AbstractTurtle

Public Member Functions

 JointedPipe (void)
 
 ~JointedPipe (void)
 
virtual int initialize ()
 
virtual int preStep ()
 
virtual int postStep ()
 
- Public Member Functions inherited from AP_LSystem::LoftTurtle
 LoftTurtle (void)
 
 ~LoftTurtle (void)
 
- 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 finalize ()
 
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::LoftTurtle
virtual int drawStep (double dist)
 
void createCircleContour ()
 
virtual int addContourLoftGeometry ()
 
virtual int createLoftGeometryOpening ()
 
virtual int insideStep ()
 
- 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 that creates cylinders with hemispheres at the end of cylinders. This creates a geometry that is useful for creating stems or some anorganic structures.

Constructor & Destructor Documentation

JointedPipe::JointedPipe ( void  )
JointedPipe::~JointedPipe ( void  )

Member Function Documentation

int JointedPipe::initialize ( void  )
virtual

Initialize turtle: create a contour and hemisphere template.

Returns
error code

Reimplemented from AP_LSystem::AbstractTurtle.

int JointedPipe::postStep ( )
virtual

Create a top contour of cylinder, create cylinder geometry and append hemisphere.

Returns
error code

Reimplemented from AP_LSystem::MovingTurtle.

int JointedPipe::preStep ( )
virtual

Create a bottom contour of cylinder.

Returns
error code

Reimplemented from AP_LSystem::MovingTurtle.


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