|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vmm.core.Exhibit vmm.fractals.RepeatedSegmentFractal vmm.fractals.Sierpinski
public class Sierpinski
The fractal "Sierpinski" curve.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class vmm.fractals.RepeatedSegmentFractal |
---|
RepeatedSegmentFractal.RSFView |
Field Summary |
---|
Fields inherited from class vmm.fractals.RepeatedSegmentFractal |
---|
colorRepeatFactor, fastDrawRecursionLevel, fractality, recursionLevel |
Fields inherited from class vmm.core.Exhibit |
---|
decorations, exhibitNeedsRedraw, isMorphing, morphingView, parameters, previousTransform |
Constructor Summary | |
---|---|
Sierpinski()
|
Method Summary | |
---|---|
protected Complex[] |
computeNextLevel(Complex[] sierpinskiCurve,
int computedLevel)
This abstract method computes one approximation level from the previous one, which has already been computed. |
ActionList |
getActionsForView(View view)
Adds a submenu that contains commands for selecting the value of the segmentChoice property. |
boolean |
getUseInjectiveCurve()
Returns the value of the useInjectiveCurves property. |
void |
setUseInjectiveCurves(boolean useInjectiveCurves)
Sets the value of the setUseInjectiveCurves property. |
Methods inherited from class vmm.fractals.RepeatedSegmentFractal |
---|
computeDrawData, doDraw, getCreateAnimation, getDefaultView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sierpinski()
Method Detail |
---|
public boolean getUseInjectiveCurve()
public void setUseInjectiveCurves(boolean useInjectiveCurves)
useInjectiveCurves
- If set to true, then an injective approximation is used for the
Sierpinski curve. Otherwise, a non-injective approximation is used.public ActionList getActionsForView(View view)
getActionsForView
in class Exhibit
protected Complex[] computeNextLevel(Complex[] sierpinskiCurve, int computedLevel)
RepeatedSegmentFractal
computeNextLevel
in class RepeatedSegmentFractal
sierpinskiCurve
- This array stores the points that have been computed for the current approximation level.
This array can be null, if the computedLevel is zero.computedLevel
- This is the approximation level that has been comptuted to get the points in
curvePoints. A zero value for this paramter means that the first, or base level, approximation should
be computed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |