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

vu1512122 Class Reference

first hit raycaster for bcc grid images don't look pretty yet. More...

#include <firsthitraycaster.h>

Inheritance diagram for vu1512122:

Inheritance graph
[legend]
Collaboration diagram for vu1512122:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vu1512122 ()
 Default constructor creating an empty instance.
 vu1512122 (const vu1512122 &inst)
 Copy constructor which does a deep copy.
virtual ~vu1512122 ()
 Destructor.
vu1512122operator= (const vu1512122 &rhs)
 Assignment operator which does a deep copy.
void setViewVectors (const vuVector &view, const vuVector &up, const vuVector &right)
 Sets the camera viewing position for the render method.
void setImageSize (int sx, int sy)
 Sets the size of the rendering canvas.
vuImagegetImage ()
 Returns a pointer to the current image.
void initOpenGL (void)
 Initializes open gl for rendering the volume data.
void render ()
 Implements the abstract render() method of the vuVolume base class.
virtual bool read ()
 Reimplements the read() method to do some extra volume data processing.
virtual bool readRaw (void)
 This method reads volume data stored using the .raw data type.
void displayFromImage ()
 implementation of a virtual function

Public Attributes

bool refresh

Private Member Functions

void preprocess (void)
 Preprocesses volume data for rendering once it's been read.
bool intersectRayWithBox (vuVector Ro, vuVector Rd, vuVector *f, vuVector *s, vuVector *llc, vuVector *urc)
void renderImage ()

Private Attributes

floatm_Normals
vuImage m_Image
 image (just an RGB byte framebuffer)

Detailed Description

first hit raycaster for bcc grid images don't look pretty yet.

Definition at line 22 of file firsthitraycaster.h.


Constructor & Destructor Documentation

vu1512122::vu1512122  ) 
 

Default constructor creating an empty instance.

Definition at line 13 of file firsthitraycaster.cpp.

References refresh, vuCamera::setHeight(), and vuCamera::setWidth().

Here is the call graph for this function:

vu1512122::vu1512122 const vu1512122 inst  ) 
 

Copy constructor which does a deep copy.

Definition at line 25 of file firsthitraycaster.cpp.

vu1512122::~vu1512122  )  [virtual]
 

Destructor.

Definition at line 33 of file firsthitraycaster.cpp.


Member Function Documentation

void vu1512122::displayFromImage  ) 
 

implementation of a virtual function

Definition at line 435 of file firsthitraycaster.cpp.

References vuImage::blit(), vuImage::get_extents(), and m_Image.

Referenced by render().

Here is the call graph for this function:

vuImage* vu1512122::getImage  )  [inline]
 

Returns a pointer to the current image.

Warning: The image (an it's dimensions) may change in the next resize or render operation.

Definition at line 46 of file firsthitraycaster.h.

Referenced by vuBCCFirstHitRaycaster::getCurrentImage().

void vu1512122::initOpenGL void   ) 
 

Initializes open gl for rendering the volume data.

Definition at line 175 of file firsthitraycaster.cpp.

Referenced by vuBCCFirstHitRaycaster::glInit().

bool vu1512122::intersectRayWithBox vuVector  Ro,
vuVector  Rd,
vuVector f,
vuVector s,
vuVector llc,
vuVector urc
[private]
 

Definition at line 184 of file firsthitraycaster.cpp.

References vuVector::makeUnit().

Referenced by renderImage().

Here is the call graph for this function:

vu1512122 & vu1512122::operator= const vu1512122 rhs  ) 
 

Assignment operator which does a deep copy.

Definition at line 41 of file firsthitraycaster.cpp.

References vu1512::operator=().

Here is the call graph for this function:

void vu1512122::preprocess void   )  [private]
 

Preprocesses volume data for rendering once it's been read.

Definition at line 145 of file firsthitraycaster.cpp.

Referenced by read(), and readRaw().

bool vu1512122::read  )  [virtual]
 

Reimplements the read() method to do some extra volume data processing.

Reimplemented from vu15121.

Definition at line 89 of file firsthitraycaster.cpp.

References vu1512::getCenter(), vuCamera::init(), preprocess(), vu15121::read(), vuCamera::setPosition(), and vuCamera::translateXYZ().

Referenced by vuBCCFirstHitRaycaster::init().

Here is the call graph for this function:

bool vu1512122::readRaw void   )  [virtual]
 

This method reads volume data stored using the .raw data type.

Definition at line 107 of file firsthitraycaster.cpp.

References byte, dword, and preprocess().

Here is the call graph for this function:

void vu1512122::render  )  [virtual]
 

Implements the abstract render() method of the vuVolume base class.

Implements vu1.

Definition at line 155 of file firsthitraycaster.cpp.

References displayFromImage(), GL_COLOR_BUFFER_BIT, glClear(), glClearColor(), glFlush(), refresh, and renderImage().

Referenced by vuBCCFirstHitRaycaster::onRender().

Here is the call graph for this function:

void vu1512122::renderImage  )  [private]
 

Definition at line 303 of file firsthitraycaster.cpp.

References vuVector::dot, vu15121::getDataValue(), vu15121::getGradient(), vuCamera::getHeight(), vuCamera::getLookAtVector(), vuCamera::getRay(), vuCamera::getWidth(), GL_POINTS, glBegin(), glEnd(), vuImage::init(), intersectRayWithBox(), m_Image, vuVector::makeUnit(), pow(), and vuImage::set_xy().

Referenced by render().

Here is the call graph for this function:

void vu1512122::setImageSize int  sx,
int  sy
 

Sets the size of the rendering canvas.

Definition at line 51 of file firsthitraycaster.cpp.

References vuCamera::getHeight(), vuCamera::getType(), vuCamera::getWidth(), vuImage::init(), vuCamera::init(), m_Image, vuPerspectiveCamera::setAspect(), vuCamera::setHeight(), and vuCamera::setWidth().

Referenced by vuBCCFirstHitRaycaster::glResize().

Here is the call graph for this function:

void vu1512122::setViewVectors const vuVector view,
const vuVector up,
const vuVector right
[virtual]
 

Sets the camera viewing position for the render method.

Implements vu1.

Definition at line 71 of file firsthitraycaster.cpp.

References vuCamera::init(), vuCamera::setLookAtVector(), vuCamera::setRightVector(), and vuCamera::setUpVector().

Here is the call graph for this function:


Member Data Documentation

vuImage vu1512122::m_Image [private]
 

image (just an RGB byte framebuffer)

Definition at line 77 of file firsthitraycaster.h.

Referenced by displayFromImage(), renderImage(), and setImageSize().

float* vu1512122::m_Normals [private]
 

Definition at line 70 of file firsthitraycaster.h.

bool vu1512122::refresh
 

Definition at line 25 of file firsthitraycaster.h.

Referenced by vuBCCFirstHitRaycaster::DrawAgain(), vuBCCFirstHitRaycaster::OnButtonRender(), render(), and vu1512122().


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