Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Properties | List of all members
EdyCommonTools.TextureCanvas Class Reference

Public Types

enum  LineType { LineType.Solid, LineType.Dotted, LineType.Dashed }
 

Public Member Functions

float CanvasHeight ()
 
float CanvasWidth ()
 
void Circle (float x, float y, float radius)
 
void Circumference (float x, float y, float radius)
 
void Circumference (float x, float y, float radius, Color col)
 
void Clear ()
 
void Clear (Color col)
 
void ContourPlot (ContourPlotEvaluateColor evaluateColorFn)
 
delegate Color ContourPlotEvaluateColor (float x, float y)
 
void Cross (float x, float y, int radiusX=5, int radiusY=5)
 
void DashedLineV (float x, int step, Color col)
 
void DestroyTexture ()
 
void Dot (float x, float y)
 
void Dot (float x, float y, Color col)
 
void DotGrid (float stepX, float stepY)
 
void DottedGrid (float stepX, float stepY, int step, Color col)
 
void DottedLineV (float x, int step, Color col)
 
void Ellipse (float x, float y, float rx, float ry)
 
void FillEllipse (float x, float y, float rx, float ry)
 
void FillRect (float x, float y, float width, float height)
 
void FillRect (float x, float y, float width, float height, Color col)
 
void Function (System.Func< float, float > func, float x0, float x1, float stepSize=-1.0f)
 
void Function (System.Func< float, float > func, float stepSize=-1.0f)
 
void Function (System.Func< float, float > func, Color col)
 
void Function (System.Func< float, float > func, float x0, float x1, Color col, float stepSize)
 
int GetPixelHeight (float height)
 
int GetPixelWidth (float width)
 
int GetPixelX (float x)
 
int GetPixelY (float y)
 
void Grid (float stepX, float stepY)
 
void Grid (float stepX, float stepY, Color col)
 
void GUIDraw (int x, int y)
 
void GUIStretchDraw (int x, int y, int width, int height)
 
void GUIStretchDraw (int x, int y, int width)
 
void HorizontalAction (System.Action< float > action, float interval, float offset=0.0f)
 
void HorizontalGrid (float stepY)
 
void HorizontalLine (float y)
 
void Line (float x0, float y0, float x1, float y1)
 
void LineH (float y, Color col)
 
void LineTo (float x1, float y1)
 
void LineV (float x, Color col)
 
void MoveTo (float x0, float y0)
 
void Pixel (float x, float y)
 
float Pixels2CanvasX (int pixels)
 
float Pixels2CanvasY (int pixels)
 
int PixelsWidth ()
 
void Rect (float x, float y, float width, float height, Color col)
 
void Rectangle (float x, float y, float width, float height)
 
void ResizeTexture (int pixelsWd, int pixelsHt)
 
void Restore ()
 
void Save ()
 
void SaveToPNG (string fileNameAndPath)
 
void SetAlpha (float value)
 
void SetAlphaBlend (bool value)
 
void SetFunctionResolution (int value)
 
void SolidFunction (System.Func< float, float > func, float x0, float x1)
 
void SolidFunction (System.Func< float, float > func)
 
 TextureCanvas (int pixelsWd, int pixelsHt, Rect canvasRect)
 
 TextureCanvas (int pixelsWd, int pixelsHt, float canvasWd, float canvasHt)
 
 TextureCanvas (int pixelsWd, int pixelsHt)
 
 TextureCanvas ()
 
 TextureCanvas (int pixelsWd, int pixelsHt, float canvasX0, float canvasY0, float canvasWd, float canvasHt)
 
void VerticalAction (System.Action< float > action, float interval, float offset=0.0f)
 
void VerticalGrid (float stepX)
 
void VerticalLine (float x)
 

Properties

float alpha [get, set]
 
bool alphaBlend [get, set]
 
Rect clipArea [get, set]
 
Color color [get, set]
 
int dashInterval [get, set]
 
