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

ns_vu1112113::DatPnt Class Reference

Class containing information about a single grid point. More...

#include <DatPnt.h>

Collaboration diagram for ns_vu1112113::DatPnt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DatPnt ()
 constructor
 ~DatPnt ()
 destructor
void reset ()
 reset class information
void shade (vu1112113 &r)
 precompute diffuse illumination
const vuVector normalVec () const
 get normal (gradient) as vuVector
void setNormalVec (const vuVector &nv)

Public Attributes

byte data
 the data byte for the point it would be better to refer to the original dataset.
byte len
 original length of gradient
float norm [3]
 normal (normalized inverted central differences)
float illum
 precomputed illumination3

Detailed Description

Class containing information about a single grid point.

Instances of this class are managed inside the according geometry by DatGrid.

Definition at line 17 of file Raycast/DatPnt.h.


Constructor & Destructor Documentation

DatPnt::DatPnt  ) 
 

constructor

Definition at line 4 of file Raycast/DatPnt.cpp.

References reset().

Here is the call graph for this function:

DatPnt::~DatPnt  ) 
 

destructor

Definition at line 9 of file Raycast/DatPnt.cpp.


Member Function Documentation

const vuVector ns_vu1112113::DatPnt::normalVec  )  const [inline]
 

get normal (gradient) as vuVector

Definition at line 32 of file Raycast/DatPnt.h.

Referenced by vu1112113::Cast(), ns_vu1112113::vuSampleRay::getSamplePoint(), and shade().

void DatPnt::reset  ) 
 

reset class information

Definition at line 13 of file Raycast/DatPnt.cpp.

References illum, and len.

Referenced by DatPnt(), and ns_vu1112113::vuSampleRay::getSamplePoint().

void ns_vu1112113::DatPnt::setNormalVec const vuVector nv  )  [inline]
 

Definition at line 34 of file Raycast/DatPnt.h.

Referenced by ns_vu1112113::vuSampleRay::getSamplePoint().

void DatPnt::shade vu1112113 r  ) 
 

precompute diffuse illumination

Definition at line 19 of file Raycast/DatPnt.cpp.

References vu1112113::brightness, vu1112113::diffuse, vuVector::dot, illum, vu1112113::lightdir, and normalVec().

Referenced by ns_vu1112113::DatGrid::shade().

Here is the call graph for this function:


Member Data Documentation

byte ns_vu1112113::DatPnt::data
 

the data byte for the point it would be better to refer to the original dataset.

But for the current implementation a reference takes more time.

Definition at line 43 of file Raycast/DatPnt.h.

Referenced by ns_vu1112113::DatGrid::calculate_gradients(), vu1112113::Cast(), ns_vu1112113::DatGrid::copy_vol(), and ns_vu1112113::vuSampleRay::getSamplePoint().

float ns_vu1112113::DatPnt::illum
 

precomputed illumination3

Definition at line 46 of file Raycast/DatPnt.h.

Referenced by vu1112113::Cast(), ns_vu1112113::vuSampleRay::getSamplePoint(), reset(), and shade().

byte ns_vu1112113::DatPnt::len
 

original length of gradient

Definition at line 44 of file Raycast/DatPnt.h.

Referenced by ns_vu1112113::DatGrid::calculate_gradients(), vu1112113::Cast(), ns_vu1112113::vuSampleRay::getSamplePoint(), and reset().

float ns_vu1112113::DatPnt::norm[3]
 

normal (normalized inverted central differences)

Definition at line 45 of file Raycast/DatPnt.h.

Referenced by ns_vu1112113::DatGrid::calculate_gradients().


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