#include <vuFVR.h>
Inheritance diagram for vuFVR:
Public Member Functions | |
vuFVR () | |
Constructor. | |
~vuFVR () | |
Destructor. | |
bool | init (const char *DataFile) |
virtual void | notifyDataChanged () |
Updates the view by calling m_glCanvas->redraw(). | |
virtual void | addRight (wxSizer *sizer) |
Rerenders the screen from the current camera position. | |
virtual void | DrawAgain () |
This function must rerender the scene completely. | |
virtual void | DrawFromImage () |
Draws on the screen the image contained in the image buffer. | |
virtual vuImage * | getCurrentImage () |
This will return a pointer to the image buffer that is being used by the method to draw images to... | |
virtual vuCamera * | getCamera () |
This will return a poiunter to the camera that the method is using (note that this may be derived from vuCamera...). | |
virtual bool | IsReRendering () |
This will return whether or not the FVR is rerendering to the screen. | |
virtual void | setIsReRendering (bool isit) |
This will set the state of rerendering to be the same as isit. | |
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 FVR utility. | |
void | glRender () |
Calls on the FVR to render the volume. | |
void | glResize () |
Resizes the gl viewport and renders the volume. | |
void | glOnMouse (wxMouseEvent &ev) |
Handles mouse commands from the user. | |
void | onKeyboard (wxKeyEvent &event) |
Keyboard handler. | |
void | OnCheckBoxDepthCueing (wxCommandEvent &event) |
Callbacks for User Interface. | |
void | OnCheckBoxDiffuseShading (wxCommandEvent &event) |
void | OnChoiceFilter (wxCommandEvent &event) |
void | setTitle (const char *_title) |
Private Attributes | |
Filter * | m_Filter |
vu1112117 * | m_Data |
The FVR owned by the utility. | |
vuCamera | m_Camera |
A camera class for storing the user's current view. | |
float | m_ViewScale |
The zoom magnification of the FVR. | |
vuTFDesign | m_TFunc |
the transfer function | |
vuTransferDialog | m_TFDialog |
The dialog to edit the transfer function. | |
int | m_x |
Last Mouse Position x. | |
int | m_y |
Last Mouse Position y. | |
vuCamera | m_CameraLight |
float | m_scaleX |
float | m_scaleY |
bool | m_isRefineSlice |
wxCheckBox * | m_CBdepthCueing |
Graphical User Interface Elements. | |
wxCheckBox * | m_CBdiffuseShading |
wxChoice * | m_CHOICEfilter |
Definition at line 16 of file vuFVR.h.
|
Constructor.
|
|
Destructor.
|
|
Rerenders the screen from the current camera position.
Reimplemented from vuBasicUtility. Definition at line 131 of file vuFVR.cpp. References idDEPTH_CUEING, idDIFFUSE_SHADING, idFILTER, m_CBdepthCueing, m_CBdiffuseShading, m_CHOICEfilter, and NULL. |
|
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 106 of file vuFVR.cpp. References vuGLCanvas::redraw(). |
Here is the call graph for this function:
|
Draws on the screen the image contained in the image buffer.
Implements vuBasicUtility. |
|
This will return a poiunter to the camera that the method is using (note that this may be derived from vuCamera...).
Implements vuBasicUtility. |
|
This will return a pointer to the image buffer that is being used by the method to draw images to...
Implements vuBasicUtility. Definition at line 117 of file vuFVR.cpp. References vu1112117::getBuffer(), 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. |
|
Initializes open gl for the FVR utility. The method calls the FVR initgl() method so it can do the proper initialization. Reimplemented from vuBasicUtility. Definition at line 226 of file vuFVR.cpp. References vu1112117::initOpenGL(), and m_Data. |
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 309 of file vuFVR.cpp. References vuCamera::getLookAtVector(), vuCamera::getPosition(), vuCamera::getRightVector(), vuCamera::getUpVector(), vuCamera::gluLookAt(), m_Camera, m_CameraLight, m_Data, m_isRefineSlice, m_TFDialog, m_TFunc, m_x, m_y, vuVector::norm(), vuGLCanvas::redraw(), vuCamera::rotateAboutRight(), vuCamera::rotateAboutUp(), vu1::setIsReRendering(), vu1112117::setLightPosition(), vu111211::setTransferFunc(), vu1112117::setViewVectors(), and vuCamera::translateXYZ(). |
Here is the call graph for this function:
|
Calls on the FVR to render the volume. The method calls the FVR render() method, setting it up to render to the window's gl canvas. Reimplemented from vuBasicUtility. Definition at line 240 of file vuFVR.cpp. References vu1112117::clearSlices(), vu1112117::computeSlice(), vu1112117::drawImageFromSlices(), vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_MODELVIEW, GL_PROJECTION, glClear(), glLoadIdentity(), glMatrixMode(), glPixelZoom(), vu1112117::IsPostProcessing(), vu1::IsReRendering(), m_Data, m_scaleX, m_scaleY, vu1112117::refineSlice(), vu1112117::render(), vu1112117::setIsPostProcessing(), and vu1::setIsReRendering(). |
Here is the call graph for this function:
|
Resizes the gl viewport and renders the volume.
Reimplemented from vuBasicUtility. Definition at line 297 of file vuFVR.cpp. References vuGLCanvas::getHeight(), vu1112117::getSliceWidth(), vuGLCanvas::getWidth(), GLint, glViewport(), m_Data, m_scaleX, and m_scaleY. |
Here is the call graph for this function:
|
Initializes the utility window. A FVR object is created and the volume data is read. The window appears when finished. Reimplemented from vuBasicUtility. Definition at line 74 of file vuFVR.cpp. References FVR_NS::d0_c0_1ef(), vu1::getErrorMessage(), m_CameraLight, m_Data, m_Filter, m_isRefineSlice, vu1112117::read(), vu1::setFileName(), vu1112117::setFilter(), vu1112117::setIsDepthCueing(), vu1112117::setIsDiffuseShading(), vuCamera::setPosition(), vu1112117::setSliceScale(), and setTitle(). |
Here is the call graph for this function:
|
This will return whether or not the FVR is rerendering to the screen.
Reimplemented from vuBasicUtility. Definition at line 435 of file vuFVR.cpp. References vu1::IsReRendering(), and m_Data. |
Here is the call graph for this function:
|
Updates the view by calling m_glCanvas->redraw().
Reimplemented from vuBasicUtility. Definition at line 288 of file vuFVR.cpp. References vuGLCanvas::redraw(). |
Here is the call graph for this function:
|
Callbacks for User Interface.
Definition at line 174 of file vuFVR.cpp. References m_CBdepthCueing, m_Data, vuGLCanvas::redraw(), vu1112117::setIsDepthCueing(), and vu1::setIsReRendering(). |
Here is the call graph for this function:
|
Definition at line 181 of file vuFVR.cpp. References m_CBdiffuseShading, m_Data, vuGLCanvas::redraw(), vu1112117::setIsDiffuseShading(), and vu1::setIsReRendering(). |
Here is the call graph for this function:
|
|
|
Keyboard handler.
Reimplemented from vuBasicUtility. Definition at line 383 of file vuFVR.cpp. References vu1112117::clearSlices(), data, vu1112117::getAmbientColour(), vu1112117::getDiffuseColour(), m_Data, vuGLCanvas::redraw(), vu1112117::refineSlice(), vu1112117::setAmbientColour(), vu1112117::setDiffuseColour(), vu1112117::setIsPostProcessing(), and vu1::setIsReRendering(). |
Here is the call graph for this function:
|
This will set the state of rerendering to be the same as isit.
Reimplemented from vuBasicUtility. Definition at line 439 of file vuFVR.cpp. References m_Data, and vu1::setIsReRendering(). |
Here is the call graph for this function:
|
Definition at line 59 of file vuFVR.cpp. References vuString::c_str(), vu1112::getDim1Size(), vu1112::getDim2Size(), vu1112::getDim3Size(), and m_Data. Referenced by init(). |
Here is the call graph for this function:
|
A camera class for storing the user's current view.
Definition at line 94 of file vuFVR.h. Referenced by glOnMouse(). |
|
Definition at line 111 of file vuFVR.h. Referenced by glOnMouse(), and init(). |
|
Graphical User Interface Elements.
Definition at line 121 of file vuFVR.h. Referenced by addRight(), and OnCheckBoxDepthCueing(). |
|
Definition at line 122 of file vuFVR.h. Referenced by addRight(), and OnCheckBoxDiffuseShading(). |
|
Definition at line 123 of file vuFVR.h. Referenced by addRight(). |
|
The FVR owned by the utility.
Definition at line 92 of file vuFVR.h. Referenced by getCurrentImage(), glInit(), glOnMouse(), glRender(), glResize(), init(), IsReRendering(), OnCheckBoxDepthCueing(), OnCheckBoxDiffuseShading(), onKeyboard(), setIsReRendering(), setTitle(), and ~vuFVR(). |
|
|
|
Definition at line 118 of file vuFVR.h. Referenced by glOnMouse(), and init(). |
|
Definition at line 115 of file vuFVR.h. Referenced by glRender(), and glResize(). |
|
Definition at line 116 of file vuFVR.h. Referenced by glRender(), and glResize(). |
|
The dialog to edit the transfer function.
Definition at line 100 of file vuFVR.h. Referenced by glOnMouse(). |
|
the transfer function
Reimplemented from vuBasicUtility. Definition at line 98 of file vuFVR.h. Referenced by glOnMouse(). |
|
The zoom magnification of the FVR.
|
|
Last Mouse Position x.
Definition at line 107 of file vuFVR.h. Referenced by glOnMouse(). |
|
Last Mouse Position y.
Definition at line 109 of file vuFVR.h. Referenced by glOnMouse(). |