diff options
author | UbitUmarov | 2015-09-01 11:43:07 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-01 11:43:07 +0100 |
commit | fb78b182520fc9bb0f971afd0322029c70278ea6 (patch) | |
tree | b4e30d383938fdeef8c92d1d1c2f44bb61d329bd /OpenSim/Region/Framework/Interfaces/ITerrain.cs | |
parent | lixo (diff) | |
parent | Mantis #7713: fixed bug introduced by 1st MOSES patch. (diff) | |
download | opensim-SC-fb78b182520fc9bb0f971afd0322029c70278ea6.zip opensim-SC-fb78b182520fc9bb0f971afd0322029c70278ea6.tar.gz opensim-SC-fb78b182520fc9bb0f971afd0322029c70278ea6.tar.bz2 opensim-SC-fb78b182520fc9bb0f971afd0322029c70278ea6.tar.xz |
Merge remote-tracking branch 'os/master'
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces/ITerrain.cs')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/ITerrain.cs | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/ITerrain.cs b/OpenSim/Region/Framework/Interfaces/ITerrain.cs new file mode 100644 index 0000000..815a2d8 --- /dev/null +++ b/OpenSim/Region/Framework/Interfaces/ITerrain.cs | |||
@@ -0,0 +1,81 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSimulator Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | */ | ||
27 | |||
28 | using OpenSim.Framework; | ||
29 | using OpenMetaverse; | ||
30 | |||
31 | namespace OpenSim.Region.Framework.Interfaces | ||
32 | { | ||
33 | public interface ITerrain | ||
34 | { | ||
35 | bool Tainted(); | ||
36 | bool Tainted(int x, int y); | ||
37 | void ResetTaint(); | ||
38 | |||
39 | void ModifyTerrain(float height, float seconds, byte brushsize, byte action, float north, float west, | ||
40 | IClientAPI remoteUser); | ||
41 | |||
42 | void CheckHeightValues(); | ||
43 | float[] GetHeights1D(); | ||
44 | float[,] GetHeights2D(); | ||
45 | double[,] GetHeights2DD(); | ||
46 | void GetHeights1D(float[] heights); | ||
47 | void SetHeights2D(float[,] heights); | ||
48 | void SetHeights2D(double[,] heights); | ||
49 | void SwapRevertMaps(); | ||
50 | void SaveRevertMap(); | ||
51 | bool RunTerrainCmd(string[] args, ref string resultText, string simName); | ||
52 | void SetRange(float min, float max); | ||
53 | void LoadFromFileF64(string filename); | ||
54 | void LoadFromFileF32(string filename); | ||
55 | void LoadFromFileF32(string filename, int dimensionX, int dimensionY, int lowerboundX, int lowerboundY); | ||
56 | void LoadFromFileIMG(string filename, int dimensionX, int dimensionY, int lowerboundX, int lowerboundY); | ||
57 | void LoadFromFileSLRAW(string filename); | ||
58 | void WriteToFileF64(string filename); | ||
59 | void WriteToFileF32(string filename); | ||
60 | void WriteToFileRAW(string filename); | ||
61 | void WriteToFileHiRAW(string filename); | ||
62 | void SetSeed(int val); | ||
63 | void RaiseTerrain(double rx, double ry, double size, double amount); | ||
64 | void LowerTerrain(double rx, double ry, double size, double amount); | ||
65 | void FlattenTerrain(double rx, double ry, double size, double amount); | ||
66 | void NoiseTerrain(double rx, double ry, double size, double amount); | ||
67 | void RevertTerrain(double rx, double ry, double size, double amount); | ||
68 | void SmoothTerrain(double rx, double ry, double size, double amount); | ||
69 | void HillsGenerator(); | ||
70 | double GetHeight(int x, int y); | ||
71 | void ExportImage(string filename, string gradientmap); | ||
72 | byte[] ExportJpegImage(string gradientmap); | ||
73 | } | ||
74 | |||
75 | public interface IMapImageGenerator | ||
76 | { | ||
77 | System.Drawing.Bitmap CreateMapTile(); | ||
78 | System.Drawing.Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height, bool useTextures); | ||
79 | byte[] WriteJpeg2000Image(); | ||
80 | } | ||
81 | } | ||