OSDN Git Service

Update terrain.
[mikumikustudio/MikuMikuStudio.git] / engine / src / terrain / com / jme3 / terrain / noise / fractal / Fractal.java
1 /**\r
2  * Copyright (c) 2011, Novyon Events\r
3  * \r
4  * All rights reserved.\r
5  * \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
8  * \r
9  * - Redistributions of source code must retain the above copyright notice, this\r
10  * list of conditions and the following disclaimer.\r
11  * \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
15  * \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
27  * \r
28  * @author Anthyon\r
29  */\r
30 package com.jme3.terrain.noise.fractal;\r
31 \r
32 import com.jme3.terrain.noise.Basis;\r
33 \r
34 /**\r
35  * Interface for a general fractal basis.\r
36  * \r
37  * Takes any number of basis funcions to work with and a few common parameters\r
38  * for noise fractals\r
39  * \r
40  * @author Anthyon\r
41  * \r
42  */\r
43 public interface Fractal extends Basis {\r
44 \r
45         public Fractal setOctaves(final float octaves);\r
46 \r
47         public Fractal setFrequency(final float frequency);\r
48 \r
49         public Fractal setRoughness(final float roughness);\r
50 \r
51         public Fractal setAmplitude(final float amplitude);\r
52 \r
53         public Fractal setLacunarity(final float lacunarity);\r
54 \r
55         public Fractal addBasis(Basis basis);\r
56 \r
57 }\r