#include <vuKeyFrameCanvas.h>
Inheritance diagram for vuKeyFrameCanvas:
Public Member Functions | |
vuKeyFrameCanvas (wxWindow *parent, wxWindowID id=-1, bool edit=false) | |
~vuKeyFrameCanvas () | |
The destructor. | |
void | setTransferFunc () |
Returns the transfer function displayed by the canvas. | |
void | setSmoothing (float opacity, float colour) |
Sets the smoothing of the transfer function. | |
Protected Member Functions | |
bool | glInit () |
Initializes openGL for the transfer function canvas. | |
void | render () |
Renders the transfer function. | |
void | resize () |
Sets up the coordinates for the canvas. | |
void | OnMouse (wxMouseEvent &ev) |
Handles the mouse commands. | |
void | postEvent (wxEventType ev) |
Helper function that posts the passed in event to the event handler. | |
Protected Attributes | |
bool | m_Edit |
The transfer function being shown in the Canvas. | |
float | m_xScreenMin |
The coordinates of the screen. | |
float | m_xScreenMax |
The coordinates of the screen. | |
float | m_yScreenMin |
The coordinates of the screen. | |
float | m_yScreenMax |
The coordinates of the screen. | |
float | m_dx |
Grid widths and heights in graph coordinates. | |
float | m_dy |
Grid widths and heights in graph coordinates. | |
dword | m_Opacity |
The opacity node selected, if any (if none then value is -1). | |
dword | m_Colour |
The colour node selected, if any (if none then value is -1). | |
const dword | m_xMin |
These are the ranges for the graph, ie the scales on the axes. | |
const dword | m_xMax |
const float | m_yMin |
const float | m_yMax |
bool | m_DoSpectral |
Indicates whether spectral colours are to be designed or RGBa. |
I don't have time to complete it now...
Definition at line 16 of file vuKeyFrameCanvas.h.
|
Definition at line 16 of file vuKeyFrameCanvas.cpp. References dword. |
|
The destructor.
Definition at line 33 of file vuKeyFrameCanvas.cpp. |
|
Initializes openGL for the transfer function canvas.
Reimplemented from vuGLCanvas. Definition at line 51 of file vuKeyFrameCanvas.cpp. References GL_MODELVIEW, GL_PROJECTION, glClearColor(), glLoadIdentity(), glMatrixMode(), m_xScreenMax, m_xScreenMin, m_yScreenMax, and m_yScreenMin. |
Here is the call graph for this function:
|
Handles the mouse commands.
Definition at line 155 of file vuKeyFrameCanvas.cpp. References dword, m_Colour, m_dy, m_Opacity, m_xMin, postEvent(), vuGLCanvas::redraw(), vuEVT_TRANSFER_CHANGE, vuEVT_TRANSFER_NODE_OPEN, and vuEVT_TRANSFER_NODE_SELECT. |
Here is the call graph for this function:
|
Helper function that posts the passed in event to the event handler.
Definition at line 247 of file vuKeyFrameCanvas.cpp. Referenced by OnMouse(). |
|
Renders the transfer function.
Reimplemented from vuGLCanvas. Definition at line 97 of file vuKeyFrameCanvas.cpp. References dword, vuColour< S >::getData(), GL_COLOR_BUFFER_BIT, GL_LINE_LOOP, GL_LINE_STRIP, GL_QUADS, glBegin(), glClear(), glColor3f(), glColor3fv(), glColor4f(), glEnd(), glVertex2f(), m_dy, m_xMax, m_xMin, m_yMax, and m_yMin. |
Here is the call graph for this function:
|
Sets up the coordinates for the canvas.
Reimplemented from vuGLCanvas. Definition at line 69 of file vuKeyFrameCanvas.cpp. References vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), GL_MODELVIEW, GL_PROJECTION, GLint, glLoadIdentity(), glMatrixMode(), glViewport(), m_dx, m_dy, m_xMax, m_xMin, m_xScreenMax, m_xScreenMin, m_yMax, m_yMin, m_yScreenMax, and m_yScreenMin. |
Here is the call graph for this function:
|
Sets the smoothing of the transfer function.
Definition at line 41 of file vuKeyFrameCanvas.cpp. References vuGLCanvas::redraw(). |
Here is the call graph for this function:
|
Returns the transfer function displayed by the canvas. Sets the transfer function to display on the canvas. |
|
The colour node selected, if any (if none then value is -1).
Definition at line 62 of file vuKeyFrameCanvas.h. Referenced by OnMouse(). |
|
Indicates whether spectral colours are to be designed or RGBa.
Definition at line 72 of file vuKeyFrameCanvas.h. |
|
Grid widths and heights in graph coordinates.
Definition at line 57 of file vuKeyFrameCanvas.h. Referenced by resize(). |
|
Grid widths and heights in graph coordinates.
Definition at line 57 of file vuKeyFrameCanvas.h. |
|
The transfer function being shown in the Canvas. Whether the transfer function is editeable or not. Definition at line 52 of file vuKeyFrameCanvas.h. |
|
The opacity node selected, if any (if none then value is -1).
Definition at line 60 of file vuKeyFrameCanvas.h. Referenced by OnMouse(). |
|
Definition at line 67 of file vuKeyFrameCanvas.h. |
|
These are the ranges for the graph, ie the scales on the axes.
Definition at line 66 of file vuKeyFrameCanvas.h. |
|
The coordinates of the screen.
Definition at line 55 of file vuKeyFrameCanvas.h. |
|
The coordinates of the screen.
Definition at line 55 of file vuKeyFrameCanvas.h. |
|
Definition at line 69 of file vuKeyFrameCanvas.h. |
|
Definition at line 68 of file vuKeyFrameCanvas.h. |
|
The coordinates of the screen.
Definition at line 55 of file vuKeyFrameCanvas.h. |
|
The coordinates of the screen.
Definition at line 55 of file vuKeyFrameCanvas.h. |