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

Classes

class  MapAttribute
 

Public Member Functions

void FormatLocalizationTags ()
 
virtual MapAttribute GetAtt (double lat, double lon)
 
override Color GetPixelColor (double x, double y)
 
- Public Member Functions inherited from MapSO
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 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)
 

Public Attributes

MapAttribute[] Attributes = new MapAttribute[0]
 
bool exactSearch
 
Color[] nearColors = new Color[4]
 
float neighborColorThresh = (1f / 1024f)
 
float nonExactThreshold = -1f
 

Additional Inherited Members

- Public Types inherited from MapSO
enum  MapDepth : int { MapDepth.Greyscale = 1, MapDepth.HeightAlpha = 2, MapDepth.RGB = 3, MapDepth.RGBA = 4 }
 
- Protected Member Functions inherited from MapSO
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 inherited from MapSO
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 inherited from MapSO
static float Byte2Float = 1f / 255f
 
static float Float2Byte = 255f
 
- Properties inherited from MapSO
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 Function Documentation

void CBAttributeMapSO.FormatLocalizationTags ( )
inline
virtual MapAttribute CBAttributeMapSO.GetAtt ( double  lat,
double  lon 
)
inlinevirtual

< find the color that most closely matches the one on our pixel to get our current biome

override Color CBAttributeMapSO.GetPixelColor ( double  x,
double  y 
)
inlinevirtual

Reimplemented from MapSO.

Member Data Documentation

MapAttribute [] CBAttributeMapSO.Attributes = new MapAttribute[0]
bool CBAttributeMapSO.exactSearch
Color [] CBAttributeMapSO.nearColors = new Color[4]
float CBAttributeMapSO.neighborColorThresh = (1f / 1024f)
float CBAttributeMapSO.nonExactThreshold = -1f

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