Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ns_vu1112113::DatGrid Class Reference

This is an indexed collection of DatPnt instances. More...

#include <DatGrid.h>

Collaboration diagram for ns_vu1112113::DatGrid:

Collaboration graph
[legend]
List of all members.

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
DatPntvol

Private Member Functions

float clipRay (vuSampleRay &r, bool bidirectional, int &m_Side) const

Private Attributes

vuVector m_C0
vuVector m_C1

Friends

class vuSampleRay

Detailed Description

This is an indexed collection of DatPnt instances.

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 & Destructor Documentation

DatGrid::DatGrid  ) 
 

constructor

Definition at line 28 of file Raycast/DatGrid.cpp.

References layXY, maxX, maxY, maxZ, and vol.

DatGrid::~DatGrid  ) 
 

destructor

Definition at line 34 of file Raycast/DatGrid.cpp.

References free_vol_mem().

Here is the call graph for this function:


Member Function Documentation

void DatGrid::calculate_gradients  ) 
 

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().

float DatGrid::clipRay vuSampleRay r,
bool  bidirectional,
int &  m_Side
const [private]
 

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:

bool DatGrid::copy_vol byte data,
vu1112113 r
 

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:

int DatGrid::free_vol_mem  )  [protected]
 

free the memory

Definition at line 39 of file Raycast/DatGrid.cpp.

References vol.

Referenced by get_vol_mem(), and ~DatGrid().

int DatGrid::get_vol_mem  )  [protected]
 

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:

int DatGrid::init int  maxx,
int  maxy,
int  maxz
 

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:

void DatGrid::shade vu1112113 r  ) 
 

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:


Friends And Related Function Documentation

friend class vuSampleRay [friend]
 

Definition at line 25 of file Raycast/DatGrid.h.


Member Data Documentation

int ns_vu1112113::DatGrid::layXY [protected]
 

size of x-y slice

Definition at line 50 of file Raycast/DatGrid.h.

Referenced by ns_vu1112113::vuSampleRay::advanceRay(), DatGrid(), and init().

vuVector ns_vu1112113::DatGrid::m_C0 [private]
 

Definition at line 58 of file Raycast/DatGrid.h.

Referenced by clipRay(), and init().

vuVector ns_vu1112113::DatGrid::m_C1 [private]
 

Definition at line 59 of file Raycast/DatGrid.h.

Referenced by clipRay(), and init().

int ns_vu1112113::DatGrid::maxX [protected]
 

Definition at line 49 of file Raycast/DatGrid.h.

Referenced by ns_vu1112113::vuSampleRay::advanceRay(), copy_vol(), DatGrid(), get_vol_mem(), and init().

int ns_vu1112113::DatGrid::maxY [protected]
 

Definition at line 49 of file Raycast/DatGrid.h.

Referenced by ns_vu1112113::vuSampleRay::advanceRay(), copy_vol(), DatGrid(), get_vol_mem(), and init().

int ns_vu1112113::DatGrid::maxZ [protected]
 

extents along each axis

Definition at line 49 of file Raycast/DatGrid.h.

Referenced by ns_vu1112113::vuSampleRay::advanceRay(), copy_vol(), DatGrid(), and init().

int ns_vu1112113::DatGrid::size [protected]
 

total number of points in grid

Definition at line 51 of file Raycast/DatGrid.h.

DatPnt* ns_vu1112113::DatGrid::vol [protected]
 

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().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:22:13 2004 for vuVolume by  doxygen 1.3.9.1