Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | List of all members
MapSO Class Reference
Inheritance diagram for MapSO:
CBAttributeMapSO CBTextureAtlasSO

Classes

class  HeightAlpha
 

Public Types

enum  MapDepth : int { MapDepth.Greyscale = 1, MapDepth.HeightAlpha = 2, MapDepth.RGB = 3, MapDepth.RGBA = 4 }
 

Public Member Functions

virtual Texture2D CompileGreyscale ()
 
virtual Texture2D CompileHeightAlpha ()
 
virtual Texture2D CompileRGB ()
 
virtual Texture2D CompileRGBA ()
 
virtual Texture2D CompileToTexture ()
 
virtual Texture2D CompileToTexture (byte filter)
 
virtual void CreateMap (MapDepth depth, Texture2D tex)
 
virtual void CreateMap (MapDepth depth, string name, int width, int height)
 
virtual Color[] CreateMapRGBQuantized (Texture2D tex, float quantize)
 
virtual Color[] CreateMapRGBQuantized (Texture2D tex, int quantize)
 
virtual void CreateMapRGBQuantized (Texture2D tex, Color[] quantize)
 
virtual byte GetPixelByte (int x, int y)
 
virtual Color GetPixelColor (int x, int y)
 
virtual Color GetPixelColor (float x, float y)
 
virtual Color GetPixelColor (double x, double y)
 
virtual Color32 GetPixelColor32 (int x, int y)
 
virtual Color GetPixelColor32 (float x, float y)
 
virtual Color GetPixelColor32 (double x, double y)
 
virtual float GetPixelFloat (int x, int y)
 
virtual float GetPixelFloat (float x, float y)
 
virtual float GetPixelFloat (double x, double y)
 
virtual HeightAlpha GetPixelHeightAlpha (int x, int y)
 
virtual HeightAlpha GetPixelHeightAlpha (float x, float y)
 
virtual HeightAlpha GetPixelHeightAlpha (double x, double y)
 
virtual byte GreyByte (int x, int y)
 
virtual float GreyFloat (int x, int y)
 
virtual byte[] PixelByte (int x, int y)
 
virtual void SetPixel (int x, int y, byte b)
 
virtual void SetPixel (float x, float y, byte b)
 

Protected Member Functions

void ConstructBilinearCoords (float x, float y)
 
virtual void ConstructBilinearCoords (double x, double y)
 
void CreateGreyscaleFromAlpha (Texture2D tex)
 
void CreateGreyscaleFromRGB (Texture2D tex)
 
void CreateHeightAlpha (Texture2D tex)
 
void CreateRGB (Texture2D tex)
 
void CreateRGBA (Texture2D tex)
 
Color[] CreateRGBQuantized (Texture2D tex, int quantize)
 
Color[] CreateRGBQuantized (Texture2D tex, float quantize)
 
void CreateRGBQuantized (Texture2D tex, Color[] quantize)
 
int PixelIndex (int x, int y)
 

Protected Attributes

int _bpp
 
byte[] _data
 
int _height
 
bool _isCompiled
 
string _name
 
int _rowWidth
 
int _width
 
float centerX
 
double centerXD
 
int index
 
float midX
 
double midXD
 
int minX
 
float retVal
 
double retValD
 
byte val
 

Static Protected Attributes

static float Byte2Float = 1f / 255f
 
static float Float2Byte = 255f
 

Properties

int BitsPerPixel [get]
 
MapDepth Depth [get]
 
int Height [get]
 
bool IsCompiled [get]
 
string MapName [get]
 
int RowWidth [get]
 
int Size [get]
 
string SizeString [get]
 
int Width [get]
 

Member Enumeration Documentation

enum MapSO.MapDepth : int
Enumerator
Greyscale 
HeightAlpha 
RGB 
RGBA 

Member Function Documentation

