C# Class OpenSim.Region.Framework.Scenes.VoxelChannel

Inheritance: IVoxelChannel
Show file Open project: N3X15/VoxelSim Class Usage Examples

Public Properties

Property Type Description
CHUNK_SIZE_X int
CHUNK_SIZE_Y int
CHUNK_SIZE_Z int
TerrainGenerators ITerrainGenerator>.Dictionary
Voxels byte[]
mMaterials OpenSim.Region.Framework.Interfaces.MaterialMap

Public Methods

Method Description
AND ( VoxelChannel a, VoxelChannel b, ReplaceMode rep ) : VoxelChannel
AddMaterial ( VoxMaterial butts ) : void
FillVoxels ( System.Vector3 min, System.Vector3 max, byte v ) : void
FindNearestAirVoxel ( System.Vector3 subject, bool ForAvatar ) : System.Vector3
ForEachVoxel ( Action a ) : void
FromBytes ( byte b ) : void
Generate ( string method, long seed, long X, long Y ) : void
Generate ( string method, long seed, long X, long Y, object args ) : void
GetBoolsSerialised ( ) : bool[]
GetChunk ( int x, int y ) : byte[]
GetChunkBlock ( byte &chunk, int x, int y, int z ) : byte
GetChunkData ( int X, int Y, int Z ) : byte[]
GetDoubles ( ) : ].double[
GetDoubles ( bool lowest ) : ].double[
GetHeightAt ( int x, int y ) : double
GetSolidsArray ( ) : bool[]
GetVoxel ( System.Vector3 pos ) : byte
GetVoxel ( int x, int y, int z ) : byte
ImportHeightmap ( float heightmap ) : void
IsInsideTerrain ( System.Vector3 pos ) : bool
IsSolid ( int x, int y, int z ) : bool
Load ( string RegionName ) : void
LoadFromFile ( string file ) : void
LoadFromXmlString ( string data ) : void
MakeCopy ( ) : IVoxelChannel
MoveVoxel ( System.Vector3 from, System.Vector3 to ) : void
Save ( string RegionName ) : void
SaveToFile ( string file ) : void
SaveToXmlString ( ) : string
SetChunkBlock ( byte &chunk, byte type, int x, int y, int z ) : void
SetTo ( byte b ) : void
SetVoxel ( System.Vector3 pos, byte v ) : void
SetVoxel ( int x, int y, int z, byte voxel ) : void
Tainted ( int x, int y, int z ) : bool
ToBytes ( ) : byte[]
ToMaterialMap ( ) : int[,,]
VoxelChannel ( int x, int y, int z ) : System

Constructor.

VoxelChannel ( uint x, uint y, uint z ) : System
inGrid ( System.Vector3 pos ) : bool
operator ( ) : VoxelChannel
this ( int x, int y, int z ) : int

Private Methods

Method Description
GetFloatsSerialised ( ) : float[]
ReadXml ( XmlTextReader reader ) : void
VoxelsFromXml ( XmlReader xmlReader ) : void
WriteXML ( XmlWriter w ) : void

Method Details

AND() static public method

static public AND ( VoxelChannel a, VoxelChannel b, ReplaceMode rep ) : VoxelChannel
a VoxelChannel
b VoxelChannel
rep ReplaceMode
return VoxelChannel

AddMaterial() public method

public AddMaterial ( VoxMaterial butts ) : void
butts OpenSim.Region.Framework.Interfaces.VoxMaterial
return void

FillVoxels() public method

public FillVoxels ( System.Vector3 min, System.Vector3 max, byte v ) : void
min System.Vector3
max System.Vector3
v byte
return void

FindNearestAirVoxel() public method

public FindNearestAirVoxel ( System.Vector3 subject, bool ForAvatar ) : System.Vector3
subject System.Vector3
ForAvatar bool
return System.Vector3

ForEachVoxel() public method

public ForEachVoxel ( Action a ) : void
a Action
return void

FromBytes() public method

public FromBytes ( byte b ) : void
b byte
return void

Generate() public method

public Generate ( string method, long seed, long X, long Y ) : void
method string
seed long
X long
Y long
return void

Generate() public method

public Generate ( string method, long seed, long X, long Y, object args ) : void
method string
seed long
X long
Y long
args object
return void

GetBoolsSerialised() public method

public GetBoolsSerialised ( ) : bool[]
return bool[]

GetChunk() public method

public GetChunk ( int x, int y ) : byte[]
x int
y int
return byte[]

GetChunkBlock() public method

public GetChunkBlock ( byte &chunk, int x, int y, int z ) : byte
chunk byte
x int
y int
z int
return byte

GetChunkData() public method

public GetChunkData ( int X, int Y, int Z ) : byte[]
X int
Y int
Z int
return byte[]

GetDoubles() public method

public GetDoubles ( ) : ].double[
return ].double[

GetDoubles() public method

public GetDoubles ( bool lowest ) : ].double[
lowest bool
return ].double[

GetHeightAt() public method

public GetHeightAt ( int x, int y ) : double
x int
y int
return double

GetSolidsArray() public method

public GetSolidsArray ( ) : bool[]
return bool[]

GetVoxel() public method

public GetVoxel ( System.Vector3 pos ) : byte
pos System.Vector3
return byte

GetVoxel() public method

public GetVoxel ( int x, int y, int z ) : byte
x int
y int
z int
return byte

ImportHeightmap() public method

public ImportHeightmap ( float heightmap ) : void
heightmap float
return void

IsInsideTerrain() public method

public IsInsideTerrain ( System.Vector3 pos ) : bool
pos System.Vector3
return bool

IsSolid() public method

public IsSolid ( int x, int y, int z ) : bool
x int
y int
z int
return bool

Load() public method

public Load ( string RegionName ) : void
RegionName string
return void

LoadFromFile() public method

public LoadFromFile ( string file ) : void
file string
return void

LoadFromXmlString() public method

public LoadFromXmlString ( string data ) : void
data string
return void

MakeCopy() public method

public MakeCopy ( ) : IVoxelChannel
return IVoxelChannel

MoveVoxel() public method

public MoveVoxel ( System.Vector3 from, System.Vector3 to ) : void
from System.Vector3
to System.Vector3
return void

Save() public method

public Save ( string RegionName ) : void
RegionName string
return void

SaveToFile() public method

public SaveToFile ( string file ) : void
file string
return void

SaveToXmlString() public method

public SaveToXmlString ( ) : string
return string

SetChunkBlock() public method

public SetChunkBlock ( byte &chunk, byte type, int x, int y, int z ) : void
chunk byte
type byte
x int
y int
z int
return void

SetTo() public method

public SetTo ( byte b ) : void
b byte
return void

SetVoxel() public method

public SetVoxel ( System.Vector3 pos, byte v ) : void
pos System.Vector3
v byte
return void

SetVoxel() public method

public SetVoxel ( int x, int y, int z, byte voxel ) : void
x int
y int
z int
voxel byte
return void

Tainted() public method

public Tainted ( int x, int y, int z ) : bool
x int
y int
z int
return bool

ToBytes() public method

public ToBytes ( ) : byte[]
return byte[]

ToMaterialMap() public method

public ToMaterialMap ( ) : int[,,]
return int[,,]

VoxelChannel() public method

Constructor.
public VoxelChannel ( int x, int y, int z ) : System
x int /// X size ///
y int /// Y size ///
z int /// Z size ///
return System

VoxelChannel() public method

public VoxelChannel ( uint x, uint y, uint z ) : System
x uint
y uint
z uint
return System

inGrid() public method

public inGrid ( System.Vector3 pos ) : bool
pos System.Vector3
return bool

operator() public static method

public static operator ( ) : VoxelChannel
return VoxelChannel

this() public method

public this ( int x, int y, int z ) : int
x int
y int
z int
return int

Property Details

CHUNK_SIZE_X public static property

public static int CHUNK_SIZE_X
return int

CHUNK_SIZE_Y public static property

public static int CHUNK_SIZE_Y
return int

CHUNK_SIZE_Z public static property

public static int CHUNK_SIZE_Z
return int

TerrainGenerators public property

public Dictionary TerrainGenerators
return ITerrainGenerator>.Dictionary

Voxels public property

public byte[] Voxels
return byte[]

mMaterials public property

public MaterialMap,OpenSim.Region.Framework.Interfaces mMaterials
return OpenSim.Region.Framework.Interfaces.MaterialMap