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

vuBCCRaycaster Class Reference

A utility window for raycasting BCC grid data. More...

#include <vuBCCRaycaster.h>

Inheritance diagram for vuBCCRaycaster:

Inheritance graph
[legend]
Collaboration diagram for vuBCCRaycaster:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuBCCRaycaster ()
 Constructor.
 ~vuBCCRaycaster ()
 Destructor.
bool init (const char *DataFile)
virtual void DrawAgain ()
 This function must rerender the scene completely.
virtual void DrawFromImage ()
 This function must take the data vuImage buffer from the last call to getCurrent Image and draw that on the screen.
virtual vuImagegetCurrentImage ()
 This function must return a pointer to the current vuImage buffer that the method can write to or read from.
virtual vuCameragetCamera ()
 This function must return a pointer to the camera that is taking the picture of the scene.
virtual void addBottom (wxSizer *sizer)
 This method adds controls to the bottom of the window.

Static Public Member Functions

const char * getFileType ()
 Returns the type of vu Datafile that the utility works with.

Protected Member Functions

bool glInit ()
 Initializes open gl for the utility.
void onRender ()
void glResize ()
 Resizes the gl viewport and renders the volume.
void onMouse (wxMouseEvent &ev)
 Handles mouse commands from the user.
void OnButtonRender (wxCommandEvent &event)
vu1getVolume ()
 Returns a pointer to the volume object. (usually m_Data).

Private Attributes

vu1512113m_Data
 The spectral raycaster owned by the utility.
float m_ViewScale
 The zoom magnification of the splatter.
vuTFDesign m_TFunc
 The transfer function to be applied to the splatter.
vuTransferDialog m_TFuncDlg
 The transfer function dialog.

Detailed Description

A utility window for raycasting BCC grid data.

Definition at line 15 of file vuBCCRaycaster.h.


Constructor & Destructor Documentation

vuBCCRaycaster::vuBCCRaycaster  ) 
 

Constructor.

Definition at line 25 of file vuBCCRaycaster.cpp.

vuBCCRaycaster::~vuBCCRaycaster  ) 
 

Destructor.

Definition at line 35 of file vuBCCRaycaster.cpp.

References m_Data.


Member Function Documentation

void vuBCCRaycaster::addBottom wxSizer *  sizer  )  [virtual]
 

This method adds controls to the bottom of the window.

Reimplemented from vuBasicUtility.

Definition at line 107 of file vuBCCRaycaster.cpp.

References idRENDER.

void vuBCCRaycaster::DrawAgain  )  [virtual]
 

This function must rerender the scene completely.

This is so that the key frame animator can set the camera, and then force a redraw by the method.

Implements vuBasicUtility.

Definition at line 81 of file vuBCCRaycaster.cpp.

References m_Data, vuGLCanvas::redraw(), and vu1512113::refresh.

Here is the call graph for this function:

void vuBCCRaycaster::DrawFromImage  )  [virtual]
 

This function must take the data vuImage buffer from the last call to getCurrent Image and draw that on the screen.

This is so that prerendered video animation can be displayed by the key frame animator by simply setting the vuImage returned by getCurrentImage and then calling this function.

Implements vuBasicUtility.

Definition at line 88 of file vuBCCRaycaster.cpp.

References vuGLCanvas::redraw().

Here is the call graph for this function:

vuCamera * vuBCCRaycaster::getCamera  )  [virtual]
 

This function must return a pointer to the camera that is taking the picture of the scene.

This is so that the key frame animator can read the camera when it needs to take a snapshot and change the camera when it wants the method to rerender the scene from a predetermined camera position.

Implements vuBasicUtility.

Definition at line 98 of file vuBCCRaycaster.cpp.

References vu1::getCameraPtr(), and m_Data.

Here is the call graph for this function:

vuImage * vuBCCRaycaster::getCurrentImage  )  [virtual]
 

This function must return a pointer to the current vuImage buffer that the method can write to or read from.

This is how the key framer will update the screen.

