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

ns_vu1112112::Material Class Reference

Describes spectral properties of a material. More...

#include <Material.h>

Collaboration diagram for ns_vu1112112::Material:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Material ()
 constructor
virtual ~Material ()
 destructor
Materialoperator= (const Material &mat)
 assignment operator
void check_absorption ()
 if absorption spectrum is flat an internal flag flat_absorption is set.

Public Attributes

ColourType absorption
 weights for the illuminating spectrum
ColourType scattering
 tells what is transmitted?
bool xray
 If true material doesn't absorbe light but will still scatter.
bool flat_absorption
 this flag simpilies absorption calculation if absorption has a flat spectrum
int low_th
 low intensity thresholds for matierial
int high_th

Detailed Description

Describes spectral properties of a material.

Scattering describes which amount of light is reflected omnidirectionally. The absorption is treated like a seperate alpha value for each channel.

Definition at line 15 of file Material.h.


Constructor & Destructor Documentation

ns_vu1112112::Material::Material  ) 
 

constructor

Definition at line 15 of file Material.cpp.

References flat_absorption, high_th, low_th, and xray.

ns_vu1112112::Material::~Material  )  [virtual]
 

destructor

Definition at line 23 of file Material.cpp.


Member Function Documentation

void ns_vu1112112::Material::check_absorption  ) 
 

if absorption spectrum is flat an internal flag flat_absorption is set.

Definition at line 39 of file Material.cpp.

References absorption, flat_absorption, vuColour< S >::maxComponent(), and vuColour< S >::minComponent().

Referenced by ns_vu1112112::Parser::ReadMaterial().

Here is the call graph for this function:

Material & ns_vu1112112::Material::operator= const Material mat  ) 
 

assignment operator

Definition at line 28 of file Material.cpp.

References absorption, flat_absorption, high_th, low_th, scattering, and xray.


Member Data Documentation

ColourType ns_vu1112112::Material::absorption
 

weights for the illuminating spectrum

Definition at line 30 of file Material.h.

Referenced by ns_vu1112112::vu1112112::Cast(), check_absorption(), operator=(), ns_vu1112112::vu1112112::preprocess(), and ns_vu1112112::Parser::ReadMaterial().

bool ns_vu1112112::Material::flat_absorption
 

this flag simpilies absorption calculation if absorption has a flat spectrum

Definition at line 39 of file Material.h.

Referenced by check_absorption(), Material(), operator=(), and ns_vu1112112::vu1112112::render().

int ns_vu1112112::Material::high_th
 

Definition at line 48 of file Material.h.

Referenced by ns_vu1112112::DatPnt::classify(), Material(), operator=(), ns_vu1112112::vu1112112::preprocess(), and ns_vu1112112::Parser::ReadMaterial().

int ns_vu1112112::Material::low_th
 

low intensity thresholds for matierial

The two limits make up an interval for a tent classification function. in the middle the material percentage is 100% decreasing linearly to the borders down to 0%. They should be chosen in a way that no materials overlap to make up more than 100% this would brighten up the voxels.

Definition at line 47 of file Material.h.

Referenced by ns_vu1112112::DatPnt::classify(), Material(), operator=(), ns_vu1112112::vu1112112::preprocess(), and ns_vu1112112::Parser::ReadMaterial().

ColourType ns_vu1112112::Material::scattering
 

tells what is transmitted?

Definition at line 31 of file Material.h.

Referenced by ns_vu1112112::vu1112112::Cast(), operator=(), ns_vu1112112::vu1112112::preprocess(), and ns_vu1112112::Parser::ReadMaterial().

bool ns_vu1112112::Material::xray
 

If true material doesn't absorbe light but will still scatter.

That means intensities along the ray will just add up, which results in x-ray like images

Definition at line 36 of file Material.h.

Referenced by ns_vu1112112::vu1112112::Cast(), Material(), operator=(), and ns_vu1112112::Parser::ReadMaterial().


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