virtual Texture2D MapSO.CompileGreyscale ( )
inlinevirtual
virtual Texture2D MapSO.CompileHeightAlpha ( )
inlinevirtual
virtual Texture2D MapSO.CompileRGB ( )
inlinevirtual
virtual Texture2D MapSO.CompileRGBA ( )
inlinevirtual
virtual Texture2D MapSO.CompileToTexture ( )
inlinevirtual
virtual Texture2D MapSO.CompileToTexture ( byte  filter)
inlinevirtual
void MapSO.ConstructBilinearCoords ( float  x,
float  y 
)
inlineprotected
virtual void MapSO.ConstructBilinearCoords ( double  x,
double  y 
)
inlineprotectedvirtual
void MapSO.CreateGreyscaleFromAlpha ( Texture2D  tex)
inlineprotected
void MapSO.CreateGreyscaleFromRGB ( Texture2D  tex)
inlineprotected
void MapSO.CreateHeightAlpha ( Texture2D  tex)
inlineprotected
virtual void MapSO.CreateMap ( MapDepth  depth,
Texture2D  tex 
)
inlinevirtual
virtual void MapSO.CreateMap ( MapDepth  depth,
string  name,
int  width,
int  height 
)
inlinevirtual
virtual Color [] MapSO.CreateMapRGBQuantized ( Texture2D  tex,
float  quantize 
)
inlinevirtual
virtual Color [] MapSO.CreateMapRGBQuantized ( Texture2D  tex,
int  quantize 
)
inlinevirtual
virtual void MapSO.CreateMapRGBQuantized ( Texture2D  tex,
Color[]  quantize 
)
inlinevirtual
void MapSO.CreateRGB ( Texture2D  tex)
inlineprotected
void MapSO.CreateRGBA ( Texture2D  tex)
inlineprotected
Color [] MapSO.CreateRGBQuantized ( Texture2D  tex,
int  quantize 
)
inlineprotected
Color [] MapSO.CreateRGBQuantized ( Texture2D  tex,
float  quantize 
)
inlineprotected
void MapSO.CreateRGBQuantized ( Texture2D  tex,
Color[]  quantize 
)
inlineprotected
virtual byte MapSO.GetPixelByte ( int  x,
int  y 
)
inlinevirtual
virtual Color MapSO.GetPixelColor ( int  x,
int  y 
)
inlinevirtual
virtual Color MapSO.GetPixelColor ( float  x,
float  y 
)
inlinevirtual
virtual Color MapSO.GetPixelColor ( double  x,
double  y 
)
inlinevirtual

Reimplemented in CBAttributeMapSO.

virtual Color32 MapSO.GetPixelColor32 ( int  x,
int  y 
)
inlinevirtual
virtual Color MapSO.GetPixelColor32 ( float  x,
float  y 
)
inlinevirtual
virtual Color MapSO.GetPixelColor32 ( double  x,
double  y 
)
inlinevirtual
virtual float MapSO.GetPixelFloat ( int  x,
int  y 
)
inlinevirtual
virtual float MapSO.GetPixelFloat ( float  x,
float  y 
)
inlinevirtual
virtual float MapSO.GetPixelFloat ( double  x,
double  y 
)
inlinevirtual
virtual HeightAlpha MapSO.GetPixelHeightAlpha ( int  x,
int  y 
)
inlinevirtual
virtual HeightAlpha MapSO.GetPixelHeightAlpha ( float  x,
float  y 
)
inlinevirtual
virtual HeightAlpha MapSO.GetPixelHeightAlpha ( double  x,
double  y 
)
inlinevirtual
virtual byte MapSO.GreyByte ( int  x,
int  y 
)
inlinevirtual
virtual float MapSO.GreyFloat ( int  x,
int  y 
)
inlinevirtual
virtual byte [] MapSO.PixelByte ( int  x,
int  y 
)
inlinevirtual
int MapSO.PixelIndex ( int  x,
int  y 
)
inlineprotected
virtual void MapSO.SetPixel ( int  x,
int  y,
byte  b 
)
inlinevirtual
virtual void MapSO.SetPixel ( float  x,
float  y,
byte  b 
)
inlinevirtual

Member Data Documentation

int MapSO._bpp
protected
byte [] MapSO._data
protected
int MapSO._height
protected
bool MapSO._isCompiled
protected
string MapSO._name
protected
int MapSO._rowWidth
protected
int MapSO._width
protected
float MapSO.Byte2Float = 1f / 255f
staticprotected
float MapSO.centerX
protected
double MapSO.centerXD
protected
float MapSO.Float2Byte = 255f
staticprotected
int MapSO.index
protected
float MapSO.midX
protected
double MapSO.midXD
protected
int MapSO.minX
protected
float MapSO.retVal
protected
double MapSO.retValD
protected
byte MapSO.val
protected

Property Documentation

int MapSO.BitsPerPixel
get
MapDepth MapSO.Depth
get
int MapSO.Height
get
bool MapSO.IsCompiled
get
string MapSO.MapName
get
int MapSO.RowWidth
get
int MapSO.Size
get
string MapSO.SizeString
get
int MapSO.Width
get

The documentation for this class was generated from the following file: