#include <DatGrid.h>
Collaboration diagram for ns_vu1112113::DatGrid:
Public Member Functions | |
void | calculate_gradients () |
Calulates the gradients using central differencing. | |
void | shade (vu1112113 &r) |
perform pre-classification for each grid point. | |
bool | copy_vol (byte *data, vu1112113 &r) |
loads a volume into the grid structure. | |
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 | |
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 Raycast/DatGrid.h.
|
constructor
Definition at line 28 of file Raycast/DatGrid.cpp. |
|
destructor
Definition at line 34 of file Raycast/DatGrid.cpp. References free_vol_mem(). |
Here is the call graph for this function:
|
Calulates the gradients using central differencing.
Definition at line 229 of file Raycast/DatGrid.cpp. References byte, ns_vu1112113::DatPnt::data, ns_vu1112113::DatPnt::len, ns_vu1112113::DatPnt::norm, and vol. Referenced by vu1112113::preprocess(). |
|
Definition at line 70 of file Raycast/DatGrid.cpp. References m_C0, m_C1, vuRay::m_Direction, vuRay::m_Position, and ns_vu1112112::SnapToZero(). Referenced by ns_vu1112113::vuSampleRay::attachToGrid(). |
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 203 of file Raycast/DatGrid.cpp. References data, ns_vu1112113::DatPnt::data, init(), vu1112::m_Dim1Size, vu1112::m_Dim2Size, vu1112::m_Dim3Size, maxX, maxY, maxZ, size, and vol. Referenced by vu1112113::read(), and vu1112113::readRaw(). |
Here is the call graph for this function:
|
free the memory
Definition at line 39 of file Raycast/DatGrid.cpp. References vol. Referenced by get_vol_mem(), and ~DatGrid(). |
|
get the memory for the set up size
Definition at line 51 of file Raycast/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 60 of file Raycast/DatGrid.cpp. References get_vol_mem(), layXY, m_C0, m_C1, maxX, maxY, maxZ, and size. Referenced by copy_vol(). |
Here is the call graph for this function:
|
perform pre-classification for each grid point. calls DatPnt::classify_and_shade() Definition at line 221 of file Raycast/DatGrid.cpp. References ns_vu1112113::DatPnt::shade(), size, and vol. Referenced by vu1112113::preprocess(). |
Here is the call graph for this function:
|
Definition at line 25 of file Raycast/DatGrid.h. |
|
size of x-y slice
Definition at line 50 of file Raycast/DatGrid.h. Referenced by ns_vu1112113::vuSampleRay::advanceRay(), DatGrid(), and init(). |
|
Definition at line 58 of file Raycast/DatGrid.h. |
|
Definition at line 59 of file Raycast/DatGrid.h. |
|
Definition at line 49 of file Raycast/DatGrid.h. Referenced by ns_vu1112113::vuSampleRay::advanceRay(), copy_vol(), DatGrid(), get_vol_mem(), and init(). |
|
Definition at line 49 of file Raycast/DatGrid.h. Referenced by ns_vu1112113::vuSampleRay::advanceRay(), copy_vol(), DatGrid(), get_vol_mem(), and init(). |
|
extents along each axis
Definition at line 49 of file Raycast/DatGrid.h. Referenced by ns_vu1112113::vuSampleRay::advanceRay(), copy_vol(), DatGrid(), and init(). |
|
total number of points in grid
Definition at line 51 of file Raycast/DatGrid.h. |
|
Definition at line 53 of file Raycast/DatGrid.h. Referenced by ns_vu1112113::vuSampleRay::advanceRay(), calculate_gradients(), copy_vol(), DatGrid(), free_vol_mem(), get_vol_mem(), and shade(). |