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

Scanner Class Reference

#include <Scanner.h>

Collaboration diagram for Scanner:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Scanner (const char *fileName, dword width, dword height, dword views)
 ~Scanner ()
void loadTFuncFromFile (const char *fileName)
void lazyCalculateAndDisplay (const char *fileName)
void lazyCalculateAndLog (const char *fileName)

Private Member Functions

void _initTransferFunction ()
void _renderView (dword i, vuSphericView3B *view, bool verbose=true)
word _numberOfDigits (word number)
void _lazyCalculate (const char *fileName, bool display)
void _calcViewVectors (vuVector &lookAt, vuVector &up, vuVector &right)

Private Attributes

vuUDSpherem_Sphere
vu1112113m_Raycast
vuTFDesign m_TransFunct
bool m_isComputed
dword m_Width
dword m_Height
dword m_Views

Constructor & Destructor Documentation

Scanner::Scanner const char *  fileName,
dword  width,
dword  height,
dword  views
 

Definition at line 15 of file Scanner.cpp.

References _initTransferFunction(), vu1112113::doPreviewDraw(), vu1112113::doSpecular(), vu1112::getDim1Size(), vu1112::getDim2Size(), vu1112113::initOpenGL(), vuUDSphere::lazyCalculate(), m_Height, m_isComputed, m_Raycast, m_Sphere, m_Views, m_Width, vu1112113::read(), vu1::setCamera(), vu1::setFileName(), vu1112113::setImageSize(), vu1112113::setSamplingDistance(), vu1112113::setTFuncMethod(), vuParallelCamera::setXRange(), vuParallelCamera::setYRange(), and TFUNC_PIAW.

Here is the call graph for this function:

Scanner::~Scanner  ) 
 

Definition at line 51 of file Scanner.cpp.

References m_Raycast, and m_Sphere.


Member Function Documentation

void Scanner::_calcViewVectors vuVector lookAt,
vuVector up,
vuVector right
[private]
 

Definition at line 208 of file Scanner.cpp.

References vuVector::cross, vuVector::dot, and vuVector::makeUnit().

Referenced by _renderView().

Here is the call graph for this function:

void Scanner::_initTransferFunction  )  [private]
 

Definition at line 89 of file Scanner.cpp.

References vuTFDesign::addColour(), vuTFDesign::addOpacity(), vuTFDesign::generateFunction(), m_Raycast, m_TransFunct, vuTFDesign::setColourSmoothing(), vuTFDesign::setOpacitySmoothing(), and vu111211::setTransferFunc().

Referenced by Scanner().

Here is the call graph for this function:

void Scanner::_lazyCalculate const char *  fileName,
bool  display
[private]
 

Definition at line 170 of file Scanner.cpp.

References _renderView(), CHECKNDELETE, vuLightfieldFile::close(), dword, vuSphericView< SIZE, TYPE >::getMap(), GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, glClear(), glClearColor(), vuSphericView< SIZE, TYPE >::glRender(), m_Height, m_isComputed, m_Views, m_Width, vuLightfieldFile::open(), vuSphericLightfieldFile3B, vuSphericView3B, vuSphericLightfieldFile< SIZE, TYPE >::writeHeader(), and vuSphericLightfieldFile< SIZE, TYPE >::writeView().

Referenced by lazyCalculateAndDisplay(), and lazyCalculateAndLog().

Here is the call graph for this function:

word Scanner::_numberOfDigits word  number  )  [private]
 

Definition at line 160 of file Scanner.cpp.

References word.

Referenced by _renderView().

void Scanner::_renderView dword  i,
vuSphericView3B view,
bool  verbose = true
[private]
 

Definition at line 110 of file Scanner.cpp.

References _calcViewVectors(), _numberOfDigits(), byte, vu1112113::doRefresh(), dword, vuImage::get_rgb(), vu1::getCameraPtr(), vu1112113::getCenter(), vu1112113::getImage(), vuSphericView< SIZE, TYPE >::getMap(), vuUDSphere::getPointAt(), vuParallelCamera::init(), m_Raycast, m_Sphere, m_Views, m_Width, vu1112113::render(), vuCamera::setLookAtVector(), vuSphericView< SIZE, TYPE >::setLookFrom(), vuCamera::setPosition(), vuCamera::setRightVector(), vuSphericView< SIZE, TYPE >::setUp(), vuCamera::setUpVector(), vuSphericView3B, Point3d::x, Point3d::y, and Point3d::z.

Referenced by _lazyCalculate().

Here is the call graph for this function:

void Scanner::lazyCalculateAndDisplay const char *  fileName  ) 
 

Definition at line 73 of file Scanner.cpp.

References _lazyCalculate().

Referenced by display().

Here is the call graph for this function:

void Scanner::lazyCalculateAndLog const char *  fileName  ) 
 

Definition at line 78 of file Scanner.cpp.

References _lazyCalculate().

Referenced by main().

Here is the call graph for this function:

void Scanner::loadTFuncFromFile const char *  fileName  ) 
 

Definition at line 57 of file Scanner.cpp.

References vuTFDesign::generateFunction(), vuTFDesign::loadTF(), m_Raycast, m_TransFunct, and vu111211::setTransferFunc().

Referenced by init().

Here is the call graph for this function:


Member Data Documentation

dword Scanner::m_Height [private]
 

Definition at line 24 of file Scanner.h.

Referenced by _lazyCalculate(), and Scanner().

bool Scanner::m_isComputed [private]
 

Definition at line 22 of file Scanner.h.

Referenced by _lazyCalculate(), and Scanner().

vu1112113* Scanner::m_Raycast [private]
 

Definition at line 20 of file Scanner.h.

Referenced by _initTransferFunction(), _renderView(), loadTFuncFromFile(), Scanner(), and ~Scanner().

vuUDSphere* Scanner::m_Sphere [private]
 

Definition at line 19 of file Scanner.h.

Referenced by _renderView(), Scanner(), and ~Scanner().

vuTFDesign Scanner::m_TransFunct [private]
 

Definition at line 21 of file Scanner.h.

Referenced by _initTransferFunction(), and loadTFuncFromFile().

dword Scanner::m_Views [private]
 

Definition at line 25 of file Scanner.h.

Referenced by _lazyCalculate(), _renderView(), and Scanner().

dword Scanner::m_Width [private]
 

Definition at line 23 of file Scanner.h.

Referenced by _lazyCalculate(), _renderView(), and Scanner().


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