![]() |
gVirtualXRay
2.0.10
VirtualX-RayImagingLibraryonGPU
|
ElementSet is a class to manage a table of elements in material. More...
#include <ElementSet.h>
Public Member Functions | |
~ElementSet () | |
Destructor. More... | |
void | loadFromFile (const std::string &aFileName) |
Load a file containing elements. More... | |
void | loadElementSetFromMemory () |
Load the table of elements. More... | |
void | addElement (const AtomicElement &anElement) |
Add an element to the list. More... | |
AtomicElement & | getElement (unsigned short anAtomicNumber) |
Get a given element. More... | |
const AtomicElement & | getElement (unsigned short anAtomicNumber) const |
Get a given element. More... | |
AtomicElement & | getElement (const std::string &aName) |
Get a given element. More... | |
const AtomicElement & | getElement (const std::string &aName) const |
Get a given element. More... | |
float | getMolarMass (unsigned short anAtomicNumber) const |
Accessor on the molar mass of the element. More... | |
float | getDensity (unsigned short anAtomicNumber) const |
Accessor on the density of the element. More... | |
unsigned int | getElementSetSize () const |
Accessor on the number of elements in the set. More... | |
std::map< unsigned short, AtomicElement >::const_iterator | begin () const |
Accessor on the begin const_iterator of m_element_set. More... | |
std::map< unsigned short, AtomicElement >::const_iterator | end () const |
Accessor on the end const_iterator of m_element_set. More... | |
Static Public Member Functions | |
static ElementSet & | getInstance () |
ElementSet is a class to manage a table of elements in material.
Definition at line 116 of file ElementSet.h.
|
inline |
Destructor.
Definition at line 78 of file ElementSet.inl.
void gVirtualXRay::ElementSet::addElement | ( | const AtomicElement & | anElement | ) |
Add an element to the list.
std::map<unsigned short, AtomicElement>::const_iterator gVirtualXRay::ElementSet::begin | ( | ) | const |
Accessor on the begin const_iterator of m_element_set.
std::map<unsigned short, AtomicElement>::const_iterator gVirtualXRay::ElementSet::end | ( | ) | const |
Accessor on the end const_iterator of m_element_set.
float gVirtualXRay::ElementSet::getDensity | ( | unsigned short | anAtomicNumber | ) | const |
Accessor on the density of the element.
AtomicElement& gVirtualXRay::ElementSet::getElement | ( | unsigned short | anAtomicNumber | ) |
Get a given element.
const AtomicElement& gVirtualXRay::ElementSet::getElement | ( | unsigned short | anAtomicNumber | ) | const |
Get a given element.
AtomicElement& gVirtualXRay::ElementSet::getElement | ( | const std::string & | aName | ) |
Get a given element.
const AtomicElement& gVirtualXRay::ElementSet::getElement | ( | const std::string & | aName | ) | const |
Get a given element.
|
inline |
Accessor on the number of elements in the set.
Definition at line 94 of file ElementSet.inl.
|
static |
float gVirtualXRay::ElementSet::getMolarMass | ( | unsigned short | anAtomicNumber | ) | const |
Accessor on the molar mass of the element.
void gVirtualXRay::ElementSet::loadElementSetFromMemory | ( | ) |
Load the table of elements.
void gVirtualXRay::ElementSet::loadFromFile | ( | const std::string & | aFileName | ) |
Load a file containing elements.