VIS2 SS2013 CVD DVR
 All Classes Namespaces Functions Enumerations Properties
Public Attributes | Protected Member Functions | Properties | List of all members
visLU.VisXnaConrol Class Referenceabstract

Defines Windows Forms Controls that use the XNA GraphicsDevice to draw itself; We use this class as a basis to define Windows Form Controls to render our scene and the transfer function More...

Inheritance diagram for visLU.VisXnaConrol:
visLU.Data visLU.Engine visLU.Gui.Transferfunction

Public Attributes

bool swapBuffers = true
 

Protected Member Functions

override void OnCreateControl ()
 
override void Dispose (bool disposing)
 Disposes the control. More...
 
override void OnInvalidated (InvalidateEventArgs e)
 
override void OnPaint (PaintEventArgs e)
 Redraws the control in response to a WinForms paint message. More...
 
virtual void PaintUsingSystemDrawing (Graphics graphics, string text)
 If we do not have a valid graphics device (for instance if the device is lost, or if we are running inside the Form designer), we must use regular System.Drawing method to display a status message. More...
 
override void OnPaintBackground (PaintEventArgs pevent)
 Ignores WinForms paint-background messages. The default implementation would clear the control to the current background color, causing flickering when our OnPaint implementation then immediately draws some other color over the top using the XNA Framework GraphicsDevice. More...
 
override void OnSizeChanged (EventArgs e)
 
abstract void Initialize ()
 
abstract void LoadContent ()
 
abstract new void Update ()
 
abstract void Draw ()
 

Properties

GraphicsDevice GraphicsDevice [get]
 
VisServiceContainer Services [get]
 

Detailed Description

Defines Windows Forms Controls that use the XNA GraphicsDevice to draw itself; We use this class as a basis to define Windows Form Controls to render our scene and the transfer function

Definition at line 18 of file VisXnaConrol.cs.

Member Function Documentation

override void visLU.VisXnaConrol.Dispose ( bool  disposing)
protected

Disposes the control.

Definition at line 68 of file VisXnaConrol.cs.

override void visLU.VisXnaConrol.OnPaint ( PaintEventArgs  e)
protected

Redraws the control in response to a WinForms paint message.

Definition at line 109 of file VisXnaConrol.cs.

override void visLU.VisXnaConrol.OnPaintBackground ( PaintEventArgs  pevent)
protected

Ignores WinForms paint-background messages. The default implementation would clear the control to the current background color, causing flickering when our OnPaint implementation then immediately draws some other color over the top using the XNA Framework GraphicsDevice.

Definition at line 296 of file VisXnaConrol.cs.

virtual void visLU.VisXnaConrol.PaintUsingSystemDrawing ( Graphics  graphics,
string  text 
)
protectedvirtual

If we do not have a valid graphics device (for instance if the device is lost, or if we are running inside the Form designer), we must use regular System.Drawing method to display a status message.

Definition at line 273 of file VisXnaConrol.cs.


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