|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectUtilities.NoiseEngine
Utilities.PostProcess
Utilities.PostProcessHelper
public abstract class PostProcessHelper
This class provides a set of utility methods to simplify development of PostProcess nodes.
| Field Summary |
|---|
| Fields inherited from class Utilities.PostProcess |
|---|
noise |
| Fields inherited from class Utilities.NoiseEngine |
|---|
gridProjection, max, min, noiseArray, panel, preview, previewNoise, scanlineSize, terrain, xGap |
| Constructor Summary | |
|---|---|
PostProcessHelper()
|
|
| Method Summary | |
|---|---|
int |
getIndex(double x,
double y)
This method returns the index into the storage array of a point (x,y). |
Vertex |
getVertex(int index)
|
int |
move(double x,
double y,
double deltaX,
double deltaY)
This method returns the index representing a point, (x+deltaX,y+deltaY), in other words, the point deltaX to the right of the original point and deltaY above the original point. |
protected int |
moveClamped(double x,
double y,
double deltaX,
double deltaY)
This method returns the index representing a point, (x+deltaX,y+deltaY), in other words, the point deltaX to the right of the original point and deltaY above the original point. |
protected int |
movePlanet(double x,
double y,
double deltaX,
double deltaY)
This method returns the index representing a point, (x+deltaX,y+deltaY), in other words, the point deltaX to the right of the original point and deltaY above the original point. |
protected int |
moveScroll(double x,
double y,
double deltaX,
double deltaY)
This method returns the index representing a point, (x+deltaX,y+deltaY), in other words, the point deltaX to the right of the original point and deltaY above the original point. |
protected void |
setScroll(boolean scroll)
Kind of a bonehead method here. |
| Methods inherited from class Utilities.PostProcess |
|---|
initNoise, populateNoiseMap, process, processNoiseMap, setNoiseEngine, setTerrain |
| Methods inherited from class Utilities.NoiseEngine |
|---|
copy, description, getDetails, getMax, getMin, getNoiseForVertex, getNoiseForVertex, getNoiseOffset, getNoiseSize, getPanel, getPreviewNoise, getPreviewVertices, getScaledMovedNoiseForVertex, getTerrain, load, makePreview, name, paintIcon, restoreSettings, save, setProjection, storeSettings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PostProcessHelper()
| Method Detail |
|---|
protected void setScroll(boolean scroll)
scroll -
public int getIndex(double x,
double y)
x - the x-coordinate of the desired pointy - the y-coordinate of the desired point
public int move(double x,
double y,
double deltaX,
double deltaY)
x - the x-coordinate of the original pointy - the y_coordinate of the original pointdeltaX - the distance moved to the rightdeltaY - the distance moved down
protected int moveScroll(double x,
double y,
double deltaX,
double deltaY)
x - the x-coordinate of the original pointy - the y_coordinate of the original pointdeltaX - the distance moved to the rightdeltaY - the distance moved down
protected int movePlanet(double x,
double y,
double deltaX,
double deltaY)
x - the x-coordinate of the original pointy - the y_coordinate of the original pointdeltaX - the distance moved to the rightdeltaY - the distance moved down
protected int moveClamped(double x,
double y,
double deltaX,
double deltaY)
x - the x-coordinate of the original pointy - the y_coordinate of the original pointdeltaX - the distance moved to the rightdeltaY - the distance moved down
public Vertex getVertex(int index)
getVertex in class NoiseEngine
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||