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

vuSimpleFVRCanvas Class Reference

#include <vuSimpleFVRCanvas.h>

Inheritance diagram for vuSimpleFVRCanvas:

Inheritance graph
[legend]
Collaboration diagram for vuSimpleFVRCanvas:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuSimpleFVRCanvas (vuBasicSubViewer *parent, wxWindowID id=-1)
 The constructor.
 ~vuSimpleFVRCanvas ()
 The destructor.
void setFVR (vu1112119 *fvr)
 sets the to displayed volume
void setFourierVolume (vuFourierVolume1 *volume)
void setRenderMethod (dword method)
 sets the rendering method
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

vu1112119m_FVR
vuFourierVolume1m_FourierVolume
dword m_RenderMethod
vuFixelMap1Fm_Image
vuFixelMap3Fm_ImageRGB
float m_ImageScale

Constructor & Destructor Documentation

vuSimpleFVRCanvas::vuSimpleFVRCanvas vuBasicSubViewer parent,
wxWindowID  id = -1
 

The constructor.

Definition at line 9 of file vuSimpleFVRCanvas.cpp.

References m_FourierVolume, m_FVR, m_Image, m_ImageRGB, m_ImageScale, and m_RenderMethod.

vuSimpleFVRCanvas::~vuSimpleFVRCanvas  ) 
 

The destructor.

Definition at line 22 of file vuSimpleFVRCanvas.cpp.

References CHECKNDELETE, m_FourierVolume, m_FVR, m_Image, and m_ImageRGB.


Member Function Documentation

void vuSimpleFVRCanvas::_clearCanvas  )  [protected]
 

clear canvas

Definition at line 96 of file vuSimpleFVRCanvas.cpp.

References byte, dword, vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), GL_LUMINANCE, GL_UNSIGNED_BYTE, glDrawPixels(), and glPixelZoom().

Referenced by render().

Here is the call graph for this function:

void vuSimpleFVRCanvas::_copyDeltaImageToRGB vuFixelMap1F errorMap,
vuFixelMap3F rgbMap
[protected]
 

Definition at line 170 of file vuSimpleFVRCanvas.cpp.

References dword, vuFixelMap< SIZE, TYPE >::getBuffer(), vuFixelMap< SIZE, TYPE >::getHeight(), vuFixelMap< SIZE, TYPE >::getWidth(), vuFixelMap1F, and vuFixelMap3F.

Referenced by _renderImage().

Here is the call graph for this function:

void vuSimpleFVRCanvas::_renderImage  )  [protected]
 

render image

Definition at line 108 of file vuSimpleFVRCanvas.cpp.

References _copyDeltaImageToRGB(), _substract(), CHECKNDELETE, vuFourierVolume< SIZE >::computeUnscaledImage(), dword, vuGLCanvas::getHeight(), vuFixelMap< SIZE, TYPE >::getHeight(), vuFixelMap< SIZE, TYPE >::getMinAndMaxValue(), vuGLCanvas::getWidth(), vuFixelMap< SIZE, TYPE >::getWidth(), vuFixelMap< SIZE, TYPE >::glRender(), vuFixelMap< SIZE, TYPE >::glResize(), m_FourierVolume, m_FVR, m_Image, m_ImageRGB, m_RenderMethod, vuFixelMap< SIZE, TYPE >::setWidthAndHeight(), vu1112119::updateCamera(), vuFixel3F, vuFixelMap1F, and vuFixelMap3F.

Referenced by render().

Here is the call graph for this function:

void vuSimpleFVRCanvas::_renderImageOld  )  [protected]
 

Definition at line 188 of file vuSimpleFVRCanvas.cpp.

References _substract(), vuFourierVolume< SIZE >::computeUnscaledImage(), dword, vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), vuFixelMap< SIZE, TYPE >::glRender(), vuFixelMap< SIZE, TYPE >::glResize(), m_FourierVolume, m_FVR, m_Image, m_RenderMethod, vu1112119::updateCamera(), and vuFixelMap1F.

Here is the call graph for this function:

bool vuSimpleFVRCanvas::_substract vuFixelMap1F srcImg,
vuFixelMap1F destImg
[protected]
 

calculate the image difference

Definition at line 215 of file vuSimpleFVRCanvas.cpp.

