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

ns_vu1112112::DatPnt Class Reference

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

#include <DatPnt.h>

Collaboration diagram for ns_vu1112112::DatPnt:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Flags { Invisible = 0, Visible = 1, SkipCell = 2 }

Public Member Functions

void shade (vu1112112 &r)
 shade the point according to the information contained in the render engine r.
void classify (vu1112112 &r)
 classify the point according to the information contained in the render engine r.
void reset ()
 reset class information
 DatPnt ()
 constructor
 ~DatPnt ()
 destructor
void setFlag (Flags vflag)
 set the flag
Flags getFlag ()
 get the flag

Public Attributes

unsigned char data
 the data byte for the point it would be better to refer to the original dataset.
char flag
 flag to tag unused voxels
unsigned char length
 original length of gradient if it's > 255 it will be clamped ;-)
signed char grad [3]
 gradient from central differences normalized to length 128
float illum
 the point is illuminated by a white spectrum

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 18 of file Spectral/DatPnt.h.


Member Enumeration Documentation

enum ns_vu1112112::DatPnt::Flags
 

Enumeration values:
Invisible 
Visible 
SkipCell 

Definition at line 21 of file Spectral/DatPnt.h.


Constructor & Destructor Documentation

ns_vu1112112::DatPnt::DatPnt  ) 
 

constructor

Definition at line 17 of file Spectral/DatPnt.cpp.

References reset().

Here is the call graph for this function:

ns_vu1112112::DatPnt::~DatPnt  ) 
 

destructor

Definition at line 22 of file Spectral/DatPnt.cpp.


Member Function Documentation

void ns_vu1112112::DatPnt::classify vu1112112 r  ) 
 

classify the point according to the information contained in the render engine r.

Definition at line 55 of file Spectral/DatPnt.cpp.

References ColourType, data, ns_vu1112112::Material::high_th, Invisible, ns_vu1112112::Material::low_th, vu111211::m_TFunc, ns_vu1112112::vu1112112::mat, ns_vu1112112::vu1112112::nummat, setFlag(), and Visible.

Referenced by ns_vu1112112::DatGrid::classify().

Here is the call graph for this function:

Flags ns_vu1112112::DatPnt::getFlag  )  [inline]
 

get the flag

Definition at line 37 of file Spectral/DatPnt.h.

Referenced by ns_vu1112112::vuSampleRay::advanceRay(), and ns_vu1112112::DatGrid::classify().

void ns_vu1112112::DatPnt::reset  ) 
 

reset class information

Definition at line 27 of file Spectral/DatPnt.cpp.

References flag, and illum.

Referenced by DatPnt(), ns_vu1112112::vuSampleRay::getSamplePoint(), and ns_vu1112112::vuSampleRay::getSamplePointWithGradient().

void ns_vu1112112::DatPnt::setFlag Flags  vflag  )  [inline]
 

set the flag

Definition at line 35 of file Spectral/DatPnt.h.

Referenced by classify(), and ns_vu1112112::DatGrid::classify().

void ns_vu1112112::DatPnt::shade vu1112112 r  ) 
 

shade the point according to the information contained in the render engine r.

Definition at line 38 of file Spectral/DatPnt.cpp.

References ns_vu1112112::vu1112112::brightness, ns_vu1112112::vu1112112::diffuse, grad, illum, and ns_vu1112112::vu1112112::m_LightDir.

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


Member Data Documentation

unsigned char ns_vu1112112::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 would take more time.

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

Referenced by ns_vu1112112::DatGrid::calculate_gradients(), ns_vu1112112::vu1112112::Cast(), classify(), ns_vu1112112::DatGrid::createSphere(), ns_vu1112112::vuSampleRay::getSamplePoint(), ns_vu1112112::vuSampleRay::getSamplePointWithGradient(), and ns_vu1112112::DatGrid::load_vol().

char ns_vu1112112::DatPnt::flag
 

flag to tag unused voxels

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

Referenced by reset().

signed char ns_vu1112112::DatPnt::grad[3]
 

gradient from central differences normalized to length 128

Definition at line 50 of file Spectral/DatPnt.h.

Referenced by ns_vu1112112::DatGrid::calculate_gradients(), ns_vu1112112::vu1112112::Cast(), ns_vu1112112::vuSampleRay::getSamplePointWithGradient(), and shade().

float ns_vu1112112::DatPnt::illum
 

the point is illuminated by a white spectrum

Definition at line 54 of file Spectral/DatPnt.h.

Referenced by ns_vu1112112::vu1112112::Cast(), ns_vu1112112::DatGrid::createSphere(), ns_vu1112112::vuSampleRay::getSamplePoint(), ns_vu1112112::vuSampleRay::getSamplePointWithGradient(), reset(), and shade().

unsigned char ns_vu1112112::DatPnt::length
 

original length of gradient if it's > 255 it will be clamped ;-)

Definition at line 48 of file Spectral/DatPnt.h.

Referenced by ns_vu1112112::DatGrid::calculate_gradients(), ns_vu1112112::vu1112112::Cast(), and ns_vu1112112::vuSampleRay::getSamplePointWithGradient().


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