#include <DatGrid.h>
Collaboration diagram for ns_vu1112112::DatGrid:
Public Member Functions | |
void | calculate_gradients () |
Calulates the gradients using central differencing. | |
void | shade (vu1112112 &r) |
perform shading for each grid point. | |
void | classify (vu1112112 &r) |
perform pre-classification for each grid point. | |
bool | load_vol (byte *data, vu1112112 &r) |
loads a volume into the grid structure. | |
void | createSphere () |
Creates a sphere into a given bounding volume. | |
int | init (int maxx, int maxy, int maxz) |
prepares the memory for a data set of given size | |
DatGrid () | |
constructor | |
~DatGrid () | |
destructor | |
Protected Member Functions | |
int | get_vol_mem () |
get the memory for the set up size | |
int | free_vol_mem () |
free the memory | |
void | distributeIllum (ColourType &il) |
Protected Attributes | |
int | maxX |
int | maxY |
int | maxZ |
extents along each axis | |
int | layXY |
size of x-y slice | |
int | size |
total number of points in grid | |
DatPnt * | vol |
Private Member Functions | |
float | clipRay (vuSampleRay &r, bool bidirectional, int &m_Side) const |
Private Attributes | |
vuVector | m_C0 |
vuVector | m_C1 |
Friends | |
class | vuSampleRay |
Provides functions related to the volume data including indexing, normal calculation, classification, clipping a vuRay (as vuSampleRay) to the bounding box, and aquiring interpolated sampling points advancing this ray.
Definition at line 23 of file Spectral/DatGrid.h.
|
constructor
Definition at line 26 of file Spectral/DatGrid.cpp. |
|
destructor
Definition at line 32 of file Spectral/DatGrid.cpp. References free_vol_mem(). |
Here is the call graph for this function:
|
Calulates the gradients using central differencing.
Definition at line 292 of file Spectral/DatGrid.cpp. References ns_vu1112112::DatPnt::data, ns_vu1112112::DatPnt::grad, ns_vu1112112::DatPnt::length, and vol. Referenced by ns_vu1112112::vu1112112::preprocess(). |
|
perform pre-classification for each grid point. calls DatPnt::classify(), plus checks visibility of cells. Definition at line 261 of file Spectral/DatGrid.cpp. References ns_vu1112112::DatPnt::classify(), ns_vu1112112::DatPnt::getFlag(), layXY, maxX, ns_vu1112112::DatPnt::setFlag(), size, and vol. Referenced by ns_vu1112112::vu1112112::preprocess(), and ns_vu1112112::vu1112112::render(). |
Here is the call graph for this function:
|
Definition at line 76 of file Spectral/DatGrid.cpp. References m_C0, m_C1, vuRay::m_Direction, vuRay::m_Position, and ns_vu1112112::SnapToZero(). Referenced by ns_vu1112112::vuSampleRay::attachToGrid(). |
Here is the call graph for this function:
|
Creates a sphere into a given bounding volume.
Definition at line 198 of file Spectral/DatGrid.cpp. References ns_vu1112112::DatPnt::data, ns_vu1112112::DatPnt::illum, maxX, and vol. |
|
Definition at line 69 of file Spectral/DatGrid.cpp. References ColourType. |
|
free the memory
Definition at line 37 of file Spectral/DatGrid.cpp. References vol. Referenced by get_vol_mem(), and ~DatGrid(). |
|
get the memory for the set up size
Definition at line 49 of file Spectral/DatGrid.cpp. References free_vol_mem(), maxX, maxY, and vol. Referenced by init(). |
Here is the call graph for this function:
|
prepares the memory for a data set of given size
Definition at line 59 of file Spectral/DatGrid.cpp. References get_vol_mem(), layXY, m_C0, m_C1, maxX, maxY, maxZ, and size. Referenced by load_vol(). |
Here is the call graph for this function:
|
loads a volume into the grid structure. Does not do any further preprocessing steps. Definition at line 235 of file Spectral/DatGrid.cpp. References data, ns_vu1112112::DatPnt::data, init(), vu1112::m_Dim1Size, vu1112::m_Dim2Size, vu1112::m_Dim3Size, maxX, maxY, maxZ, size, and vol. Referenced by ns_vu1112112::vu1112112::read(), and ns_vu1112112::vu1112112::readRaw(). |
Here is the call graph for this function:
|
perform shading for each grid point. calls DatPnt::shade() Definition at line 252 of file Spectral/DatGrid.cpp. References ns_vu1112112::DatPnt::shade(), size, and vol. Referenced by ns_vu1112112::vu1112112::preprocess(). |
Here is the call graph for this function:
|
Definition at line 25 of file Spectral/DatGrid.h. |
|
size of x-y slice
Definition at line 56 of file Spectral/DatGrid.h. Referenced by ns_vu1112112::vuSampleRay::advanceRay(), classify(), DatGrid(), and init(). |
|
Definition at line 66 of file Spectral/DatGrid.h. |
|
Definition at line 67 of file Spectral/DatGrid.h. |
|
Definition at line 55 of file Spectral/DatGrid.h. Referenced by ns_vu1112112::vuSampleRay::advanceRay(), classify(), createSphere(), DatGrid(), get_vol_mem(), init(), and load_vol(). |
|
Definition at line 55 of file Spectral/DatGrid.h. Referenced by ns_vu1112112::vuSampleRay::advanceRay(), DatGrid(), get_vol_mem(), init(), and load_vol(). |
|
extents along each axis
Definition at line 55 of file Spectral/DatGrid.h. Referenced by ns_vu1112112::vuSampleRay::advanceRay(), DatGrid(), init(), and load_vol(). |
|
total number of points in grid
Definition at line 57 of file Spectral/DatGrid.h. |
|
Definition at line 61 of file Spectral/DatGrid.h. Referenced by ns_vu1112112::vuSampleRay::advanceRay(), calculate_gradients(), classify(), createSphere(), DatGrid(), free_vol_mem(), get_vol_mem(), load_vol(), and shade(). |