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

Material.cpp

Go to the documentation of this file.
00001 // Material.cpp: Implementierung der Klasse Material.
00002 //
00004 
00005 #include "iostream.h"
00006 #include "Material.h"
00007 
00008 namespace ns_vu1112112 {
00009 using namespace ns_vu1112112;
00010 
00012 // Konstruktion/Destruktion
00014 
00015 Material::Material()
00016 {
00017   low_th=0;
00018   high_th=255;
00019   flat_absorption = false;
00020   xray = false;
00021 }
00022 
00023 Material::~Material()
00024 {
00025 
00026 }
00027 
00028 Material& Material::operator=(const Material& mat)
00029 {
00030     absorption = mat.absorption;
00031     scattering = mat.scattering;
00032     xray = mat.xray;
00033     low_th = mat.low_th;
00034     high_th = mat.high_th;
00035     flat_absorption = mat.flat_absorption;
00036     return *this;
00037 }
00038 
00039 void Material::check_absorption()
00040 {
00041     if(absorption.maxComponent() == absorption.minComponent())
00042     {
00043         flat_absorption = true;
00044         if(xray) cout<< "X-ray material"<<endl;
00045         
00046     }
00047     else
00048         flat_absorption = false;
00049 }
00050 
00051 } // end of namespace

Generated on Wed Dec 15 21:20:29 2004 for vuVolume by  doxygen 1.3.9.1