int dotInterval [get, set]
 
int functionResolution [get, set]
 
int height [get]
 
LineType lineType [get, set]
 
Rect rect [get, set]
 
Texture2D texture [get]
 
int width [get]
 

Member Enumeration Documentation

Enumerator
Solid 
Dotted 
Dashed 

Constructor & Destructor Documentation

EdyCommonTools.TextureCanvas.TextureCanvas ( int  pixelsWd,
int  pixelsHt,
Rect  canvasRect 
)
inline
EdyCommonTools.TextureCanvas.TextureCanvas ( int  pixelsWd,
int  pixelsHt,
float  canvasWd,
float  canvasHt 
)
inline
EdyCommonTools.TextureCanvas.TextureCanvas ( int  pixelsWd,
int  pixelsHt 
)
inline
EdyCommonTools.TextureCanvas.TextureCanvas ( )
inline
EdyCommonTools.TextureCanvas.TextureCanvas ( int  pixelsWd,
int  pixelsHt,
float  canvasX0,
float  canvasY0,
float  canvasWd,
float  canvasHt 
)
inline

Member Function Documentation

float EdyCommonTools.TextureCanvas.CanvasHeight ( )
inline
float EdyCommonTools.TextureCanvas.CanvasWidth ( )
inline
void EdyCommonTools.TextureCanvas.Circle ( float  x,
float  y,
float  radius 
)
inline
void EdyCommonTools.TextureCanvas.Circumference ( float  x,
float  y,
float  radius 
)
inline
void EdyCommonTools.TextureCanvas.Circumference ( float  x,
float  y,
float  radius,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.Clear ( )
inline
void EdyCommonTools.TextureCanvas.Clear ( Color  col)
inline
void EdyCommonTools.TextureCanvas.ContourPlot ( ContourPlotEvaluateColor  evaluateColorFn)
inline
delegate Color EdyCommonTools.TextureCanvas.ContourPlotEvaluateColor ( float  x,
float  y 
)
void EdyCommonTools.TextureCanvas.Cross ( float  x,
float  y,
int  radiusX = 5,
int  radiusY = 5 
)
inline
void EdyCommonTools.TextureCanvas.DashedLineV ( float  x,
int  step,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.DestroyTexture ( )
inline
void EdyCommonTools.TextureCanvas.Dot ( float  x,
float  y 
)
inline
void EdyCommonTools.TextureCanvas.Dot ( float  x,
float  y,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.DotGrid ( float  stepX,
float  stepY 
)
inline
void EdyCommonTools.TextureCanvas.DottedGrid ( float  stepX,
float  stepY,
int  step,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.DottedLineV ( float  x,
int  step,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.Ellipse ( float  x,
float  y,
float  rx,
float  ry 
)
inline
void EdyCommonTools.TextureCanvas.FillEllipse ( float  x,
float  y,
float  rx,
float  ry 
)
inline
void EdyCommonTools.TextureCanvas.FillRect ( float  x,
float  y,
float  width,
float  height 
)
inline
void EdyCommonTools.TextureCanvas.FillRect ( float  x,
float  y,
float  width,
float  height,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.Function ( System.Func< float, float >  func,
float  x0,
float  x1,
float  stepSize = -1.0f 
)
inline
void EdyCommonTools.TextureCanvas.Function ( System.Func< float, float >  func,
float  stepSize = -1.0f 
)
inline
void EdyCommonTools.TextureCanvas.Function ( System.Func< float, float >  func,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.Function ( System.Func< float, float >  func,
float  x0,
float  x1,
Color  col,
float  stepSize 
)
inline
int EdyCommonTools.TextureCanvas.GetPixelHeight ( float  height)
inline
int EdyCommonTools.TextureCanvas.GetPixelWidth ( float  width)
inline
int EdyCommonTools.TextureCanvas.GetPixelX ( float  x)
inline
int EdyCommonTools.TextureCanvas.GetPixelY ( float  y)
inline
void EdyCommonTools.TextureCanvas.Grid ( float  stepX,
float  stepY 
)
inline
void EdyCommonTools.TextureCanvas.Grid ( float  stepX,
float  stepY,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.GUIDraw ( int  x,
int  y 
)
inline
void EdyCommonTools.TextureCanvas.GUIStretchDraw ( int  x,
int  y,
int  width,
int  height 
)
inline
void EdyCommonTools.TextureCanvas.GUIStretchDraw ( int  x,
int  y,
int  width 
)
inline
void EdyCommonTools.TextureCanvas.HorizontalAction ( System.Action< float >  action,
float  interval,
float  offset = 0.0f 
)
inline
void EdyCommonTools.TextureCanvas.HorizontalGrid ( float  stepY)
inline
void EdyCommonTools.TextureCanvas.HorizontalLine ( float  y)
inline
void EdyCommonTools.TextureCanvas.Line ( float  x0,
float  y0,
float  x1,
float  y1 
)
inline
void EdyCommonTools.TextureCanvas.LineH ( float  y,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.LineTo ( float  x1,
float  y1 
)
inline
void EdyCommonTools.TextureCanvas.LineV ( float  x,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.MoveTo ( float  x0,
float  y0 
)
inline
void EdyCommonTools.TextureCanvas.Pixel ( float  x,
float  y 
)
inline
float EdyCommonTools.TextureCanvas.Pixels2CanvasX ( int  pixels)
inline
float EdyCommonTools.TextureCanvas.Pixels2CanvasY ( int  pixels)
inline
int EdyCommonTools.TextureCanvas.PixelsWidth ( )
inline
void EdyCommonTools.TextureCanvas.Rect ( float  x,
float  y,
float  width,
float  height,
Color  col 
)
inline
void EdyCommonTools.TextureCanvas.Rectangle ( float  x,
float  y,
float  width,
float  height 
)
inline
void EdyCommonTools.TextureCanvas.ResizeTexture ( int  pixelsWd,
int  pixelsHt 
)
inline
void EdyCommonTools.TextureCanvas.Restore ( )
inline
void EdyCommonTools.TextureCanvas.Save ( )
inline
void EdyCommonTools.TextureCanvas.SaveToPNG ( string  fileNameAndPath)
inline
void EdyCommonTools.TextureCanvas.SetAlpha ( float  value)
inline
void EdyCommonTools.TextureCanvas.SetAlphaBlend ( bool  value)
inline
void EdyCommonTools.TextureCanvas.SetFunctionResolution ( int  value)
inline
void EdyCommonTools.TextureCanvas.SolidFunction ( System.Func< float, float >  func,
float  x0,
float  x1 
)
inline
void EdyCommonTools.TextureCanvas.SolidFunction ( System.Func< float, float >  func)
inline
void EdyCommonTools.TextureCanvas.VerticalAction ( System.Action< float >  action,
float  interval,
float  offset = 0.0f 
)
inline
void EdyCommonTools.TextureCanvas.VerticalGrid ( float  stepX)
inline
void EdyCommonTools.TextureCanvas.VerticalLine ( float  x)
inline

Property Documentation

float EdyCommonTools.TextureCanvas.alpha
getset
bool EdyCommonTools.TextureCanvas.alphaBlend
getset
Rect EdyCommonTools.TextureCanvas.clipArea
getset
Color EdyCommonTools.TextureCanvas.color
getset
int EdyCommonTools.TextureCanvas.dashInterval
getset
int EdyCommonTools.TextureCanvas.dotInterval
getset
int EdyCommonTools.TextureCanvas.functionResolution
getset
int EdyCommonTools.TextureCanvas.height
get
LineType EdyCommonTools.TextureCanvas.lineType
getset
Rect EdyCommonTools.TextureCanvas.rect
getset
Texture2D EdyCommonTools.TextureCanvas.texture
get
int EdyCommonTools.TextureCanvas.width
get

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