gVirtualXRay  2.0.10
VirtualX-RayImagingLibraryonGPU
Public Member Functions
gVirtualXRay::Mixture Class Reference

Mixture is a class to manage a mixture (e.g. Ti90Al6V4). More...

#include <Mixture.h>

Collaboration diagram for gVirtualXRay::Mixture:
Collaboration graph

Public Member Functions

 Mixture ()
 Default Constructor. More...
 
 Mixture (const std::map< int, double > &aWeightSet)
 
 Mixture (const std::map< std::string, double > &aWeightSet)
 
 Mixture (const Mixture &aMixture)
 Copy constructor. More...
 
void clear ()
 
void setMixture (const std::map< int, double > &aWeightSet)
 
void setMixture (const std::map< std::string, double > &aWeightSet)
 
void addElement (const std::string &aName, double aPercentage)
 
void normaliseWeightSet ()
 Normalise the weight set. More...
 
double computeMolarMass ()
 Update the value of the molar mass of the material. More...
 
double getMolarMass () const
 Accessor on the molar mass of the material. More...
 
void setDensity (double aDensity)
 
double getDensity () const
 Get the density of the material. More...
 
double getMassAttenuationTotal (double anEnergy) const
 
double getLinearAttenuationTotal (double anEnergy) const
 
double getMu (double anEnergy) const
 
double getS (double x) const
 
const std::string & getLabel () const
 
Mixtureoperator= (const Mixture &aMixture)
 Copy operator. More...
 
bool operator== (const Mixture &aMixture) const
 
bool operator!= (const Mixture &aMixture) const
 
const std::map< int, double > & getWeightSet () const
 

Detailed Description

Mixture is a class to manage a mixture (e.g. Ti90Al6V4).

Definition at line 101 of file Mixture.h.

Constructor & Destructor Documentation

◆ Mixture() [1/4]

gVirtualXRay::Mixture::Mixture ( )
inline

Default Constructor.

Definition at line 83 of file Mixture.inl.

◆ Mixture() [2/4]

gVirtualXRay::Mixture::Mixture ( const std::map< int, double > &  aWeightSet)
inline

Definition at line 92 of file Mixture.inl.

◆ Mixture() [3/4]

gVirtualXRay::Mixture::Mixture ( const std::map< std::string, double > &  aWeightSet)
inline

Definition at line 109 of file Mixture.inl.

◆ Mixture() [4/4]

gVirtualXRay::Mixture::Mixture ( const Mixture aMixture)
inline

Copy constructor.

Definition at line 121 of file Mixture.inl.

Member Function Documentation

◆ addElement()

void gVirtualXRay::Mixture::addElement ( const std::string &  aName,
double  aPercentage 
)

◆ clear()

void gVirtualXRay::Mixture::clear ( )
inline

Definition at line 133 of file Mixture.inl.

◆ computeMolarMass()

double gVirtualXRay::Mixture::computeMolarMass ( )

Update the value of the molar mass of the material.

◆ getDensity()

double gVirtualXRay::Mixture::getDensity ( ) const
inline

Get the density of the material.

Definition at line 225 of file Mixture.inl.

◆ getLabel()

const std::string & gVirtualXRay::Mixture::getLabel ( ) const
inline

Definition at line 250 of file Mixture.inl.

◆ getLinearAttenuationTotal()

double gVirtualXRay::Mixture::getLinearAttenuationTotal ( double  anEnergy) const
inline

Get the linear attenuation coefficient at a given energy (in mm-1) (values are interpolated).

Definition at line 233 of file Mixture.inl.

◆ getMassAttenuationTotal()

double gVirtualXRay::Mixture::getMassAttenuationTotal ( double  anEnergy) const

Get the mass attenuation coefficient at a given energy (values are interpolated).

◆ getMolarMass()

double gVirtualXRay::Mixture::getMolarMass ( ) const
inline

Accessor on the molar mass of the material.

Definition at line 209 of file Mixture.inl.

◆ getMu()

double gVirtualXRay::Mixture::getMu ( double  anEnergy) const
inline

Get the linear attenuation coefficient at a given energy (in mm-1) (values are interpolated).

Definition at line 242 of file Mixture.inl.

◆ getS()

double gVirtualXRay::Mixture::getS ( double  x) const

Get the Compton scattering cross section sample (values are interpolated).

◆ getWeightSet()

const std::map< int, double > & gVirtualXRay::Mixture::getWeightSet ( ) const
inline

Definition at line 279 of file Mixture.inl.

◆ normaliseWeightSet()

void gVirtualXRay::Mixture::normaliseWeightSet ( )

Normalise the weight set.

◆ operator!=()

bool gVirtualXRay::Mixture::operator!= ( const Mixture aMixture) const
inline

Definition at line 271 of file Mixture.inl.

◆ operator=()

Mixture & gVirtualXRay::Mixture::operator= ( const Mixture aMixture)
inline

Copy operator.

Definition at line 258 of file Mixture.inl.

◆ operator==()

bool gVirtualXRay::Mixture::operator== ( const Mixture aMixture) const

◆ setDensity()

void gVirtualXRay::Mixture::setDensity ( double  aDensity)
inline

Definition at line 217 of file Mixture.inl.

◆ setMixture() [1/2]

void gVirtualXRay::Mixture::setMixture ( const std::map< int, double > &  aWeightSet)
inline

Definition at line 145 of file Mixture.inl.

◆ setMixture() [2/2]

void gVirtualXRay::Mixture::setMixture ( const std::map< std::string, double > &  aWeightSet)
inline

Definition at line 157 of file Mixture.inl.


The documentation for this class was generated from the following files: