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

vuSphericRevolver< SIZE, TYPE > Class Template Reference

A utility window for Image Based Rendering of lightfields. More...

#include <vuSphericRevolver.h>

Inheritance diagram for vuSphericRevolver< SIZE, TYPE >:

Inheritance graph
[legend]
Collaboration diagram for vuSphericRevolver< SIZE, TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuSphericRevolver ()
 Constructor.
 ~vuSphericRevolver ()
 Destructor.
virtual const char * _titleString ()
bool init (const char *DataFile)
virtual void addBottom (wxSizer *sizer)
 This method adds controls to the bottom of the window.
virtual vuCameragetCamera ()
 This function must return a pointer to the camera that is taking the picture of the scene.
virtual vuImagegetCurrentImage ()
 This function must return a pointer to the current vuImage buffer that the method can write to or read from.
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 void DrawAgain ()
 This function must rerender the scene completely.

Protected Types

enum  { idNUMBEROFVIEWS, idIMAGESCALE, idIMAGESCALE2ONE }

Protected Member Functions

bool glInit ()
 Initializes open gl for the utility.
void glRender ()
 The method calls the render() method.
void glResize ()
 Resizes the gl viewport and renders the volume.
void onMouse (wxMouseEvent &ev)
 Handles mouse commands from the user.
void onKeyboard (wxKeyEvent &event)
 Keyboard handler.
wxString helpText ()
 This callback defines the help text for the HelpPanel. -ms-.
vu1getVolume ()
 returns a pointer to m_Data
void OnChoiceNumberOfViews (wxCommandEvent &event)
 'Choose number of views' - callback
void OnScaleImage (wxScrollEvent &event)
 event handler for image scaler.
void OnScaleImage2One (wxScrollEvent &event)
 event handler for scale image to one button

Protected Attributes

vu1611_2< SIZE, TYPE > * m_Data
 The lightfield volume owned by the utility.

Private Member Functions

void _updateScaleAndRefresh (int scale)

Private Attributes

wxChoice * m_CHOICEnumberOfViews
wxSlider * m_ImageScale

Detailed Description

template<int SIZE, class TYPE>
class vuSphericRevolver< SIZE, TYPE >

A utility window for Image Based Rendering of lightfields.

Definition at line 11 of file vuSphericRevolver.h.


Member Enumeration Documentation

template<int SIZE, class TYPE>
anonymous enum [protected]
 

Enumeration values:
idNUMBEROFVIEWS 
idIMAGESCALE 
idIMAGESCALE2ONE 

Definition at line 14 of file vuSphericRevolver.h.


Constructor & Destructor Documentation

template<int SIZE, class TYPE>
vuSphericRevolver< SIZE, TYPE >::vuSphericRevolver  ) 
 

Constructor.

Definition at line 6 of file vuSphericRevolver.cpp.

References vuSphericRevolver< SIZE, TYPE >::m_Data.

template<int SIZE, class TYPE>
vuSphericRevolver< SIZE, TYPE >::~vuSphericRevolver  ) 
 

Destructor.

Definition at line 12 of file vuSphericRevolver.cpp.

References CHECKNDELETE, and vuSphericRevolver< SIZE, TYPE >::m_Data.


Member Function Documentation

template<int SIZE, class TYPE>
const char * vuSphericRevolver< SIZE, TYPE >::_titleString  )  [virtual]
 

Definition at line 18 of file vuSphericRevolver.cpp.

Referenced by vuSphericRevolver< SIZE, TYPE >::init().

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::_updateScaleAndRefresh int  scale  )  [private]
 

Definition at line 296 of file vuSphericRevolver.cpp.

References vuSphericRevolver< SIZE, TYPE >::m_ImageScale, and vuGLCanvas::redraw().

Referenced by vuSphericRevolver< SIZE, TYPE >::onKeyboard().

Here is the call graph for this function:

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::addBottom wxSizer *  sizer  )  [virtual]
 

This method adds controls to the bottom of the window.

Reimplemented from vuBasicUtility.

Definition at line 75 of file vuSphericRevolver.cpp.

References vuSphericRevolver< SIZE, TYPE >::idIMAGESCALE, vuSphericRevolver< SIZE, TYPE >::idIMAGESCALE2ONE, vuSphericRevolver< SIZE, TYPE >::idNUMBEROFVIEWS, vuSphericRevolver< SIZE, TYPE >::m_CHOICEnumberOfViews, vuSphericRevolver< SIZE, TYPE >::m_ImageScale, and NULL.

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::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 287 of file vuSphericRevolver.cpp.

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::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 281 of file vuSphericRevolver.cpp.

References vuGLCanvas::redraw().

Here is the call graph for this function:

template<int SIZE, class TYPE>
vuCamera * vuSphericRevolver< SIZE, TYPE >::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 269 of file vuSphericRevolver.cpp.

References vuSphericRevolver< SIZE, TYPE >::m_Data.

template<int SIZE, class TYPE>
vuImage * vuSphericRevolver< SIZE, TYPE >::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 275 of file vuSphericRevolver.cpp.

template<int SIZE, class TYPE>
vu1 * vuSphericRevolver< SIZE, TYPE >::getVolume  )  [protected, virtual]
 

returns a pointer to m_Data

Reimplemented from vuBasicUtility.

Definition at line 225 of file vuSphericRevolver.cpp.

template<int SIZE, class TYPE>
bool vuSphericRevolver< SIZE, TYPE >::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 120 of file vuSphericRevolver.cpp.

References vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), and vuSphericRevolver< SIZE, TYPE >::m_Data.

Here is the call graph for this function:

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::glRender  )  [protected, virtual]
 

The method calls the render() method.

Reimplemented from vuBasicUtility.

Definition at line 130 of file vuSphericRevolver.cpp.

References dword, vuSphericViewFilter< SIZE, TYPE >::getView(), vuFixelMap< SIZE, TYPE >::glRender(), vuSphericRevolver< SIZE, TYPE >::m_Data, vuSphericRevolver< SIZE, TYPE >::m_ImageScale, and vuFixelMap< SIZE, TYPE >::scaleAndBias().

Here is the call graph for this function:

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::glResize  )  [protected, virtual]
 

Resizes the gl viewport and renders the volume.

Reimplemented from vuBasicUtility.

Definition at line 166 of file vuSphericRevolver.cpp.

References vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), vuFixelMap< SIZE, TYPE >::glResize(), and vuSphericRevolver< SIZE, TYPE >::m_Data.

Here is the call graph for this function:

template<int SIZE, class TYPE>
wxString vuSphericRevolver< SIZE, TYPE >::helpText  )  [protected, virtual]
 

This callback defines the help text for the HelpPanel. -ms-.

Reimplemented from vuBasicUtility.

Definition at line 198 of file vuSphericRevolver.cpp.

template<int SIZE, class TYPE>
bool vuSphericRevolver< SIZE, TYPE >::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.

Reimplemented in vuSphericRevolver1B, vuSphericRevolver1F, vuSphericRevolver2F, vuSphericRevolver3B, and vuSphericRevolver3F.

Definition at line 24 of file vuSphericRevolver.cpp.

References vuSphericRevolver< SIZE, TYPE >::_titleString(), vuString::c_str(), and vuSphericRevolver< SIZE, TYPE >::m_Data.

Referenced by vuSphericRevolver3F::init(), vuSphericRevolver3B::init(), vuSphericRevolver2F::init(), vuSphericRevolver1F::init(), and vuSphericRevolver1B::init().

Here is the call graph for this function:

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::OnChoiceNumberOfViews wxCommandEvent &  event  )  [protected]
 

'Choose number of views' - callback

Definition at line 235 of file vuSphericRevolver.cpp.

References dword, vuSphericRevolver< SIZE, TYPE >::m_CHOICEnumberOfViews, vuSphericRevolver< SIZE, TYPE >::m_Data, vuGLCanvas::redraw(), and vuSphLfFlt_Nearest< SIZE, TYPE >::setNumberOfViews().

Here is the call graph for this function:

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::onKeyboard wxKeyEvent &  event  )  [protected, virtual]
 

Keyboard handler.

Reimplemented from vuBasicUtility.

Definition at line 178 of file vuSphericRevolver.cpp.

References vuSphericRevolver< SIZE, TYPE >::_updateScaleAndRefresh(), and vuSphericRevolver< SIZE, TYPE >::m_ImageScale.

Here is the call graph for this function:

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::onMouse wxMouseEvent &  ev  )  [protected, virtual]
 

Handles mouse commands from the user.

Reimplemented from vuBasicUtility.

Definition at line 172 of file vuSphericRevolver.cpp.

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::OnScaleImage wxScrollEvent &  event  )  [protected]
 

event handler for image scaler.

Definition at line 252 of file vuSphericRevolver.cpp.

References vuGLCanvas::redraw().

Here is the call graph for this function:

template<int SIZE, class TYPE>
void vuSphericRevolver< SIZE, TYPE >::OnScaleImage2One wxScrollEvent &  event  )  [protected]
 

event handler for scale image to one button

Definition at line 259 of file vuSphericRevolver.cpp.

References vuGLCanvas::redraw().

Here is the call graph for this function:


Member Data Documentation

template<int SIZE, class TYPE>
wxChoice* vuSphericRevolver< SIZE, TYPE >::m_CHOICEnumberOfViews [private]
 

Definition at line 85 of file vuSphericRevolver.h.

Referenced by vuSphericRevolver< SIZE, TYPE >::addBottom(), and vuSphericRevolver< SIZE, TYPE >::OnChoiceNumberOfViews().

template<int SIZE, class TYPE>
vu1611_2<SIZE,TYPE>* vuSphericRevolver< SIZE, TYPE >::m_Data [protected]
 

The lightfield volume owned by the utility.

Definition at line 81 of file vuSphericRevolver.h.

Referenced by vuSphericRevolver< SIZE, TYPE >::getCamera(), vuSphericRevolver< SIZE, TYPE >::glInit(), vuSphericRevolver< SIZE, TYPE >::glRender(), vuSphericRevolver< SIZE, TYPE >::glResize(), vuSphericRevolver< SIZE, TYPE >::init(), vuSphericRevolver< SIZE, TYPE >::OnChoiceNumberOfViews(), vuSphericRevolver< SIZE, TYPE >::vuSphericRevolver(), and vuSphericRevolver< SIZE, TYPE >::~vuSphericRevolver().

template<int SIZE, class TYPE>
wxSlider* vuSphericRevolver< SIZE, TYPE >::m_ImageScale [private]
 

Definition at line 86 of file vuSphericRevolver.h.

Referenced by vuSphericRevolver< SIZE, TYPE >::_updateScaleAndRefresh(), vuSphericRevolver< SIZE, TYPE >::addBottom(), vuSphericRevolver< SIZE, TYPE >::glRender(), and vuSphericRevolver< SIZE, TYPE >::onKeyboard().


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