C# Class TestMSBSDF.CompletionArrayControl

Afficher le fichier Open project: Patapom/GodComplex

Protected Properties

Свойство 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[,,]

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public CompletionArrayControl ( ) : System
Résultat System

Dispose() protected méthode

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

DisposeGraphics() protected méthode

protected DisposeGraphics ( ) : void
Résultat void

FillRectangle() protected méthode

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
Résultat void

GetState() public méthode

Gets a state
public GetState ( int _X, int _Y, int _Z ) : float
_X int
_Y int
_Z int
Résultat float

GetText() public méthode

Gets a state error
public GetText ( int _X, int _Y, int _Z ) : string
_X int
_Y int
_Z int
Résultat string

GetXYAt() public méthode

public GetXYAt ( Point _clientPos, int &_X, int &_Y ) : bool
_clientPos Point
_X int
_Y int
Résultat bool

Init() public méthode

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

InitializeGraphics() protected méthode

protected InitializeGraphics ( ) : void
Résultat void

IsInputKey() protected méthode

protected IsInputKey ( Keys keyData ) : bool
keyData Keys
Résultat bool

IsPointValid() public méthode

public IsPointValid ( Point _clientPos ) : bool
_clientPos Point
Résultat bool

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseHover() protected méthode

protected OnMouseHover ( EventArgs e ) : void
e EventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseWheel() protected méthode

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnPaintBackground() protected méthode

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs eventargs ) : void
eventargs EventArgs
Résultat void

Select() public méthode

Updates selection
public Select ( int _X, int _Y, int _Z ) : void
_X int
_Y int
_Z int
Résultat void

SelectAt() public méthode

public SelectAt ( Point _clientPos ) : void
_clientPos Point
Résultat void

SetState() public méthode

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
Résultat void

Property Details

m_brushFailed protected_oe property

protected SolidBrush m_brushFailed
Résultat SolidBrush

m_brushSuccess protected_oe property

protected SolidBrush m_brushSuccess
Résultat SolidBrush

m_dimensionX protected_oe property

protected int m_dimensionX
Résultat int

m_dimensionY protected_oe property

protected int m_dimensionY
Résultat int

m_dimensionZ protected_oe property

protected int m_dimensionZ
Résultat int

m_penGrid protected_oe property

protected Pen m_penGrid
Résultat Pen

m_penSelection protected_oe property

protected Pen m_penSelection
Résultat Pen

m_selectedX protected_oe property

protected int m_selectedX
Résultat int

m_selectedY protected_oe property

protected int m_selectedY
Résultat int

m_selectedZ protected_oe property

protected int m_selectedZ
Résultat int

m_states protected_oe property

protected float[,,] m_states
Résultat float[,,]

m_texts protected_oe property

protected string[,,] m_texts
Résultat string[,,]