#include <firsthitraycaster.h>
Inheritance diagram for vu1512122:
Public Member Functions | |
vu1512122 () | |
Default constructor creating an empty instance. | |
vu1512122 (const vu1512122 &inst) | |
Copy constructor which does a deep copy. | |
virtual | ~vu1512122 () |
Destructor. | |
vu1512122 & | operator= (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. | |
vuImage * | getImage () |
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 | |
float * | m_Normals |
vuImage | m_Image |
image (just an RGB byte framebuffer) |
Definition at line 22 of file firsthitraycaster.h.
|
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:
|
Copy constructor which does a deep copy.
Definition at line 25 of file firsthitraycaster.cpp. |
|
Destructor.
Definition at line 33 of file firsthitraycaster.cpp. |
|
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:
|
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(). |
|
Initializes open gl for rendering the volume data.
Definition at line 175 of file firsthitraycaster.cpp. Referenced by vuBCCFirstHitRaycaster::glInit(). |
|
Definition at line 184 of file firsthitraycaster.cpp. References vuVector::makeUnit(). Referenced by renderImage(). |
Here is the call graph for this function:
|
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:
|
Preprocesses volume data for rendering once it's been read.
Definition at line 145 of file firsthitraycaster.cpp. |
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
image (just an RGB byte framebuffer)
Definition at line 77 of file firsthitraycaster.h. Referenced by displayFromImage(), renderImage(), and setImageSize(). |
|
Definition at line 70 of file firsthitraycaster.h. |
|
Definition at line 25 of file firsthitraycaster.h. Referenced by vuBCCFirstHitRaycaster::DrawAgain(), vuBCCFirstHitRaycaster::OnButtonRender(), render(), and vu1512122(). |