#include <vuBCCRaycaster.h>
Inheritance diagram for vuBCCRaycaster:
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 vuImage * | getCurrentImage () |
This function must return a pointer to the current vuImage buffer that the method can write to or read from. | |
virtual vuCamera * | getCamera () |
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) |
vu1 * | getVolume () |
Returns a pointer to the volume object. (usually m_Data). | |
Private Attributes | |
vu1512113 * | m_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. |
Definition at line 15 of file vuBCCRaycaster.h.
|
Constructor.
Definition at line 25 of file vuBCCRaycaster.cpp. |
|
Destructor.
Definition at line 35 of file vuBCCRaycaster.cpp. References m_Data. |
|
This method adds controls to the bottom of the window.
Reimplemented from vuBasicUtility. Definition at line 107 of file vuBCCRaycaster.cpp. References idRENDER. |
|
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:
|
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:
|
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:
|
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:
|
Returns the type of vu Datafile that the utility works with.
Reimplemented from vuBasicUtility. Definition at line 44 of file vuBCCRaycaster.cpp. |
|
Returns a pointer to the volume object. (usually m_Data).
Reimplemented from vuBasicUtility. Definition at line 63 of file vuBCCRaycaster.h. |
|
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:
|
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:
|
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:
|
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:
|
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. |
|
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:
|
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(). |
|
The transfer function to be applied to the splatter.
Reimplemented from vuBasicUtility. Definition at line 71 of file vuBCCRaycaster.h. Referenced by onRender(). |
|
The transfer function dialog.
Definition at line 73 of file vuBCCRaycaster.h. Referenced by onMouse(). |
|
The zoom magnification of the splatter.
Definition at line 69 of file vuBCCRaycaster.h. |