| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrendered3D.Tree3D11
public class Tree3D11
| Field Summary | |
|---|---|
|  boolean | fancy_graphicsfancy ( slow ) draw or fast ( ugly ) draw ? | 
|  TreeForm[] | formPattern for generating the tree | 
|  int | initial_colorThe initial color of the tree | 
|  java.awt.Point | locationThe x,y location of the base of the trunk of the tree | 
|  short[][] | root{short[] start, short[] end} points of the root | 
|  float[][] | XThe Post-rendering transformations applied during drawing, transformations applied like : [Y][X][Z][S], Y should be a Y axis rotation X "" Z "" S should be a scaling transformation | 
|  float[][] | YThe Post-rendering transformations applied during drawing, transformations applied like : [Y][X][Z][S], Y should be a Y axis rotation X "" Z "" S should be a scaling transformation | 
| Constructor Summary | |
|---|---|
| Tree3D11(int min_tree_depth,
         int max_tree_depth,
         short[][] tree_root,
         int tree_color,
         TreeForm[] tree_form,
         java.awt.Point tree_location,
         DoubleBuffer b)Creates a new instance of FastTree | |
| Method Summary | |
|---|---|
|  boolean | is_active()Returns weather the tree is active | 
| static short[] | multiply_3x3_point(float[][] A,
                   short[] P)Matrix multiplication simplified for linear transformation of low percision 3D points of small value | 
| static short[] | multiply_3x3_point(float[][] A,
                   short[] P,
                   short[] result)Matrix multiplication simplified for linear transformation of low percision 3D points of small value | 
|  void | render()re-render the tree with a new tree form by applying the tree form transformations to this data set, rather than recursing through the tree and recalculating all the branching angles | 
| static short[] | scale_point(short[] P,
            double dr) | 
|  void | set_active(boolean a)This sets weather the tree is active or not. | 
|  void | set_fancy_graphics(boolean anti_alias_tree) | 
|  int | set_initial_color(int col) | 
|  boolean | toggle_fancy_graphics() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public short[][] root
public int initial_color
public TreeForm[] form
public java.awt.Point location
public float[][] X
public float[][] Y
public boolean fancy_graphics
| Constructor Detail | 
|---|
public Tree3D11(int min_tree_depth,
                int max_tree_depth,
                short[][] tree_root,
                int tree_color,
                TreeForm[] tree_form,
                java.awt.Point tree_location,
                DoubleBuffer b)
min_tree_depth - max_tree_depth - tree_root - tree_color - tree_form - b - tree_location - | Method Detail | 
|---|
public void set_active(boolean a)
a - public boolean is_active()
public boolean toggle_fancy_graphics()
public void set_fancy_graphics(boolean anti_alias_tree)
anti_alias_tree - public void render()
public int set_initial_color(int col)
col - 
public static short[] multiply_3x3_point(float[][] A,
                                         short[] P)
A - P - 
public static short[] multiply_3x3_point(float[][] A,
                                         short[] P,
                                         short[] result)
A - P - result - 
public static short[] scale_point(short[] P,
                                  double dr)
P - dr - 
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||