Implements vuBasicUtility.

Definition at line 93 of file vuBCCRaycaster.cpp.

References vu1512113::getImage(), and m_Data.

Here is the call graph for this function:

const char * vuBCCRaycaster::getFileType  )  [static]
 

Returns the type of vu Datafile that the utility works with.

Reimplemented from vuBasicUtility.

Definition at line 44 of file vuBCCRaycaster.cpp.

vu1* vuBCCRaycaster::getVolume  )  [inline, protected, virtual]
 

Returns a pointer to the volume object. (usually m_Data).

Reimplemented from vuBasicUtility.

Definition at line 63 of file vuBCCRaycaster.h.

bool vuBCCRaycaster::glInit  )  [protected, virtual]
 

Initializes open gl for the utility.

The method calls the initgl() method so it can do the proper initialization.

Reimplemented from vuBasicUtility.

Definition at line 132 of file vuBCCRaycaster.cpp.

References vu1512113::initOpenGL(), and m_Data.

Here is the call graph for this function:

void vuBCCRaycaster::glResize  )  [protected, virtual]
 

Resizes the gl viewport and renders the volume.

Reimplemented from vuBasicUtility.

Definition at line 177 of file vuBCCRaycaster.cpp.

References vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), GLint, glViewport(), m_Data, and vu1512113::setImageSize().

Here is the call graph for this function:

bool vuBCCRaycaster::init const char *  DataFile  )  [virtual]
 

Initializes the utility window. A object is created and the volume data is read. The window appears when finished.

Reimplemented from vuBasicUtility.

Definition at line 53 of file vuBCCRaycaster.cpp.

References vu1::getErrorMessage(), m_Data, vu1512113::read(), and vu1::setFileName().

Here is the call graph for this function:

void vuBCCRaycaster::OnButtonRender wxCommandEvent &  event  )  [protected]
 

Definition at line 120 of file vuBCCRaycaster.cpp.

References m_Data, vuGLCanvas::redraw(), vu1512113::refresh, and vu1::setIsReRendering().

Here is the call graph for this function:

void vuBCCRaycaster::onMouse wxMouseEvent &  ev  )  [protected, virtual]
 

Handles mouse commands from the user.

The mouse is the main interface between the user and the utility at the moment. This method receives mouse events from the window, and carries out commands.

Reimplemented from vuBasicUtility.

Definition at line 210 of file vuBCCRaycaster.cpp.

References m_TFuncDlg.

void vuBCCRaycaster::onRender  )  [protected, virtual]
 

The method calls the render() method, setting it up to render to the window's gl canvas.

Reimplemented from vuBasicUtility.

Definition at line 152 of file vuBCCRaycaster.cpp.

References vu1::getCamera(), vuCamera::getHeight(), vuCamera::getWidth(), GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_MODELVIEW, GL_PROJECTION, glClear(), glLoadIdentity(), glMatrixMode(), glOrtho(), m_Data, m_TFunc, vu1512113::render(), and vu151211::setTransferFunc().

Here is the call graph for this function:


Member Data Documentation

vu1512113* vuBCCRaycaster::m_Data [private]
 

The spectral raycaster owned by the utility.

Definition at line 67 of file vuBCCRaycaster.h.

Referenced by DrawAgain(), getCamera(), getCurrentImage(), glInit(), glResize(), init(), OnButtonRender(), onRender(), and ~vuBCCRaycaster().

vuTFDesign vuBCCRaycaster::m_TFunc [private]
 

The transfer function to be applied to the splatter.

Reimplemented from vuBasicUtility.

Definition at line 71 of file vuBCCRaycaster.h.

Referenced by onRender().

vuTransferDialog vuBCCRaycaster::m_TFuncDlg [private]
 

The transfer function dialog.

Definition at line 73 of file vuBCCRaycaster.h.

Referenced by onMouse().

float vuBCCRaycaster::m_ViewScale [private]
 

The zoom magnification of the splatter.

Definition at line 69 of file vuBCCRaycaster.h.


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