|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rendered3D.Tree3D
public class Tree3D
Field Summary | |
---|---|
boolean |
fancy_graphics
fancy ( slow ) draw or fast ( ugly ) draw ? |
TreeForm[] |
form
Pattern for generating the tree |
int |
initial_color
The initial color of the tree |
java.awt.Point |
location
The x,y location of the base of the trunk of the tree |
float[][] |
root
{float[] start, float[] end} points of the root |
float[][] |
X
The 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[][] |
Y
The 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 | |
---|---|
Tree3D(int min_tree_depth,
int max_tree_depth,
float[][] 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 float[] |
multiply_3x3_point(float[][] A,
float[] P)
Matrix multiplication simplified for linear transformation of low percision 3D points of small value |
static float[] |
multiply_3x3_point(float[][] A,
float[] P,
float[] 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 float[] |
scale_point(float[] 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 float[][] 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 Tree3D(int min_tree_depth, int max_tree_depth, float[][] tree_root, int tree_color, TreeForm[] tree_form, java.awt.Point tree_location, DoubleBuffer b)
min_tree_depth
- max_tree_depth
- b
- tree_root
- tree_form
- tree_color
- 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 float[] multiply_3x3_point(float[][] A, float[] P)
A
- P
-
public static float[] multiply_3x3_point(float[][] A, float[] P, float[] result)
A
- P
- result
-
public static float[] scale_point(float[] P, double dr)
P
- dr
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |