VIS2 SS2013 CVD DVR
 All Classes Namespaces Functions Enumerations Properties
Public Member Functions | Protected Member Functions | Properties | List of all members
visLU.Gui.Transferfunction Class Reference

Class to handle the transferfunction control More...

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

Public Member Functions

void setControlPoint (Point position, System.Drawing.Color color)
 Adds new control point or edit existing one; Updates the control points in the transferfunction control and in the game properties instance- More...
 
bool changeControlPoint (Point oldPosition, Point newPosition)
 Changes position(-> iso value and alpha) of the selected control point, if any. More...
 
bool removeControlPoint (Point cpPosition)
 Removes a selected control point. More...
 

Protected Member Functions

override void Initialize ()
 
override void LoadContent ()
 
override void Update ()
 Updates all the data needed by the transferfunction panel: control points, density values; scales all the data to draw to the dimensions of the control panel. More...
 
override void Draw ()
 Draws the transferfunction control -> control points and density function of the dataset if enabled. More...
 
override void OnSizeChanged (EventArgs e)
 
- Protected Member Functions inherited from visLU.VisXnaConrol
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)
 

Properties

bool EnableTransferFunction [set]
 
bool DensityFunction [set]
 
bool UpdateIsoValues [set]
 
bool GetControlPoints [set]
 
bool SetControlPoints [get, set]
 
- Properties inherited from visLU.VisXnaConrol
GraphicsDevice GraphicsDevice [get]
 
VisServiceContainer Services [get]
 

Additional Inherited Members

- Public Attributes inherited from visLU.VisXnaConrol
bool swapBuffers = true
 

Detailed Description

Class to handle the transferfunction control

Definition at line 23 of file Transferfunction.cs.

Member Function Documentation

bool visLU.Gui.Transferfunction.changeControlPoint ( Point  oldPosition,
Point  newPosition 
)

Changes position(-> iso value and alpha) of the selected control point, if any.

Parameters
oldPosition
newPosition

Definition at line 569 of file Transferfunction.cs.

override void visLU.Gui.Transferfunction.Draw ( )
protectedvirtual

Draws the transferfunction control -> control points and density function of the dataset if enabled.

Implements visLU.VisXnaConrol.

Definition at line 208 of file Transferfunction.cs.

bool visLU.Gui.Transferfunction.removeControlPoint ( Point  cpPosition)

Removes a selected control point.

Parameters
cpPosition

Definition at line 613 of file Transferfunction.cs.

void visLU.Gui.Transferfunction.setControlPoint ( Point  position,
System.Drawing.Color  color 
)

Adds new control point or edit existing one; Updates the control points in the transferfunction control and in the game properties instance-

Parameters
positionMouse postion
colorPicked Color

Definition at line 516 of file Transferfunction.cs.

override void visLU.Gui.Transferfunction.Update ( )
protectedvirtual

Updates all the data needed by the transferfunction panel: control points, density values; scales all the data to draw to the dimensions of the control panel.

Implements visLU.VisXnaConrol.

Definition at line 147 of file Transferfunction.cs.


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