![]() |
gVirtualXRay
2.0.10
VirtualX-RayImagingLibraryonGPU
|
MaterialSet is a class to manage a table of materials. More...
#include <MaterialSet.h>
Public Member Functions | |
~MaterialSet () | |
Destructor. More... | |
void | clearMemory () |
Clear all the memory. More... | |
void | loadFromFile (const std::string &aFileName) |
Load a file containing materials. More... | |
void | loadMaterialSetFromMemory () |
Load the table of materials. More... | |
void | addMaterial (const TissueMaterial &aMaterial) |
Add a material to the list. More... | |
const TissueMaterial & | getMaterial (short aHUValue) const |
Get the material corresponding to a given HU value. More... | |
float | getMuMinEnergy () const |
Accessor on the lower energy cutoff for attenuation coefficient. More... | |
float | getMuMaxEnergy () const |
Accessor on the higher energy cutoff for attenuation coefficient. More... | |
short | getMinHU () const |
Accessor on the minimum Hounsfield unit that the material set can handle. More... | |
short | getMaxHU () const |
Accessor on the maximum Hounsfield unit that the material set can handle. More... | |
unsigned int | getMaterialNumber () const |
Accessor on the number of materials in the set. More... | |
Static Public Member Functions | |
static MaterialSet & | getInstance () |
Friends | |
std::ostream & | operator<< (std::ostream &anOutputSream, const MaterialSet &anMaterialSet) |
operator << More... | |
MaterialSet is a class to manage a table of materials.
Definition at line 94 of file MaterialSet.h.
|
inline |
Destructor.
Definition at line 84 of file MaterialSet.inl.
void gVirtualXRay::MaterialSet::addMaterial | ( | const TissueMaterial & | aMaterial | ) |
Add a material to the list.
|
inline |
Clear all the memory.
Definition at line 92 of file MaterialSet.inl.
|
static |
const TissueMaterial& gVirtualXRay::MaterialSet::getMaterial | ( | short | aHUValue | ) | const |
Get the material corresponding to a given HU value.
|
inline |
Accessor on the number of materials in the set.
Definition at line 128 of file MaterialSet.inl.
|
inline |
Accessor on the maximum Hounsfield unit that the material set can handle.
Definition at line 121 of file MaterialSet.inl.
|
inline |
Accessor on the minimum Hounsfield unit that the material set can handle.
Definition at line 115 of file MaterialSet.inl.
|
inline |
Accessor on the higher energy cutoff for attenuation coefficient.
Definition at line 108 of file MaterialSet.inl.
|
inline |
Accessor on the lower energy cutoff for attenuation coefficient.
Definition at line 100 of file MaterialSet.inl.
void gVirtualXRay::MaterialSet::loadFromFile | ( | const std::string & | aFileName | ) |
Load a file containing materials.
void gVirtualXRay::MaterialSet::loadMaterialSetFromMemory | ( | ) |
Load the table of materials.
|
friend |
operator <<
Definition at line 136 of file MaterialSet.inl.