#include <raycaster.h>
Inheritance diagram for vu1512113:


Public Member Functions | |
| vu1512113 () | |
| Default constructor creating an empty instance. | |
| vu1512113 (const vu1512113 &inst) | |
| Copy constructor which does a deep copy. | |
| virtual | ~vu1512113 () |
| Destructor. | |
| vu1512113 & | operator= (const vu1512113 &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 | |
| void | setSamplingDistance (float sdist) |
| sets sampling distance (default=1.0); | |
| float | getSamplingDistance () const |
| returns sampling distance | |
| void | setLightDir (const vuVector ldir) |
| change direction of the light (default is (1,0,0)) | |
| const vuVector | getLightDir () |
| get direction of the light | |
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) | |
| float | m_SamplingDistance |
| sampling distance (default=1.0) | |
| vuVector | m_LightDir |
| direction of the light | |
| vuColourRGBa | m_Specular |
| specular colour (set to white) | |
Definition at line 22 of file raycaster.h.
|
|
Default constructor creating an empty instance.
Definition at line 23 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.cpp. References m_SamplingDistance, refresh, vuCamera::setHeight(), and vuCamera::setWidth(). |
Here is the call graph for this function:

|
|
Copy constructor which does a deep copy.
Definition at line 36 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.cpp. |
|
|
Destructor.
Definition at line 44 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.cpp. |
|
|
implementation of a virtual function
Definition at line 420 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.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 raycaster.h. Referenced by vuBCCRaycaster::getCurrentImage(). |
|
|
get direction of the light
Definition at line 73 of file raycaster.h. |
|
|
returns sampling distance
Definition at line 67 of file raycaster.h. |
|
|
Initializes open gl for rendering the volume data.
Definition at line 186 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.cpp. Referenced by vuBCCRaycaster::glInit(). |
|
||||||||||||||||||||||||||||
|
Definition at line 195 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.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 52 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.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 156 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.cpp. |
|
|
Reimplements the read() method to do some extra volume data processing.
Reimplemented from vu15121. Definition at line 100 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.cpp. References vu1512::getCenter(), vuCamera::init(), preprocess(), vu15121::read(), vuCamera::setPosition(), and vuCamera::translateXYZ(). Referenced by vuBCCRaycaster::init(). |
Here is the call graph for this function:

|
|
This method reads volume data stored using the .raw data type.
Definition at line 118 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.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 166 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.cpp. References displayFromImage(), GL_COLOR_BUFFER_BIT, glClear(), glClearColor(), glFlush(), refresh, and renderImage(). Referenced by vuBCCRaycaster::onRender(). |
Here is the call graph for this function:

|
Here is the call graph for this function:

|
||||||||||||
|
Sets the size of the rendering canvas.
Definition at line 62 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.cpp. References vuCamera::getHeight(), vuCamera::getType(), vuCamera::getWidth(), vuImage::init(), vuCamera::init(), m_Image, vuPerspectiveCamera::setAspect(), vuCamera::setHeight(), and vuCamera::setWidth(). Referenced by vuBCCRaycaster::glResize(). |
Here is the call graph for this function:

|
|
change direction of the light (default is (1,0,0))
Definition at line 69 of file raycaster.h. References m_LightDir. |
|
|
sets sampling distance (default=1.0);
Definition at line 63 of file raycaster.h. References m_SamplingDistance. |
|
||||||||||||||||
|
Sets the camera viewing position for the render method.
Implements vu1. Definition at line 82 of file Volume/BCC/Unimodal/3d/1B/Intensity/Raycaster/raycaster.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 85 of file raycaster.h. Referenced by displayFromImage(), renderImage(), and setImageSize(). |
|
|
direction of the light
Definition at line 87 of file raycaster.h. Referenced by renderImage(), and setLightDir(). |
|
|
Definition at line 83 of file raycaster.h. |
|
|
sampling distance (default=1.0)
Definition at line 86 of file raycaster.h. Referenced by renderImage(), setSamplingDistance(), and vu1512113(). |
|
|
specular colour (set to white)
Definition at line 88 of file raycaster.h. Referenced by renderImage(). |
|
|
Definition at line 25 of file raycaster.h. Referenced by vuBCCRaycaster::DrawAgain(), vuBCCRaycaster::OnButtonRender(), render(), and vu1512113(). |
1.3.9.1