|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jv.project.PjProject
vgp.tutor.fractal.PjFractalImage
Demo project for working with pixel images. Project displays a Julia set and a Mandelbrot set where the Julia set is determined by picking a module value in the Mandelbrot image. Picking in a Julia set will display several iterations of the picked point.
Zoom into images by marking a rectangle in display using mark-mode.
| Field Summary |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS |
| Constructor Summary | |
PjFractalImage()
|
|
| Method Summary | |
void |
componentHidden(java.awt.event.ComponentEvent comp)
Invoked when component has been hidden. |
void |
componentMoved(java.awt.event.ComponentEvent comp)
Invoked when component has been moved. |
void |
componentResized(java.awt.event.ComponentEvent comp)
When component has been resized all images must be resized. |
void |
componentShown(java.awt.event.ComponentEvent comp)
Invoked when component has been shown. |
void |
computeColors(int[] pixArr,
int[] valArr,
int len,
int maxVal,
int colType)
Compute color array from an array of scalar integer values. |
void |
computeImageJulia(PvDisplayIf disp,
double xMin,
double yMin,
double xMax,
double yMax)
Compute a Julia set in the given rectangle in the complex plane and updates the corresponding images. |
void |
computeImageMandelbrot(PvDisplayIf disp,
double xMin,
double yMin,
double xMax,
double yMax)
Compute a Mandelbrot set in the given rectangle in the complex plane and updates the corresponding images. |
void |
computeJulia(int[] pixIter,
int imageWidth,
int imageHeight,
int blockSize,
double xMin,
double yMin,
double xMax,
double yMax,
int maxIter,
PuComplex c)
Compute a Julia set in the given rectangle in the complex plane. |
void |
computeMandelbrot(int[] pixIter,
int imageWidth,
int imageHeight,
int blockSize,
double xMin,
double yMin,
double xMax,
double yMax,
int maxIter)
Compute a Mandelbrot set in the given rectangle in the complex plane. |
PvDisplayIf |
getDispJulia()
Get display of Julia set. |
PvDisplayIf |
getDispMandelbrot()
Get display of Mandelbrot set which is used to select the complex parameter value c which determines the Julia set. |
void |
init()
Initialize and reset project, stops the running animation if any. |
void |
markVertices(PvPickEvent pickEvent)
Method is called from display when user drags a rectangular array. |
void |
pickInitial(PvPickEvent pickEvent)
Method is called from display when a user picks into the display in initial-pick mode. |
void |
start()
Called when project is launched by viewer on applet start. |
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed. |
| Methods inherited from class jv.project.PjProject |
addDisplay, addGeometry, addGeometry, dispose, dragDisplay, dragInitial, dragVertex, fitDisplays, getAnimation, getDisplay, getDisplays, getGeometry, getGeometry, getNumGeometries, getParameter, getViewer, hasAnimation, hasDisplay, isEnabledAutoFit, pickDisplay, pickVertex, removeDisplay, removeGeometries, removeGeometry, selectDisplay, selectGeometry, setAnimation, setBackColor, setBorderType, setDisplay, setEnabledAutoFit, setGeometry, setParameter, setTime, setViewer, stop, unmarkVertices |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.anim.PsTimeListenerIf |
getName |
| Methods inherited from interface jv.project.PvPickListenerIf |
getName |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, getName, setParent |
| Constructor Detail |
public PjFractalImage()
| Method Detail |
public void init()
PjProject
init in class PjProjectpublic void start()
start in class PjProjectPvViewerIf.start(),
PjProject.isEnabledAutoFit()public boolean update(java.lang.Object event)
update in interface PsUpdateIfupdate in class PsObjectPsObject.setParent(PsUpdateIf),
PsObject.getFather(),
PsObject.addUpdateListener(PsUpdateIf)public void componentShown(java.awt.event.ComponentEvent comp)
componentShown in interface java.awt.event.ComponentListenerpublic void componentHidden(java.awt.event.ComponentEvent comp)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent comp)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent comp)
componentResized in interface java.awt.event.ComponentListenerpublic PvDisplayIf getDispJulia()
public PvDisplayIf getDispMandelbrot()
public void markVertices(PvPickEvent pickEvent)
markVertices in interface PvPickListenerIfmarkVertices in class PjProjectpickEvent - Everything in a
PvPickEvent MarkBox
gets marked.public void pickInitial(PvPickEvent pickEvent)
pickInitial in interface PvPickListenerIfpickInitial in class PjProjectpickEvent - Pick event issued by the display on left mouse pick.PvPickListenerIf
public void computeImageJulia(PvDisplayIf disp,
double xMin,
double yMin,
double xMax,
double yMax)
Parameters determine a rectangle in the complex plane in which the Julia set is computed.
public void computeImageMandelbrot(PvDisplayIf disp,
double xMin,
double yMin,
double xMax,
double yMax)
Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.
public void computeJulia(int[] pixIter,
int imageWidth,
int imageHeight,
int blockSize,
double xMin,
double yMin,
double xMax,
double yMax,
int maxIter,
PuComplex c)
The algorithm determines for given complex parameter c if the iteration f(z)=z*z+c diverges to infinity which is assumed if |z|>4.
Parameters determine a rectangle in the complex plane in which the Julia set is computed.
pixIter - pixel image with RGB integers which will be computed.
public void computeMandelbrot(int[] pixIter,
int imageWidth,
int imageHeight,
int blockSize,
double xMin,
double yMin,
double xMax,
double yMax,
int maxIter)
The algorithm determines for each z0 if the iteration f(z)=z*z+z0 diverges to infinity which is assumed if |z|>4.
Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.
pixIter - pixel image with RGB integers which will be computed.
public void computeColors(int[] pixArr,
int[] valArr,
int len,
int maxVal,
int colType)
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||