org.fraid.function
Class Transform

java.lang.Object
  extended by org.fraid.function.Transform
All Implemented Interfaces:
java.lang.Cloneable

public class Transform
extends java.lang.Object
implements java.lang.Cloneable

Instead of using functions like the rest of the algorithms the iterative fractals use transforms (this class). A transform is a pair of functions and X and Y offsets.


Field Summary
 java.util.Vector mFunctions
          The two functions for the transform.
 double mXOff
          The mXOff.
protected  Complex mXOffCompl
           
 double mYOff
          The mYOff.
protected  Complex mYOffCompl
           
 double mZOff
          The mZOff.
protected  Complex mZOffCompl
           
 
Constructor Summary
Transform(java.util.Vector aFuns, Complex aXOffCompl, Complex aYOffCompl)
          Creates a new Transform instance.
Transform(java.util.Vector aFuns, Complex aXOffCompl, Complex aYOffCompl, Complex aZOffCompl)
          Creates a new Transform instance.
 
Method Summary
 java.lang.Object clone()
          Needed when generating files (everyhting gets cloned to prevent any changes).
 Transform refresh()
          Checks if the user didn't change some defintion on which our transformation depends.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mFunctions

public java.util.Vector mFunctions
The two functions for the transform.


mXOffCompl

protected Complex mXOffCompl

mYOffCompl

protected Complex mYOffCompl

mZOffCompl

protected Complex mZOffCompl

mXOff

public double mXOff
The mXOff.


mYOff

public double mYOff
The mYOff.


mZOff

public double mZOff
The mZOff.

Constructor Detail

Transform

public Transform(java.util.Vector aFuns,
                 Complex aXOffCompl,
                 Complex aYOffCompl)
Creates a new Transform instance.

Parameters:
aFuns - a Vector value
aXOffCompl - a Complex value
aYOffCompl - a Complex value

Transform

public Transform(java.util.Vector aFuns,
                 Complex aXOffCompl,
                 Complex aYOffCompl,
                 Complex aZOffCompl)
Creates a new Transform instance.

Parameters:
aFuns - a Vector value
aXOffCompl - a Complex value
aYOffCompl - a Complex value
aZOffCompl - a Complex value
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Needed when generating files (everyhting gets cloned to prevent any changes).

Overrides:
clone in class java.lang.Object
Returns:
an Object value
Throws:
java.lang.CloneNotSupportedException - if an error occurs

refresh

public Transform refresh()
Checks if the user didn't change some defintion on which our transformation depends. Unlike the algorithms where functions are used directly the changes here don't come automatically.

Returns:
a Transform value


Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.