#include <splat.h>
Inheritance diagram for vu1512111:
Public Member Functions | |
vu1512111 () | |
Default constructor creating an empty instance. | |
vu1512111 (const vu1512111 &inst) | |
Copy constructor which does a deep copy. | |
virtual | ~vu1512111 () |
Destructor. | |
vu1512111 & | operator= (const vu1512111 &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 | setFootprintSize (dword size) |
Sets the size of the splatting footprint. | |
dword | getFootprintSize () const |
Returns the size of the splatting footprint. | |
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. | |
Private Member Functions | |
void | preprocess (void) |
Preprocesses volume data for rendering once it's been read. | |
void | computeSplat (void) |
Compute the splatting texture. | |
double | nelsonSplat (double r) |
Computes splatting values using the Nelson algorithm. | |
double | gaussSplat (double r) |
void | drawSplatOrtho (float *pos) |
Draws a splat at the given position using orthogonal view. | |
void | drawSplatPerspective (float *pos) |
Draws a splat at the given position using perspective view. | |
Private Attributes | |
vuNormalTable | m_NTable |
float * | m_Normals |
GLubyte * | m_Footprint |
dword | m_FPSize |
GLuint | m_GLSplat |
vuVector | m_View |
vuVector | m_Shift0 |
vuVector | m_Shift1 |
vuVector | m_Shift2 |
|
Default constructor creating an empty instance.
Definition at line 19 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References computeSplat(), m_Footprint, m_FPSize, m_GLSplat, and m_Normals. |
Here is the call graph for this function:
|
Copy constructor which does a deep copy.
Definition at line 34 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References byte, computeSplat(), dword, m_FPSize, m_Normals, and m_NTable. |
Here is the call graph for this function:
|
Destructor.
Definition at line 56 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References glDeleteTextures(), and m_GLSplat. |
Here is the call graph for this function:
|
Compute the splatting texture.
Definition at line 713 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References dword, gaussSplat(), glDeleteTextures(), GLubyte, m_Footprint, m_FPSize, and m_GLSplat. Referenced by operator=(), and vu1512111(). |
Here is the call graph for this function:
|
Draws a splat at the given position using orthogonal view.
Definition at line 898 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References vuVector::getData(), glTexCoord2fv(), glVertex3fv(), texcoord0, texcoord1, texcoord2, and texcoord3. Referenced by render(). |
Here is the call graph for this function:
|
Draws a splat at the given position using perspective view.
Definition at line 923 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. |
|
Definition at line 749 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. Referenced by computeSplat(). |
|
Returns the size of the splatting footprint.
Definition at line 124 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References dword. |
|
Here is the call graph for this function:
|
Computes splatting values using the Nelson algorithm.
Definition at line 757 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. |
|
Assignment operator which does a deep copy.
Definition at line 71 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References byte, computeSplat(), dword, m_FPSize, m_Normals, m_NTable, and vu1512::operator=(). |
Here is the call graph for this function:
|
Preprocesses volume data for rendering once it's been read.
Definition at line 198 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References vuNormalTable::addToCollection(), vuNormalTable::computeTable(), dword, vuNormalTable::findNearest(), vuNormalTable::initCollection(), m_Normals, and m_NTable. |
Here is the call graph for this function:
|
Reimplements the read() method to do some extra volume data processing.
Reimplemented from vu15121. Definition at line 133 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References byte, m_Normals, preprocess(), and vu15121::read(). Referenced by vuBccSplat::init(). |
Here is the call graph for this function:
|
This method reads volume data stored using the .raw data type.
Definition at line 153 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References byte, dword, m_Normals, 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 321 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References drawSplatOrtho(), dword, GL_QUADS, glBegin(), glColor4fv(), glEnd(), glNormal3fv(), m_Normals, m_NTable, and m_View. Referenced by vuBccSplat::glRender(). |
Here is the call graph for this function:
|
Sets the size of the splatting footprint.
Definition at line 115 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. |
|
Sets the camera viewing position for the render method.
Implements vu1. Definition at line 103 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.cpp. References m_Shift0, m_Shift1, m_Shift2, and m_View. Referenced by vuBccSplat::glRender(). |
|
Definition at line 83 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.h. Referenced by computeSplat(), initOpenGL(), and vu1512111(). |
|
Definition at line 84 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.h. Referenced by computeSplat(), initOpenGL(), operator=(), setFootprintSize(), and vu1512111(). |
|
Definition at line 85 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.h. Referenced by computeSplat(), initOpenGL(), vu1512111(), and ~vu1512111(). |
|
Definition at line 80 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.h. Referenced by operator=(), preprocess(), read(), readRaw(), render(), and vu1512111(). |
|
Definition at line 76 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.h. Referenced by operator=(), preprocess(), render(), and vu1512111(). |
|
Definition at line 88 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.h. Referenced by setViewVectors(). |
|
Definition at line 89 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.h. Referenced by setViewVectors(). |
|
Definition at line 90 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.h. Referenced by setViewVectors(). |
|
Definition at line 87 of file BCC/Unimodal/3d/1B/Intensity/Splat/splat.h. Referenced by render(), and setViewVectors(). |