References linalg::abs(), dword, vuFixelMap< SIZE, TYPE >::getBuffer(), vuFixelMap< SIZE, TYPE >::getHeight(), vuFixelMap< SIZE, TYPE >::getWidth(), and vuFixelMap1F.

Referenced by _renderImage(), and _renderImageOld().

Here is the call graph for this function:

bool vuSimpleFVRCanvas::glInit  )  [protected, virtual]
 

Initializes openGL for the transfer function canvas.

Reimplemented from vuGLCanvas.

Definition at line 58 of file vuSimpleFVRCanvas.cpp.

References glClearColor().

Here is the call graph for this function:

void vuSimpleFVRCanvas::postEvent wxEventType  ev  )  [protected]
 

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

Definition at line 88 of file vuSimpleFVRCanvas.cpp.

void vuSimpleFVRCanvas::render  )  [protected, virtual]
 

Renders the transfer function.

Reimplemented from vuGLCanvas.

Definition at line 76 of file vuSimpleFVRCanvas.cpp.

References _clearCanvas(), and _renderImage().

Here is the call graph for this function:

void vuSimpleFVRCanvas::resize  )  [protected, virtual]
 

Sets up the coordinates for the canvas.

Reimplemented from vuGLCanvas.

Definition at line 68 of file vuSimpleFVRCanvas.cpp.

void vuSimpleFVRCanvas::setFourierVolume vuFourierVolume1 volume  ) 
 

Definition at line 37 of file vuSimpleFVRCanvas.cpp.

References m_FourierVolume, and vuFourierVolume1.

Referenced by vuSimpleFVRDialog::setFourierVolume().

void vuSimpleFVRCanvas::setFVR vu1112119 fvr  ) 
 

sets the to displayed volume

Definition at line 32 of file vuSimpleFVRCanvas.cpp.

References m_FVR.

Referenced by vuSimpleFVRDialog::OnButtonCloseFile(), vuSimpleFVRDialog::OnButtonLoadFile(), vuSimpleFVRDialog::Show(), and vuSimpleFVRDialog::~vuSimpleFVRDialog().

void vuSimpleFVRCanvas::setImageScale float  scale  ) 
 

set image scale

Definition at line 49 of file vuSimpleFVRCanvas.cpp.

References m_ImageScale.

Referenced by vuSimpleFVRDialog::OnSliderImageScale().

void vuSimpleFVRCanvas::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 43 of file vuSimpleFVRCanvas.cpp.

References m_RenderMethod.

Referenced by vuSimpleFVRDialog::OnChoiceMethod().


Member Data Documentation

vuFourierVolume1* vuSimpleFVRCanvas::m_FourierVolume [protected]
 

Definition at line 66 of file vuSimpleFVRCanvas.h.

Referenced by _renderImage(), _renderImageOld(), setFourierVolume(), vuSimpleFVRCanvas(), and ~vuSimpleFVRCanvas().

vu1112119* vuSimpleFVRCanvas::m_FVR [protected]
 

Definition at line 65 of file vuSimpleFVRCanvas.h.

Referenced by _renderImage(), _renderImageOld(), setFVR(), vuSimpleFVRCanvas(), and ~vuSimpleFVRCanvas().

vuFixelMap1F* vuSimpleFVRCanvas::m_Image [protected]
 

Definition at line 68 of file vuSimpleFVRCanvas.h.

Referenced by _renderImage(), _renderImageOld(), vuSimpleFVRCanvas(), and ~vuSimpleFVRCanvas().

vuFixelMap3F* vuSimpleFVRCanvas::m_ImageRGB [protected]
 

Definition at line 69 of file vuSimpleFVRCanvas.h.

Referenced by _renderImage(), vuSimpleFVRCanvas(), and ~vuSimpleFVRCanvas().

float vuSimpleFVRCanvas::m_ImageScale [protected]
 

Definition at line 70 of file vuSimpleFVRCanvas.h.

Referenced by setImageScale(), and vuSimpleFVRCanvas().

dword vuSimpleFVRCanvas::m_RenderMethod [protected]
 

Definition at line 67 of file vuSimpleFVRCanvas.h.

Referenced by _renderImage(), _renderImageOld(), setRenderMethod(), and vuSimpleFVRCanvas().


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