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

vuFBRSubCanvas< SIZE, TYPE > Class Template Reference

Canvas for Fourier Based Rendering (FBR) martin-2003-03-27. More...

#include <vuFBRSubCanvas.h>

Inheritance diagram for vuFBRSubCanvas< SIZE, TYPE >:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuFBRSubCanvas (vuBasicSubViewer *parent, wxWindowID id=-1)
 The constructor.
 ~vuFBRSubCanvas ()
 The destructor.
void setRenderMethod (dword method)
 sets the rendering method
void setInteractive (vuSphericInteractive< SIZE, TYPE > *interactive)
void setImageScale (float scale)
 set image scale

Protected Member Functions

bool glInit ()
 Initializes openGL for the transfer function canvas.
void render ()
 Renders the transfer function.
void resize ()
 Sets up the coordinates for the canvas.
void _clearCanvas ()
 clear canvas
void _renderImage ()
 render image
void _copyDeltaImageToRGB (vuFixelMap1F *errorMap, vuFixelMap3F *rgbMap)
void _renderImageOld ()
bool _substract (vuFixelMap1F *srcImg, vuFixelMap1F *destImg)
 calculate the image difference
void postEvent (wxEventType ev)
 Helper function that posts the passed in event to the event handler.

Protected Attributes

vuSphericInteractive< SIZE,
TYPE > * 
m_Interactive
dword m_RenderMethod
vuFixelMap1Fm_Image
vuFixelMap3Fm_ImageRGB
float m_ImageScale

Detailed Description

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

Canvas for Fourier Based Rendering (FBR) martin-2003-03-27.

Definition at line 15 of file vuFBRSubCanvas.h.


Constructor & Destructor Documentation

template<int S, class T>
vuFBRSubCanvas< S, T >::vuFBRSubCanvas vuBasicSubViewer parent,
wxWindowID  id = -1
 

The constructor.

Definition at line 8 of file vuFBRSubCanvas.cpp.

References vuFBRSubCanvas< SIZE, TYPE >::m_Image, vuFBRSubCanvas< SIZE, TYPE >::m_ImageRGB, vuFBRSubCanvas< SIZE, TYPE >::m_ImageScale, vuFBRSubCanvas< SIZE, TYPE >::m_Interactive, vuFBRSubCanvas< SIZE, TYPE >::m_RenderMethod, and vuFixelMap1F.

template<int S, class T>
vuFBRSubCanvas< S, T >::~vuFBRSubCanvas  ) 
 

The destructor.

Definition at line 24 of file vuFBRSubCanvas.cpp.

References CHECKNDELETE, vuFBRSubCanvas< SIZE, TYPE >::m_Image, and vuFBRSubCanvas< SIZE, TYPE >::m_ImageRGB.


Member Function Documentation

template<int SIZE, class TYPE>
void vuFBRSubCanvas< SIZE, TYPE >::_clearCanvas  )  [protected]
 

clear canvas

template<int SIZE, class TYPE>
void vuFBRSubCanvas< SIZE, TYPE >::_copyDeltaImageToRGB vuFixelMap1F errorMap,
vuFixelMap3F rgbMap
[protected]
 

template<int SIZE, class TYPE>
void vuFBRSubCanvas< SIZE, TYPE >::_renderImage  )  [protected]
 

render image

template<int SIZE, class TYPE>
void vuFBRSubCanvas< SIZE, TYPE >::_renderImageOld  )  [protected]
 

template<int SIZE, class TYPE>
bool vuFBRSubCanvas< SIZE, TYPE >::_substract vuFixelMap1F srcImg,
vuFixelMap1F destImg
[protected]
 

calculate the image difference

template<int S, class T>
bool vuFBRSubCanvas< S, T >::glInit  )  [protected, virtual]
 

Initializes openGL for the transfer function canvas.

Reimplemented from vuGLCanvas.

Definition at line 55 of file vuFBRSubCanvas.cpp.

References glClearColor().

Here is the call graph for this function:

template<int S, class T>
void vuFBRSubCanvas< S, T >::postEvent wxEventType  ev  )  [protected]
 

Helper function that posts the passed in event to the event handler.

Definition at line 93 of file vuFBRSubCanvas.cpp.

