#include <vuBCCSheetSplatter.h>
Inheritance diagram for vuBCCSheetSplatter:
Public Member Functions | |
vuBCCSheetSplatter () | |
Constructor. | |
~vuBCCSheetSplatter () | |
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 | addRight (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 | glRender () |
void | glResize () |
Resizes the gl viewport and renders the volume. | |
void | glOnMouse (wxMouseEvent &ev) |
Handles mouse commands from the user. | |
void | OnButtonRender (wxCommandEvent &event) |
initiate a refresh of the rendering | |
void | OnChangeSplatSize (void) |
Called if splat radius has been changed. | |
void | OnChangeSliceWidth (void) |
Called if slice width is to be changed. | |
void | drawBox (float sx, float sy, float sz) |
Draws an axis aligned box originated at (0,0,0). | |
Private Attributes | |
vu1512112 * | m_Data |
The spectral raycaster owned by the utility. | |
vuTFDesign | m_TFunc |
The transfer function. | |
int | m_x |
The width of the window. | |
int | m_y |
The height of the window. | |
bool | m_DrawBBox |
bounging box flag. | |
vuPreviewWin * | m_Preview |
This is a handle for a preview box. | |
wxTextCtrl * | m_Slicew |
for changing slice width and splat size | |
wxTextCtrl * | m_Splats |
for changing slice width and splat size |
|
Constructor.
Definition at line 33 of file vuBCCSheetSplatter.cpp. |
|
Destructor.
Definition at line 43 of file vuBCCSheetSplatter.cpp. References m_Data. |
|
This method adds controls to the bottom of the window.
Reimplemented from vuBasicUtility. Definition at line 152 of file vuBCCSheetSplatter.cpp. References idCHANGE_SLICEW, idCHANGE_SPLATS, idRENDER, m_Slicew, m_Splats, and size. |
|
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 128 of file vuBCCSheetSplatter.cpp. |
|
Draws an axis aligned box originated at (0,0,0). Expired due to the existence of vuPreviewWin. Definition at line 415 of file vuBCCSheetSplatter.cpp. References GL_QUADS, glBegin(), glColor3fv(), glEnd(), GLfloat, GLint, glNormal3fv(), and glVertex3fv(). Referenced by glRender(). |
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 132 of file vuBCCSheetSplatter.cpp. |
|
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 142 of file vuBCCSheetSplatter.cpp. |
|
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 136 of file vuBCCSheetSplatter.cpp. |
|
Returns the type of vu Datafile that the utility works with.
Reimplemented from vuBasicUtility. Definition at line 52 of file vuBCCSheetSplatter.cpp. |
|
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 195 of file vuBCCSheetSplatter.cpp. References GL_DEPTH_TEST, GL_LESS, glDepthFunc(), glEnable(), vu1512112::initOpenGL(), m_Data, and vuBasicUtility::useOpenGL(). |
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 335 of file vuBCCSheetSplatter.cpp. References vuArcBall::attachCamera(), vu1::getCamera(), vu1::getCameraPtr(), vu1512112::getCenter(), vuCamera::getHeight(), vuCamera::getPosition(), vuTransferDialog::getTransferFunc(), vuCamera::getWidth(), vuParallelCamera::getXRange(), vuParallelCamera::getYRange(), glResize(), vuParallelCamera::init(), m_Data, m_DrawBBox, m_TFunc, m_x, m_y, vuVector::norm(), vuGLCanvas::redraw(), vu151211::setTransferFunc(), vuArcBall::setWinSize(), vuParallelCamera::setXRange(), vuParallelCamera::setYRange(), vuCamera::translateXYZ(), vuArcBall::turn(), and vuBasicUtility::useOpenGL(). |
Here is the call graph for this function:
|
The method calls the render() method, setting it up to render to the window's gl canvas. Reimplemented from vuBasicUtility. Definition at line 218 of file vuBCCSheetSplatter.cpp. References drawBox(), vu1::getCamera(), vu1512112::getCenter(), vuCamera::getHeight(), vuGLCanvas::getHeight(), vuCamera::getWidth(), GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_LESS, GL_MODELVIEW, GL_PROJECTION, glClear(), glDepthFunc(), glEnable(), vuCamera::glInit(), GLint, glLoadIdentity(), glMatrixMode(), vuCamera::gluLookAt(), glViewport(), m_Data, and vu1512112::render(). |
Here is the call graph for this function:
|
Resizes the gl viewport and renders the volume.
Reimplemented from vuBasicUtility. Definition at line 290 of file vuBCCSheetSplatter.cpp. References dword, vu1::getCameraPtr(), vu1512::getDim1Size(), vu1512::getDim2Size(), vu1512::getDim3Size(), vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), vuParallelCamera::getXRange(), m_Data, max, vu1512112::setImageSize(), and vuParallelCamera::setYRange(). Referenced by glOnMouse(). |
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 61 of file vuBCCSheetSplatter.cpp. References vuTFDesign::addColour(), vuTFDesign::addOpacity(), vuTFDesign::generateFunction(), vu1::getErrorMessage(), m_Data, m_TFunc, vu1512112::read(), vuTFDesign::setColourSmoothing(), vu1::setFileName(), vuTFDesign::setOpacitySmoothing(), and vu151211::setTransferFunc(). |
Here is the call graph for this function:
|
initiate a refresh of the rendering
Definition at line 184 of file vuBCCSheetSplatter.cpp. References vu1512112::doRefresh(), m_Data, and vuGLCanvas::redraw(). |
Here is the call graph for this function:
|
Called if slice width is to be changed.
Definition at line 263 of file vuBCCSheetSplatter.cpp. References vu1512112::setSliceWidth(). |
Here is the call graph for this function:
|
Called if splat radius has been changed.
Definition at line 275 of file vuBCCSheetSplatter.cpp. References vu1512112::setFootprintSize(). |
Here is the call graph for this function:
|
The spectral raycaster owned by the utility.
Definition at line 81 of file vuBCCSheetSplatter.h. Referenced by glInit(), glOnMouse(), glRender(), glResize(), init(), OnButtonRender(), and ~vuBCCSheetSplatter(). |
|
bounging box flag. Draw a bounding box (using OpenGL) instead of blitting the scene view. OLD because of vuPreviewWin. Definition at line 94 of file vuBCCSheetSplatter.h. Referenced by glOnMouse(). |
|
This is a handle for a preview box.
Definition at line 97 of file vuBCCSheetSplatter.h. |
|
for changing slice width and splat size
Definition at line 100 of file vuBCCSheetSplatter.h. Referenced by addRight(). |
|
for changing slice width and splat size
Definition at line 100 of file vuBCCSheetSplatter.h. Referenced by addRight(). |
|
The transfer function. This is not yet used because the TF don't yet operate on spectral colours. Reimplemented from vuBasicUtility. Definition at line 84 of file vuBCCSheetSplatter.h. Referenced by glOnMouse(), and init(). |
|
The width of the window.
Definition at line 87 of file vuBCCSheetSplatter.h. Referenced by glOnMouse(). |
|
The height of the window.
Definition at line 89 of file vuBCCSheetSplatter.h. Referenced by glOnMouse(). |