2 * Copyright (c) 2011, Novyon Events
\r
4 * All rights reserved.
\r
6 * Redistribution and use in source and binary forms, with or without
\r
7 * modification, are permitted provided that the following conditions are met:
\r
9 * - Redistributions of source code must retain the above copyright notice, this
\r
10 * list of conditions and the following disclaimer.
\r
12 * - Redistributions in binary form must reproduce the above copyright notice,
\r
13 * this list of conditions and the following disclaimer in the documentation
\r
14 * and/or other materials provided with the distribution.
\r
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
\r
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
\r
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
\r
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
\r
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
\r
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
\r
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
\r
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
\r
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
\r
25 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
\r
26 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\r
30 package com.jme3.terrain.noise.fractal;
\r
32 import com.jme3.terrain.noise.Basis;
\r
35 * Interface for a general fractal basis.
\r
37 * Takes any number of basis funcions to work with and a few common parameters
\r
38 * for noise fractals
\r
43 public interface Fractal extends Basis {
\r
45 public Fractal setOctaves(final float octaves);
\r
47 public Fractal setFrequency(final float frequency);
\r
49 public Fractal setRoughness(final float roughness);
\r
51 public Fractal setAmplitude(final float amplitude);
\r
53 public Fractal setLacunarity(final float lacunarity);
\r
55 public Fractal addBasis(Basis basis);
\r