Class to handle the transferfunction control More...
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) |
![]() | |
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] |
![]() | |
GraphicsDevice | GraphicsDevice [get] |
VisServiceContainer | Services [get] |
Additional Inherited Members | |
![]() | |
bool | swapBuffers = true |
Class to handle the transferfunction control
Definition at line 23 of file Transferfunction.cs.
bool visLU.Gui.Transferfunction.changeControlPoint | ( | Point | oldPosition, |
Point | newPosition | ||
) |
Changes position(-> iso value and alpha) of the selected control point, if any.
oldPosition | |
newPosition |
Definition at line 569 of file Transferfunction.cs.
|
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.
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-
position | Mouse postion |
color | Picked Color |
Definition at line 516 of file Transferfunction.cs.
|
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.