template<int S, class T>
void vuFBRSubCanvas< S, T >::render  )  [protected, virtual]
 

Renders the transfer function.

Reimplemented from vuGLCanvas.

Definition at line 79 of file vuFBRSubCanvas.cpp.

References vuSphericView< SIZE, TYPE >::glRender(), and vuFBRSubCanvas< SIZE, TYPE >::m_Interactive.

Here is the call graph for this function:

template<int S, class T>
void vuFBRSubCanvas< S, T >::resize  )  [protected, virtual]
 

Sets up the coordinates for the canvas.

Reimplemented from vuGLCanvas.

Definition at line 66 of file vuFBRSubCanvas.cpp.

References vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), vuSphericView< SIZE, TYPE >::glResize(), and vuFBRSubCanvas< SIZE, TYPE >::m_Interactive.

Here is the call graph for this function:

template<int S, class T>
void vuFBRSubCanvas< S, T >::setImageScale float  scale  ) 
 

set image scale

Definition at line 39 of file vuFBRSubCanvas.cpp.

References vuFBRSubCanvas< SIZE, TYPE >::m_ImageScale.

template<int S, class T>
void vuFBRSubCanvas< S, T >::setInteractive vuSphericInteractive< SIZE, TYPE > *  interactive  ) 
 

Definition at line 45 of file vuFBRSubCanvas.cpp.

References vuFBRSubCanvas< SIZE, TYPE >::m_Interactive.

template<int S, class T>
void vuFBRSubCanvas< S, T >::setRenderMethod dword  method  ) 
 

sets the rendering method

following methods are supported: 0 ... render image (default) 1 ... render image delta 2 ... render frequency amplitude 3 ... render frequency amplitude delta 4 ... render frequency phase 5 ... render frequency phase delta 6 ... render frequency real part 7 ... render frequency real part delta 8 ... render frequency imaginary part 9 ... render frequency imaginary part delta

Definition at line 32 of file vuFBRSubCanvas.cpp.

References vuFBRSubCanvas< SIZE, TYPE >::m_RenderMethod.


Member Data Documentation

template<int SIZE, class TYPE>
vuFixelMap1F* vuFBRSubCanvas< SIZE, TYPE >::m_Image [protected]
 

Definition at line 71 of file vuFBRSubCanvas.h.

Referenced by vuFBRSubCanvas< SIZE, TYPE >::vuFBRSubCanvas(), and vuFBRSubCanvas< SIZE, TYPE >::~vuFBRSubCanvas().

template<int SIZE, class TYPE>
vuFixelMap3F* vuFBRSubCanvas< SIZE, TYPE >::m_ImageRGB [protected]
 

Definition at line 72 of file vuFBRSubCanvas.h.

Referenced by vuFBRSubCanvas< SIZE, TYPE >::vuFBRSubCanvas(), and vuFBRSubCanvas< SIZE, TYPE >::~vuFBRSubCanvas().

template<int SIZE, class TYPE>
float vuFBRSubCanvas< SIZE, TYPE >::m_ImageScale [protected]
 

Definition at line 73 of file vuFBRSubCanvas.h.

Referenced by vuFBRSubCanvas< SIZE, TYPE >::setImageScale(), and vuFBRSubCanvas< SIZE, TYPE >::vuFBRSubCanvas().

template<int SIZE, class TYPE>
vuSphericInteractive<SIZE,TYPE>* vuFBRSubCanvas< SIZE, TYPE >::m_Interactive [protected]
 

Definition at line 68 of file vuFBRSubCanvas.h.

Referenced by vuFBRSubCanvas< SIZE, TYPE >::render(), vuFBRSubCanvas< SIZE, TYPE >::resize(), vuFBRSubCanvas< SIZE, TYPE >::setInteractive(), and vuFBRSubCanvas< SIZE, TYPE >::vuFBRSubCanvas().

template<int SIZE, class TYPE>
dword vuFBRSubCanvas< SIZE, TYPE >::m_RenderMethod [protected]
 

Definition at line 70 of file vuFBRSubCanvas.h.

Referenced by vuFBRSubCanvas< SIZE, TYPE >::setRenderMethod(), and vuFBRSubCanvas< SIZE, TYPE >::vuFBRSubCanvas().


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