#include <DatPnt.h>
Collaboration diagram for ns_vu1112112::DatPnt:

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 | |
Instances of this class are managed inside the according geometry by DatGrid.
Definition at line 18 of file Spectral/DatPnt.h.
|
|
Definition at line 21 of file Spectral/DatPnt.h. |
|
|
constructor
Definition at line 17 of file Spectral/DatPnt.cpp. References reset(). |
Here is the call graph for this function:

|
|
destructor
Definition at line 22 of file Spectral/DatPnt.cpp. |
|
|
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:

|
|
get the flag
Definition at line 37 of file Spectral/DatPnt.h. Referenced by ns_vu1112112::vuSampleRay::advanceRay(), and ns_vu1112112::DatGrid::classify(). |
|
|
reset class information
Definition at line 27 of file Spectral/DatPnt.cpp. Referenced by DatPnt(), ns_vu1112112::vuSampleRay::getSamplePoint(), and ns_vu1112112::vuSampleRay::getSamplePointWithGradient(). |
|
|
set the flag
Definition at line 35 of file Spectral/DatPnt.h. Referenced by classify(), and ns_vu1112112::DatGrid::classify(). |
|
|
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(). |
|
|
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(). |
|
|
flag to tag unused voxels
Definition at line 45 of file Spectral/DatPnt.h. Referenced by reset(). |
|
|
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(). |
|
|
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(). |
|
|
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(). |
1.3.9.1