jjdh API

jjdh.opengl.meshes.common
Class FractalTree

java.lang.Object
  extended by jjdh.opengl.meshes.core.AbstractMesh
      extended by jjdh.opengl.meshes.core.DirectMesh
          extended by jjdh.opengl.meshes.common.FractalTree
All Implemented Interfaces:
Renderable, Mesh

public class FractalTree
extends DirectMesh


Field Summary
private  Mesh basicMesh
           
private  int branching
           
private  float initialHeight
           
private  int recursionDeep
           
private  float shrinkage
           
 
Fields inherited from class jjdh.opengl.meshes.core.AbstractMesh
material, position, rotation, scale
 
Constructor Summary
FractalTree()
           
FractalTree(float initialHeight)
           
FractalTree(float initialHeight, float shrinkage, int branching, int recursionDeep)
           
FractalTree(float initialHeight, int branching, int recursionDeep)
           
FractalTree(Random random, float initialHeight)
           
FractalTree(Random random, float initialHeight, float shrinkage, int branching, int recursionDeep)
           
FractalTree(Random random, float initialHeight, int branching, int recursionDeep)
           
 
Method Summary
protected  void privateRender(javax.media.opengl.GL gl)
          This method has to be overwritten by subcasses.
protected  void recursiveDraw(javax.media.opengl.GL gl, Mesh mesh, float height, int recursionDeep)
           
 
Methods inherited from class jjdh.opengl.meshes.core.DirectMesh
dispose
 
Methods inherited from class jjdh.opengl.meshes.core.AbstractMesh
applyMaterial, applyPosition, applyRotation, applyScaling, getMaterial, getPosition, move, render, rotate, setMaterial, setPosition, setRotation, setScale, toString, unApplyMaterial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

basicMesh

private Mesh basicMesh

initialHeight

private float initialHeight

shrinkage

private float shrinkage

branching

private int branching

recursionDeep

private int recursionDeep
Constructor Detail

FractalTree

public FractalTree()

FractalTree

public FractalTree(float initialHeight)

FractalTree

public FractalTree(Random random,
                   float initialHeight)

FractalTree

public FractalTree(float initialHeight,
                   int branching,
                   int recursionDeep)

FractalTree

public FractalTree(Random random,
                   float initialHeight,
                   int branching,
                   int recursionDeep)

FractalTree

public FractalTree(float initialHeight,
                   float shrinkage,
                   int branching,
                   int recursionDeep)

FractalTree

public FractalTree(Random random,
                   float initialHeight,
                   float shrinkage,
                   int branching,
                   int recursionDeep)
Method Detail

privateRender

protected void privateRender(javax.media.opengl.GL gl)
Description copied from class: AbstractMesh
This method has to be overwritten by subcasses.

Specified by:
privateRender in class DirectMesh
Parameters:
gl - a OpenGL obejct

recursiveDraw

protected void recursiveDraw(javax.media.opengl.GL gl,
                             Mesh mesh,
                             float height,
                             int recursionDeep)

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.