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
FieldsModifier and TypeFieldDescriptioncom.sudoplay.joise.module.ModuleFractal.FractalTypedoubledoubleintdoubledouble[]double[]longcom.sudoplay.joise.module.ModuleBasisFunction.BasisTypeFields inherited from class gaiasky.scene.record.NamedComponent
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(NoiseComponent other) voiddispose()com.badlogic.gdx.graphics.PixmapgenerateData(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) voidprint(Logger.Log log) voidrandomizeAll(Random rand) voidrandomizeAll(Random rand, boolean rocky, boolean clouds) voidsetFractaltype(String fractalType) voidsetFrequency(Double frequency) voidsetLacunarity(Double lacunarity) voidsetOctaves(Long octaves) Sets the number of octavesvoidvoidsetRange(double[] range) voidsetScale(double[] noiseScale) voidvoidvoidMethods 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()
-