Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuKeyFrameCanvas Class Reference

This is supposed to diplay the chart of frames in time... More...

#include <vuKeyFrameCanvas.h>

Inheritance diagram for vuKeyFrameCanvas:

Inheritance graph
[legend]
Collaboration diagram for vuKeyFrameCanvas:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

This is supposed to diplay the chart of frames in time...

I don't have time to complete it now...

Todo:
everything in this (add the ability to draw icons in the time access representing the frame.

Definition at line 16 of file vuKeyFrameCanvas.h.


Constructor & Destructor Documentation

vuKeyFrameCanvas::vuKeyFrameCanvas wxWindow *  parent,
wxWindowID  id = -1,
bool  edit = false
 

Definition at line 16 of file vuKeyFrameCanvas.cpp.

References dword.

vuKeyFrameCanvas::~vuKeyFrameCanvas  ) 
 

The destructor.

Definition at line 33 of file vuKeyFrameCanvas.cpp.


Member Function Documentation

bool vuKeyFrameCanvas::glInit  )  [protected, virtual]
 

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:

void vuKeyFrameCanvas::OnMouse wxMouseEvent &  ev  )  [protected]
 

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:

void vuKeyFrameCanvas::postEvent wxEventType  ev  )  [protected]
 

Helper function that posts the passed in event to the event handler.

Definition at line 247 of file vuKeyFrameCanvas.cpp.

Referenced by OnMouse().

void vuKeyFrameCanvas::render  )  [protected, virtual]
 

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:

void vuKeyFrameCanvas::resize  )  [protected, virtual]
 

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:

void vuKeyFrameCanvas::setSmoothing float  opacity,
float  colour
 

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:

void vuKeyFrameCanvas::setTransferFunc  ) 
 

Returns the transfer function displayed by the canvas.

Sets the transfer function to display on the canvas.


Member Data Documentation

dword vuKeyFrameCanvas::m_Colour [protected]
 

The colour node selected, if any (if none then value is -1).

Definition at line 62 of file vuKeyFrameCanvas.h.

Referenced by OnMouse().

bool vuKeyFrameCanvas::m_DoSpectral [protected]
 

Indicates whether spectral colours are to be designed or RGBa.

Definition at line 72 of file vuKeyFrameCanvas.h.

float vuKeyFrameCanvas::m_dx [protected]
 

Grid widths and heights in graph coordinates.

Definition at line 57 of file vuKeyFrameCanvas.h.

Referenced by resize().

float vuKeyFrameCanvas::m_dy [protected]
 

Grid widths and heights in graph coordinates.

Definition at line 57 of file vuKeyFrameCanvas.h.

Referenced by OnMouse(), render(), and resize().

bool vuKeyFrameCanvas::m_Edit [protected]
 

The transfer function being shown in the Canvas.

Whether the transfer function is editeable or not.

Definition at line 52 of file vuKeyFrameCanvas.h.

dword vuKeyFrameCanvas::m_Opacity [protected]
 

The opacity node selected, if any (if none then value is -1).

Definition at line 60 of file vuKeyFrameCanvas.h.

Referenced by OnMouse().

const dword vuKeyFrameCanvas::m_xMax [protected]
 

Definition at line 67 of file vuKeyFrameCanvas.h.

Referenced by render(), and resize().

const dword vuKeyFrameCanvas::m_xMin [protected]
 

These are the ranges for the graph, ie the scales on the axes.

Definition at line 66 of file vuKeyFrameCanvas.h.

Referenced by OnMouse(), render(), and resize().

float vuKeyFrameCanvas::m_xScreenMax [protected]
 

The coordinates of the screen.

Definition at line 55 of file vuKeyFrameCanvas.h.

Referenced by glInit(), and resize().

float vuKeyFrameCanvas::m_xScreenMin [protected]
 

The coordinates of the screen.

Definition at line 55 of file vuKeyFrameCanvas.h.

Referenced by glInit(), and resize().

const float vuKeyFrameCanvas::m_yMax [protected]
 

Definition at line 69 of file vuKeyFrameCanvas.h.

Referenced by render(), and resize().

const float vuKeyFrameCanvas::m_yMin [protected]
 

Definition at line 68 of file vuKeyFrameCanvas.h.

Referenced by render(), and resize().

float vuKeyFrameCanvas::m_yScreenMax [protected]
 

The coordinates of the screen.

Definition at line 55 of file vuKeyFrameCanvas.h.

Referenced by glInit(), and resize().

float vuKeyFrameCanvas::m_yScreenMin [protected]
 

The coordinates of the screen.

Definition at line 55 of file vuKeyFrameCanvas.h.

Referenced by glInit(), and resize().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:17 2004 for vuVolume by  doxygen 1.3.9.1