C# Class TestMSBSDF.CompletionArrayControl

Exibir arquivo Open project: Patapom/GodComplex

Protected Properties

Property Type Description
m_brushFailed SolidBrush
m_brushSuccess SolidBrush
m_dimensionX int
m_dimensionY int
m_dimensionZ int
m_penGrid Pen
m_penSelection Pen
m_selectedX int
m_selectedY int
m_selectedZ int
m_states float[,,]
m_texts string[,,]

Public Methods

Method Description
CompletionArrayControl ( ) : System
GetState ( int _X, int _Y, int _Z ) : float

Gets a state

GetText ( int _X, int _Y, int _Z ) : string

Gets a state error

GetXYAt ( Point _clientPos, int &_X, int &_Y ) : bool
Init ( int _dimensionX, int _dimensionY, int _dimensionZ ) : void

Initializes the control with the correct dimensions

IsPointValid ( Point _clientPos ) : bool
Select ( int _X, int _Y, int _Z ) : void

Updates selection

SelectAt ( Point _clientPos ) : void
SetState ( int _X, int _Y, int _Z, float _state, string _text ) : void

Sets a state

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

DisposeGraphics ( ) : void
FillRectangle ( Graphics _g, Brush _brush, float x0, float y0, float x1, float y1 ) : void
InitializeGraphics ( ) : void
IsInputKey ( Keys keyData ) : bool
OnKeyDown ( KeyEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseHover ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs e ) : void
OnResize ( EventArgs eventargs ) : void

Private Methods

Method Description
GetCapsule ( RectangleF baseRect ) : GraphicsPath
GetRoundedRect ( RectangleF baseRect, float radius ) : GraphicsPath
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

timer1_Tick ( object sender, EventArgs e ) : void

Method Details

CompletionArrayControl() public method

public CompletionArrayControl ( ) : System
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

DisposeGraphics() protected method

protected DisposeGraphics ( ) : void
return void

FillRectangle() protected method

protected FillRectangle ( Graphics _g, Brush _brush, float x0, float y0, float x1, float y1 ) : void
_g Graphics
_brush Brush
x0 float
y0 float
x1 float
y1 float
return void

GetState() public method

Gets a state
public GetState ( int _X, int _Y, int _Z ) : float
_X int
_Y int
_Z int
return float

GetText() public method

Gets a state error
public GetText ( int _X, int _Y, int _Z ) : string
_X int
_Y int
_Z int
return string

GetXYAt() public method

public GetXYAt ( Point _clientPos, int &_X, int &_Y ) : bool
_clientPos Point
_X int
_Y int
return bool

Init() public method

Initializes the control with the correct dimensions
public Init ( int _dimensionX, int _dimensionY, int _dimensionZ ) : void
_dimensionX int
_dimensionY int
_dimensionZ int
return void

InitializeGraphics() protected method

protected InitializeGraphics ( ) : void
return void

IsInputKey() protected method

protected IsInputKey ( Keys keyData ) : bool
keyData Keys
return bool

IsPointValid() public method

public IsPointValid ( Point _clientPos ) : bool
_clientPos Point
return bool

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseHover() protected method

protected OnMouseHover ( EventArgs e ) : void
e EventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs eventargs ) : void
eventargs EventArgs
return void

Select() public method

Updates selection
public Select ( int _X, int _Y, int _Z ) : void
_X int
_Y int
_Z int
return void

SelectAt() public method

public SelectAt ( Point _clientPos ) : void
_clientPos Point
return void

SetState() public method

Sets a state
public SetState ( int _X, int _Y, int _Z, float _state, string _text ) : void
_X int
_Y int
_Z int
_state float
_text string
return void

Property Details

m_brushFailed protected_oe property

protected SolidBrush m_brushFailed
return SolidBrush

m_brushSuccess protected_oe property

protected SolidBrush m_brushSuccess
return SolidBrush

m_dimensionX protected_oe property

protected int m_dimensionX
return int

m_dimensionY protected_oe property

protected int m_dimensionY
return int

m_dimensionZ protected_oe property

protected int m_dimensionZ
return int

m_penGrid protected_oe property

protected Pen m_penGrid
return Pen

m_penSelection protected_oe property

protected Pen m_penSelection
return Pen

m_selectedX protected_oe property

protected int m_selectedX
return int

m_selectedY protected_oe property

protected int m_selectedY
return int

m_selectedZ protected_oe property

protected int m_selectedZ
return int

m_states protected_oe property

protected float[,,] m_states
return float[,,]

m_texts protected_oe property

protected string[,,] m_texts
return string[,,]