C# Class NewTOAPIA.UI.Graphic

Inheritance: IGraphic
Show file Open project: Wiladams/NewTOAPIA

Protected Properties

Property Type Description
fDimension NewTOAPIA.Graphics.Vector3D
fFrame RectangleI
fOrigin Point3D

Public Methods

Method Description
Contains ( int x, int y ) : bool

Determine whether a given point is within our frame. The point is given in the coordinate system of the containing control, and so is measured against the frame and not against the ClientRectangle.

Draw ( DrawEvent devent ) : void
DrawBackground ( DrawEvent devent ) : void
DrawForeground ( DrawEvent devent ) : void
DrawSelf ( DrawEvent devent ) : void
Focus ( ) : void
Graphic ( ) : System
Graphic ( String name ) : System
Graphic ( String name, RectangleI frame ) : System
Graphic ( String name, int x, int y, int width, int height ) : System
Invalidate ( ) : void

Invalidate the entire client rectangle.

Invalidate ( RectangleI portionOfClientRectangle ) : void

Invalidate a portion of the client rectangle.

LoseFocus ( ) : void
MoveBy ( int dx, int dy ) : void
MoveTo ( int x, int y ) : void
OnCompleted ( ) : void
OnDraw ( DrawEvent devent ) : void
OnError ( Exception excep ) : void
OnKeyDown ( KeyboardActivityArgs ke ) : void
OnKeyPress ( KeyboardActivityArgs kpe ) : void
OnKeyUp ( KeyboardActivityArgs ke ) : void
OnMouseDown ( MouseActivityArgs e ) : void
OnMouseEnter ( MouseActivityArgs e ) : void
OnMouseHover ( MouseActivityArgs e ) : void
OnMouseLeave ( MouseActivityArgs e ) : void
OnMouseMove ( MouseActivityArgs e ) : void
OnMouseUp ( MouseActivityArgs e ) : void
OnMouseWheel ( MouseActivityArgs e ) : void
OnNext ( KeyboardActivityArgs ke ) : void
OnNext ( MouseActivityArgs e ) : void
ResizeBy ( int dw, int dh ) : void
ResizeTo ( int width, int height ) : void
UpdateBoundaryState ( ) : void
UpdateGeometryState ( ) : void

The Geometry state needs to be updated whenever there is a change to the frame, or any other aspect of the geometry. Here recalculations that are dependent on the geometry will occur. By default, the container is queried for its transform.

Protected Methods

Method Description
OnDebug ( DrawEvent devent ) : void
OnGainedFocus ( ) : void
OnLostFocus ( ) : void
OnMoving ( int dw, int dh ) : void
OnSetContainer ( ) : void
OnSetLocalTransform ( ) : void
OnSetWorldTransform ( ) : void
OnUpdateGeometryState ( ) : void

Method Details

Contains() public method

Determine whether a given point is within our frame. The point is given in the coordinate system of the containing control, and so is measured against the frame and not against the ClientRectangle.
public Contains ( int x, int y ) : bool
x int The x-coordinate of the point of interest.
y int The y-coordinate of the point of interest.
return bool

Draw() public method

public Draw ( DrawEvent devent ) : void
devent DrawEvent
return void

DrawBackground() public method

public DrawBackground ( DrawEvent devent ) : void
devent DrawEvent
return void

DrawForeground() public method

public DrawForeground ( DrawEvent devent ) : void
devent DrawEvent
return void

DrawSelf() public method

public DrawSelf ( DrawEvent devent ) : void
devent DrawEvent
return void

Focus() public method

public Focus ( ) : void
return void

Graphic() public method

public Graphic ( ) : System
return System

Graphic() public method

public Graphic ( String name ) : System
name String
return System

Graphic() public method

public Graphic ( String name, RectangleI frame ) : System
name String
frame RectangleI
return System

Graphic() public method

public Graphic ( String name, int x, int y, int width, int height ) : System
name String
x int
y int
width int
height int
return System

Invalidate() public method

Invalidate the entire client rectangle.
public Invalidate ( ) : void
return void

Invalidate() public method

Invalidate a portion of the client rectangle.
public Invalidate ( RectangleI portionOfClientRectangle ) : void
portionOfClientRectangle RectangleI
return void

LoseFocus() public method

public LoseFocus ( ) : void
return void

MoveBy() public method

public MoveBy ( int dx, int dy ) : void
dx int
dy int
return void

MoveTo() public method

public MoveTo ( int x, int y ) : void
x int
y int
return void

OnCompleted() public method

public OnCompleted ( ) : void
return void

OnDebug() protected method

protected OnDebug ( DrawEvent devent ) : void
devent DrawEvent
return void

OnDraw() public method

public OnDraw ( DrawEvent devent ) : void
devent DrawEvent
return void

OnError() public method

public OnError ( Exception excep ) : void
excep System.Exception
return void

OnGainedFocus() protected method

protected OnGainedFocus ( ) : void
return void

OnKeyDown() public method

public OnKeyDown ( KeyboardActivityArgs ke ) : void
ke KeyboardActivityArgs
return void

OnKeyPress() public method

public OnKeyPress ( KeyboardActivityArgs kpe ) : void
kpe KeyboardActivityArgs
return void

OnKeyUp() public method

public OnKeyUp ( KeyboardActivityArgs ke ) : void
ke KeyboardActivityArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( ) : void
return void

OnMouseDown() public method

public OnMouseDown ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMouseEnter() public method

public OnMouseEnter ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMouseHover() public method

public OnMouseHover ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMouseLeave() public method

public OnMouseLeave ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMouseMove() public method

public OnMouseMove ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMouseUp() public method

public OnMouseUp ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMouseWheel() public method

public OnMouseWheel ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnMoving() protected method

protected OnMoving ( int dw, int dh ) : void
dw int
dh int
return void

OnNext() public method

public OnNext ( KeyboardActivityArgs ke ) : void
ke KeyboardActivityArgs
return void

OnNext() public method

public OnNext ( MouseActivityArgs e ) : void
e MouseActivityArgs
return void

OnSetContainer() protected method

protected OnSetContainer ( ) : void
return void

OnSetLocalTransform() protected method

protected OnSetLocalTransform ( ) : void
return void

OnSetWorldTransform() protected method

protected OnSetWorldTransform ( ) : void
return void

OnUpdateGeometryState() protected method

protected OnUpdateGeometryState ( ) : void
return void

ResizeBy() public method

public ResizeBy ( int dw, int dh ) : void
dw int
dh int
return void

ResizeTo() public method

public ResizeTo ( int width, int height ) : void
width int
height int
return void

UpdateBoundaryState() public method

public UpdateBoundaryState ( ) : void
return void

UpdateGeometryState() public method

The Geometry state needs to be updated whenever there is a change to the frame, or any other aspect of the geometry. Here recalculations that are dependent on the geometry will occur. By default, the container is queried for its transform.
public UpdateGeometryState ( ) : void
return void

Property Details

fDimension protected property

protected Vector3D,NewTOAPIA.Graphics fDimension
return NewTOAPIA.Graphics.Vector3D

fFrame protected property

protected RectangleI fFrame
return RectangleI

fOrigin protected property

protected Point3D fOrigin
return Point3D