Package gaiasky.scene.record
Class NoiseComponent
java.lang.Object
gaiasky.scene.record.NamedComponent
gaiasky.scene.record.NoiseComponent
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IComponent
-
Field Summary
Modifier and TypeFieldDescriptioncom.sudoplay.joise.module.ModuleFractal.FractalType
double
double
int
double
double[]
double[]
long
com.sudoplay.joise.module.ModuleBasisFunction.BasisType
Fields inherited from class gaiasky.scene.record.NamedComponent
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFrom
(NoiseComponent other) void
dispose()
com.badlogic.gdx.graphics.Pixmap
generateData
(int N, int M, float[] rgba, String name) Trio
<float[][], float[][], com.badlogic.gdx.graphics.Pixmap> generateElevation
(int N, int M, float heightScale, String name) void
print
(Logger.Log log) void
randomizeAll
(Random rand) void
randomizeAll
(Random rand, boolean rocky, boolean clouds) void
setFractaltype
(String fractalType) void
setFrequency
(Double frequency) void
setLacunarity
(Double lacunarity) void
setOctaves
(Long octaves) Sets the number of octavesvoid
void
setRange
(double[] range) void
setScale
(double[] noiseScale) void
void
void
Methods inherited from class gaiasky.scene.record.NamedComponent
createModelParameters, gaussian, gaussian, gaussian, initialize
-
Field Details
-
scale
public double[] scale -
power
public double power -
octaves
public int octaves -
frequency
public double frequency -
lacunarity
public double lacunarity -
range
public double[] range -
type
public com.sudoplay.joise.module.ModuleBasisFunction.BasisType type -
fractalType
public com.sudoplay.joise.module.ModuleFractal.FractalType fractalType -
seed
public long seed
-
-
Constructor Details
-
NoiseComponent
public NoiseComponent()
-
-
Method Details
-
generateData
-
generateElevation
-
setType
-
setFractaltype
-
setScale
-
setScale
public void setScale(double[] noiseScale) -
setOctaves
Sets the number of octaves- Parameters:
octaves
- The octaves
-
setFrequency
-
setLacunarity
-
setPower
-
setRange
public void setRange(double[] range) -
setSeed
-
copyFrom
-
randomizeAll
-
randomizeAll
-
print
-
dispose
public void dispose()
-