logo


perceptron
Class FractalMap

java.lang.Object
  extended by perceptron.FractalMap

public class FractalMap
extends java.lang.Object


Field Summary
 boolean auto_rotate
          Automatic rotation of the constant
static int IMAGE_RENDERER
static int IRROTATIONAL_RENDERER
static complex lower_right
static int ROTATIONAL_RENDERER
static complex size
          The upper left, lower right, and size of the rectangle in the complex plane
static complex upper_left
 
Constructor Summary
FractalMap(DoubleBuffer b, java.util.Vector<Mapping> maps, Perceptron parent)
          Creates a new instance of FractalMap
 
Method Summary
 complex get_constant()
          Returns a copy of the constant
 complex get_map(complex z)
          Applies the current mapping to the given parameter
 complex get_size()
          Returns a copy of the size of the complex plane area covered
 void inc_ortho()
 void inc_polar()
 void increment_accent(int n)
 void increment_colorfilter(int amount)
 void increment_fade_weight(int n)
 void increment_fader(int n)
 void increment_gradient_shape(int n)
 void increment_gradient(int amount)
 void increment_map(int n)
 int increment_noise(int amt)
 void increment_offscreen(int n)
 void increment_renderer(int n)
 void increment_visualiser(int n)
 boolean is_active()
          Returns weather this FractalMap is active.
 void load_map(Mapping map)
static Mapping makeMap(java.lang.String equ)
 void set_accent(int color_accent)
 void set_active(boolean active)
          Toggles active computation of the fractal map on and off
 void set_colorfilter(int index)
 void set_constant(float real, float imag)
          Sets the constant value
 void set_fader(int index)
 void set_gradient_param(float slope, float offset)
 void set_gradient_shape(int n)
 void set_gradient(int index)
 void set_input_color(int col)
          Set the input color
 void set_interpolation(boolean s)
 void set_map(int index)
 void set_norm_c(float x, float y)
          Sets the constant value given an x and y location on the screen
 void set_normalized_rotation(float x, float y)
          sets rotation parameter of map
 void set_offscreen(int index)
 void set_renderer(int index)
 void set_visualiser(int index)
 void setContrastParameters(int x, int y)
 void setMapping(java.lang.String s)
 void toggle_color_inversion()
 void toggle_gradient_switch()
 void toggle_interpolation()
 boolean toggle_noise()
 void update_color()
          update the default color
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

auto_rotate

public boolean auto_rotate
Automatic rotation of the constant


size

public static final complex size
The upper left, lower right, and size of the rectangle in the complex plane


upper_left

public static final complex upper_left

lower_right

public static final complex lower_right

ROTATIONAL_RENDERER

public static final int ROTATIONAL_RENDERER
See Also:
Constant Field Values

IRROTATIONAL_RENDERER

public static final int IRROTATIONAL_RENDERER
See Also:
Constant Field Values

IMAGE_RENDERER

public static final int IMAGE_RENDERER
See Also:
Constant Field Values
Constructor Detail

FractalMap

public FractalMap(DoubleBuffer b,
                  java.util.Vector<Mapping> maps,
                  Perceptron parent)
Creates a new instance of FractalMap

Parameters:
b -
maps -
parent -
Method Detail

inc_ortho

public void inc_ortho()

inc_polar

public void inc_polar()

load_map

public void load_map(Mapping map)
Parameters:
map -

toggle_color_inversion

public void toggle_color_inversion()

toggle_gradient_switch

public void toggle_gradient_switch()

toggle_interpolation

public void toggle_interpolation()

get_map

public complex get_map(complex z)
Applies the current mapping to the given parameter

Parameters:
z -
Returns:

get_constant

public complex get_constant()
Returns a copy of the constant

Returns:

get_size

public complex get_size()
Returns a copy of the size of the complex plane area covered

Returns:

is_active

public boolean is_active()
Returns weather this FractalMap is active.

Returns:

set_active

public void set_active(boolean active)
Toggles active computation of the fractal map on and off

Parameters:
active -

set_constant

public void set_constant(float real,
                         float imag)
Sets the constant value

Parameters:
real -
imag -

set_norm_c

public void set_norm_c(float x,
                       float y)
Sets the constant value given an x and y location on the screen

Parameters:
x -
y -

set_normalized_rotation

public void set_normalized_rotation(float x,
                                    float y)
sets rotation parameter of map

Parameters:
x -
y -

set_input_color

public void set_input_color(int col)
Set the input color

Parameters:
col -

increment_renderer

public void increment_renderer(int n)
Parameters:
n -

set_renderer

public void set_renderer(int index)
Parameters:
index -

increment_visualiser

public void increment_visualiser(int n)
Parameters:
n -

set_visualiser

public void set_visualiser(int index)
Parameters:
index -

increment_offscreen

public void increment_offscreen(int n)
Parameters:
n -

set_offscreen

public void set_offscreen(int index)
Parameters:
index -

increment_fader

public void increment_fader(int n)
Parameters:
n -

set_fader

public void set_fader(int index)
Parameters:
index -

increment_gradient

public void increment_gradient(int amount)
Parameters:
amount -

set_gradient

public void set_gradient(int index)
Parameters:
index -

increment_colorfilter

public void increment_colorfilter(int amount)
Parameters:
amount -

set_colorfilter

public void set_colorfilter(int index)
Parameters:
index -

increment_map

public void increment_map(int n)
Parameters:
n -

set_map

public void set_map(int index)
Parameters:
index -

increment_fade_weight

public void increment_fade_weight(int n)
Parameters:
n -

increment_accent

public void increment_accent(int n)
Parameters:
n -

setContrastParameters

public void setContrastParameters(int x,
                                  int y)
Parameters:
x -
y -

set_accent

public void set_accent(int color_accent)
Parameters:
color_accent -

set_interpolation

public void set_interpolation(boolean s)
Parameters:
s -

set_gradient_param

public void set_gradient_param(float slope,
                               float offset)
Parameters:
slope -
offset -

update_color

public void update_color()
update the default color


increment_noise

public int increment_noise(int amt)
Parameters:
amt -
Returns:

toggle_noise

public boolean toggle_noise()
Returns:

makeMap

public static Mapping makeMap(java.lang.String equ)
Parameters:
equ -
Returns:

setMapping

public void setMapping(java.lang.String s)
Parameters:
s -

increment_gradient_shape

public void increment_gradient_shape(int n)
Parameters:
n -

set_gradient_shape

public void set_gradient_shape(int n)
Parameters:
n -