![]() |
gVirtualXRay
2.0.10
VirtualX-RayImagingLibraryonGPU
|
Data Structures | |
class | AnatomicalMesh |
AnatomicalMesh is a class to handle a polygon mesh for tissue. More... | |
class | AssimpSceneGraphBinder |
class | AtomicElement |
AtomicElement is a class to manage elements in material. More... | |
class | AttenuationCoefficient |
AttenuationCoefficient is a class to handle an attenuation coefficient. More... | |
class | BoneMesh |
BoneMesh is a class to handle a polygon mesh for Bone, with thin bumps stored using a 3D texture. More... | |
class | Context |
Context is a class to manage an OpenGL or Vulkan context. More... | |
class | CoordinateSystemMesh |
CoordinateSystemMesh is a class to handle the display of coordinate system axes in the visualisation. More... | |
class | CubeMesh |
CubeMesh is a class to handle 3D meshes of cubes. More... | |
class | CuboidMesh |
CuboidMesh is a class to handle 3D meshes of cuboids. More... | |
class | CylinderMesh |
CylinderMesh is a class to handle 3D meshes of cylinders. More... | |
class | DepthMap |
DepthMap is a class to render to a buffer in order to create, for exemple, a shadow map. More... | |
class | DiaphragmMesh |
DiaphragmMesh is a class to handle a polygon mesh for a diaphragm. More... | |
class | ElementSet |
ElementSet is a class to manage a table of elements in material. More... | |
class | Exception |
Exception is a class to handle exceptions. More... | |
class | FBOException |
FBOException is a class to handle exceptions related to FBOs. More... | |
class | FFT |
FFT is a class to compute the FFT of a greyscale image. More... | |
class | FileDoesNotExistException |
FileDoesNotExistException is a class to handle exceptions when trying to open a read-only file that is not accessible. More... | |
class | Image |
Image is a class to manage a greyscale image. More... | |
class | ImplicitSurface |
ImplicitSurface is a class to build 3D implicit surfaces. More... | |
class | InternalOrganMesh |
InternalOrganMesh is a class to handle a polygon mesh for an internal organ. Internal organs use bump mapping. More... | |
class | InvalidImageSizeException |
InvalidImageSizeException is a class to handle exceptions when the image size is wrong. More... | |
class | InvalidInternalFormalException |
InvalidInternalFormalException is a class to handle exceptions when an invalid internal format has been specified. More... | |
class | LineMesh |
class | LiverMesh |
LiverMesh is a class to handle a polygon mesh for a liver. It uses 3D texture for the bump map and 2D texture for the colour. More... | |
class | Logger |
class | LungsMesh |
LungsMesh is a class to handle a polygon mesh for a lung. It uses 2D texture for the bump map and 3D texture for the colour. More... | |
class | Material |
Material is a class to handle materials. More... | |
class | MaterialSet |
MaterialSet is a class to manage a table of materials. More... | |
class | Matrix4x4 |
Matrix4x4 is a template class to handle a 4 by 4 matrix. More... | |
class | Mixture |
Mixture is a class to manage a mixture (e.g. Ti90Al6V4). More... | |
class | NoBeamException |
NoBeamException is a class to handle exceptions when no beam spectrum has been registered. More... | |
class | NoDetectorException |
NoDetectorException is a class to handle exceptions when no detector has been registered. More... | |
class | OpenGL2VBO |
OpenGL2VBO is a class to handle a vertex buffer object (VBO) in OpenGL 2.x. More... | |
class | OpenGL3VBO |
OpenGL3VBO is a class to handle a vertex buffer object (VBO) in OpenGL 3.x or 4.x. More... | |
class | OpenGLException |
OpenGLException is a class to handle exceptions related to OpenGL. More... | |
class | OpenSceneGraphBinder |
class | OutOfBoundsException |
class | OutOfMemoryException |
OutOfMemoryException is a class to handle exceptions when accessing an array cell that is not accessible, i.e. out of bounds memory access. More... | |
class | PhotonCrossSection |
PhotonCrossSection is a class to manage photon cross sections of elements, compounds and mixtures. More... | |
class | PolygonMesh |
PolygonMesh is a class to handle polygon (triangles) meshes. More... | |
class | PythonSingleton |
class | ResourceManager |
class | SceneGraphBinder |
class | SceneGraphNode |
class | Scintillator |
Scintillator is a class to generate the energy response due to the scintillator of the X-Ray detector. More... | |
class | Shader |
Shader is a class to handle shaders written in GLSL. More... | |
class | Sinogram |
Sinogram is a class to reconstruct images from a sinogram. More... | |
class | SkinMesh |
SkinMesh is a class to handle a polygon mesh for Skin. More... | |
class | SoftTissueMesh |
SoftTissueMesh is a class to handle a polygon mesh for an internal organ. It uses procedural texturing. More... | |
class | SpectrumRecord |
SpectrumRecord is a class to handle a record of the X-Ray beam, i.e. an energy bin (number of photons, energy of the photons in the bin). More... | |
class | SphereMesh |
SphereMesh is a class to handle 3D meshes of spheres. More... | |
class | StepWedgeMesh |
StepWedgeMesh is a class to handle 3D meshes of step wedges. More... | |
class | StereoHelper |
StereoHelper is a class to handle stereo vision using OpenGL's quad buffer. More... | |
class | TextRenderer |
TextRenderer is a class to render text using OpenGL and FreeType2. More... | |
class | TissueMaterial |
TissueMaterial is a class to manage a material. More... | |
class | VBO |
VBO is a class to handle a vertex buffer object (VBO). More... | |
class | Vec2 |
Vec2 is a template class to handle a 2D vector. More... | |
class | Vec3 |
Vec3 is a template class to handle a 3D vector. More... | |
class | XRayBeam |
XRayBeam is a class to handle the X-Ray beam. The beam spectrum is discretised into energy channels. More... | |
class | XRayDetector |
XRayDetector is a class to handle a X-ray detector. More... | |
class | XRayRenderer |
XRayRenderer is a class to compute and renderer X-ray images on GPU. More... | |
Typedefs | |
typedef float | SinogramType |
Type of data used to store sinograms. More... | |
typedef float | RATIONAL_NUMBER |
Type of data used to store real numbers. More... | |
typedef Vec2< RATIONAL_NUMBER > | VEC2 |
Type of data used to store 2D vectors. More... | |
typedef Vec3< RATIONAL_NUMBER > | VEC3 |
Type of data used to store 3D vectors. More... | |
typedef Matrix4x4< RATIONAL_NUMBER > | MATRIX4 |
Type of data used to store 4x4 matrices. More... | |
typedef Vec2< double > | Vec2d |
Vec2d is a class to handle a 2D vector using double precision floating point numbers. More... | |
typedef Vec2< float > | Vec2f |
Vec2f is a class to handle a 2D vector using double precision floating point numbers. More... | |
typedef Vec2< int > | Vec2i |
Vec2i is a class to handle a 2D vector using 32 bits integers. More... | |
typedef Vec2< unsigned int > | Vec2ui |
Vec2ui is a class to handle a 2D vector using unsigned 32 bits integers. More... | |
typedef Vec3< double > | Vec3d |
Vec3d is a class to handle a 3D vector using double precision floating point numbers. More... | |
typedef Vec3< float > | Vec3f |
Vec3f is a class to handle a 3D vector using double precision floating point numbers. More... | |
typedef Vec3< int > | Vec3i |
Vec3i is a class to handle a 3D vector using signed 32 bits integers. More... | |
typedef Vec3< unsigned int > | Vec3ui |
Vec3ui is a class to handle a 3D vector using unsigned 32 bits integers. More... | |
typedef Matrix4x4< double > | Matrix4x4d |
Matrix4x4d is a class to handle a 4x4 matrix using double precision floating point numbers. More... | |
typedef Matrix4x4< float > | Matrix4x4f |
Matrix4x4f is a class to handle a 4x4 matrix using single precision floating point numbers. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &anOutputSream, const gVirtualXRay::AtomicElement &anElement) |
operator << More... | |
std::istream & | operator>> (std::istream &anInputSream, gVirtualXRay::AtomicElement &anElement) |
operator >> More... | |
std::istream & | operator>> (std::istream &is, AttenuationCoefficient &obj) |
operator>> More... | |
std::ostream & | operator<< (std::ostream &os, const AttenuationCoefficient &obj) |
operator<< More... | |
std::ostream & | operator<< (std::ostream &anOutputSream, const gVirtualXRay::ElementSet &anElementSet) |
operator << More... | |
std::ostream & | operator<< (std::ostream &anOutputStream, const Exception &anException) |
operator<< More... | |
template<typename T > | |
Image< T > | operator* (const T &aValue, const Image< T > &anImage) |
template<typename T > | |
Image< T > | operator/ (const T &aValue, const Image< T > &anImage) |
template<typename T > | |
Image< T > | operator+ (const T &aValue, const Image< T > &anImage) |
template<typename T > | |
Image< T > | operator- (const T &aValue, const Image< T > &anImage) |
template<typename T > | |
Image< T > | log (const Image< T > &anImage) |
template<typename T > | |
Image< T > | abs (const Image< T > &anImage) |
std::string | getPixelType (const std::string &aFileName) |
std::string | getPixelType (const char *aFileName) |
template<typename T > | |
Image< T > | gauss2D (unsigned int aSize, double aSigmaValue) |
std::ostream & | operator<< (std::ostream &anOutputSream, const MaterialSet &aMaterialSet) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &anOutputStream, const Matrix4x4< T > &aMatrix) |
void | initialiseGLAD (const std::string &anAPI) |
Initialise GLAD. More... | |
void | initializeGLAD (const std::string &anAPI) |
Initialize GLAD. More... | |
void | initialiseGLEW () |
Initialise GLEW. More... | |
void | initializeGLEW () |
Initialize GLEW. More... | |
void | checkOpenGLErrorStatus (const char *aFileName, const char *aFunctionName, int aLineNumber) |
Check OpenGL's error status. More... | |
void | checkFBOErrorStatus (const char *aFileName, const char *aFunctionName, int aLineNumber) |
Check the current FBO's error status. More... | |
void | pushProjectionMatrix () |
Add the current matrix to the projection matrix stack. More... | |
void | pushModelViewMatrix () |
Add the current matrix to the model/view matrix stack. More... | |
void | pushFBO () |
Add the current FBO binding to the FBO stack. More... | |
void | pushTexture1D () |
Add the current 1D texture binding to the texture stack. More... | |
void | pushTexture2D () |
Add the current 2D texture binding to the texture stack. More... | |
void | pushTextureRectangle () |
Add the current rectangle texture binding to the texture stack. More... | |
void | pushTexture3D () |
Add the current 3D texture binding to the texture stack. More... | |
void | pushEnableDisableState (int aParameter) |
Add the enable/disable state to the corresponding stack. More... | |
void | pushShaderProgram () |
Add the current shader program to the corresponding stack. More... | |
void | popProjectionMatrix () |
void | popModelViewMatrix () |
void | popFBO () |
void | popTexture () |
void | popEnableDisableState () |
void | popShaderProgram () |
gVirtualXRay::Matrix4x4< float > | getCurrentOpenGLMatrix () |
Load the current OpenGL matrix. More... | |
void | loadIdentityProjectionMatrix () |
Replace the projection matrix by the identity matrix. More... | |
void | loadIdentityModelViewMatrix () |
Replace the model/view matrix by the identity matrix. More... | |
void | loadFrustumProjectionMatrix (double left, double right, double bottom, double top, double near, double far) |
Replace the projection matrix by a perspective projection matrix. More... | |
void | loadPerspectiveProjectionMatrix (double fovy, double aspect, double zNear, double zFar) |
Replace the projection matrix by a perspective projection matrix. More... | |
void | loadOrthoProjectionMatrix (double left, double right, double bottom, double top, double near, double far) |
Replace the projection matrix by a orthographic projection matrix. More... | |
MATRIX4 | buildOrthoProjectionMatrix (double left, double right, double bottom, double top, double near, double far) |
Create a orthographic projection matrix. More... | |
MATRIX4 | buildFrustumProjectionMatrix (double left, double right, double bottom, double top, double near, double far) |
Create a perspective projection matrix. More... | |
MATRIX4 | buildPerspectiveProjectionMatrix (double fovy, double aspect, double zNear, double zFar) |
Create a perspective projection matrix. More... | |
void | loadLookAtModelViewMatrix (const VEC3 &eye, const VEC3 ¢re, const VEC3 &up) |
Replace the modelling-viewing matrix by a viewing transformation matrix. More... | |
void | loadLookAtModelViewMatrix (double eyeX, double eyeY, double eyeZ, double centreX, double centreY, double centreZ, double upX, double upY, double upZ) |
Replace the modelling-viewing matrix by a viewing transformation matrix. More... | |
MATRIX4 | buildLookAtModelViewMatrix (const VEC3 &eye, const VEC3 ¢re, const VEC3 &up) |
Create a modelling-viewing matrix. More... | |
MATRIX4 | buildLookAtModelViewMatrix (double eyeX, double eyeY, double eyeZ, double centreX, double centreY, double centreZ, double upX, double upY, double upZ) |
Create a modelling-viewing matrix. More... | |
void | loadProjectionMatrixFromOpenGL () |
Replace the projection matrix by OpenGL's projection matrix. More... | |
void | loadModelViewMatrixFromOpenGL () |
Replace the modelling-viewing matrix by OpenGL's modelling-viewing matrix. More... | |
void | applyModelViewMatrix () |
bool | useOpenGL45 () |
Check if OpenGL 4.5 is supported by the current OpenGL context. More... | |
bool | useOpenGL32 () |
Check if OpenGL 3.2 is supported by the current OpenGL context. More... | |
bool | useOpenGLCompute () |
Check if OpenGL Compute Shaders are supported by the current OpenGL context. More... | |
VBO * | createVBO () |
Create an OpenGL VBO suitable for the current OpenGL context. More... | |
OpenGL2VBO * | createOpenGL2VBO () |
Create an OpenGL 2.x VBO. More... | |
OpenGL3VBO * | createOpenGL3VBO () |
Create an OpenGL 3.x or 4.x VBO. More... | |
std::string | getShaderTypeID (const std::type_info &aTypeID) |
std::string | getShaderImageType (const std::type_info &aTypeID) |
std::string | getShaderPixelType (const std::type_info &aTypeID) |
std::string | getShaderRGBAPixelType (const std::type_info &aTypeID) |
void | multiplyOrthoProjectionMatrix (double left, double right, double bottom, double top, double nearPlane, double farPlane) |
void | multiplyPerspectiveProjectionMatrix (double fovy, double aspect, double zNear, double zFar) |
int | getShaderOpenGLType (const std::type_info &aTypeID) |
std::ostream & | operator<< (std::ostream &anOuputStream, const PhotonCrossSection &anInstance) |
std::vector< double > | logspace (const double &a, const double &b, const int &k) |
std::istream & | operator>> (std::istream &is, SpectrumRecord &obj) |
operator>> More... | |
std::ostream & | operator<< (std::ostream &os, const SpectrumRecord &obj) |
operator<< More... | |
std::ostream & | operator<< (std::ostream &anOutputSream, const TissueMaterial &aTissueMaterial) |
std::istream & | operator>> (std::istream &anInputSream, TissueMaterial &aTissueMaterial) |
int | inflate (const void *src, int srcLen, char **apDst) |
Uncompress data using the Zlib. More... | |
int | deflate (const void *src, int srcLen, char **apDst) |
Compress data using the Zlib. More... | |
bool | isMAT (const char *aFileName) |
Check if the extension of a file name is MAT. More... | |
bool | isDAT (const char *aFileName) |
Check if the extension of a file name is DAT. More... | |
bool | isTXT (const char *aFileName) |
Check if the extension of a file name is TXT. More... | |
bool | isPGM (const char *aFileName) |
Check if the extension of a file name is PGM. More... | |
bool | isRAW (const char *aFileName) |
Check if the extension of a file name is RAW. More... | |
bool | isMHA (const char *aFileName) |
Check if the extension of a file name is MHA. More... | |
bool | isMHD (const char *aFileName) |
Check if the extension of a file name is MHD. More... | |
bool | isDCM (const char *aFileName) |
Check if the extension of a file name is DCM. More... | |
bool | isJPEG (const char *aFileName) |
Check if the extension of a file name is JPEG. More... | |
bool | isTIFF (const char *aFileName) |
Check if the extension of a file name is TIFF. More... | |
bool | isMAT (const std::string &aFileName) |
Check if the extension of a file name is MAT. More... | |
bool | isDAT (const std::string &aFileName) |
Check if the extension of a file name is DAT. More... | |
bool | isTXT (const std::string &aFileName) |
Check if the extension of a file name is TXT. More... | |
bool | isPGM (const std::string &aFileName) |
Check if the extension of a file name is PGM. More... | |
bool | isRAW (const std::string &aFileName) |
Check if the extension of a file name is RAW. More... | |
bool | isMHA (const std::string &aFileName) |
Check if the extension of a file name is MHA. More... | |
bool | isMHD (const std::string &aFileName) |
Check if the extension of a file name is MHD. More... | |
bool | isDCM (const std::string &aFileName) |
Check if the extension of a file name is DCM. More... | |
bool | isJPEG (const std::string &aFileName) |
Check if the extension of a file name is JPEG. More... | |
bool | isTIFF (const std::string &aFileName) |
Check if the extension of a file name is TIFF. More... | |
bool | checkExtension (const char *aFileName, const char *anExtension) |
bool | checkExtension (const std::string &aFileName, const std::string &anExtension) |
bool | isBigEndian () |
bool | isLittleEndian () |
bool | isLetter (char aValue) |
bool | isUpperCase (char aValue) |
bool | isLowerCase (char aValue) |
bool | isNumber (char aValue) |
template<typename T > | |
void | swapBytes (T &aValue) |
template<typename T > | |
T | degreeToRadian (const T &aAngleInDegree) |
template<typename T > | |
T | radianToDegree (const T &aAngleInRadian) |
template<typename T > | |
int | sgn (const T &aValue) |
double | interpolate (const double &a_low, const double &a_high, const double &a0, const double &b_low, const double &b_high) |
float | interpolate (const float &a_low, const float &a_high, const float &a0, const float &b_low, const float &b_high) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &anOutputStream, const Vec2< T > &aVector) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &anOutputStream, const Vec3< T > &aVector) |
template<typename T > | |
Vec3< T > | operator* (const double &aValue, const Vec3< T > &aVector) |
Operator * to multiply each component of the vector by a given value. More... | |
Variables | |
const double | Pi = 3.14159265358979323846 |
Pi. More... | |
const double | Pi_2 = Pi / 2.0 |
Pi divided by 2.0. More... | |
const double | N_Avogadro = 6.02552 * 1.0e23 |
Avogadro number. More... | |
const unsigned short | Z_H = 1 |
Hydrogen atomic number. More... | |
const unsigned short | Z_C = 6 |
Carbon atomic number. More... | |
const unsigned short | Z_N = 7 |
Nitrogen atomic number. More... | |
const unsigned short | Z_O = 8 |
Oxygen atomic number. More... | |
const unsigned short | Z_Na = 11 |
Sodium atomic number. More... | |
const unsigned short | Z_Mg = 12 |
Magnesium atomic number. More... | |
const unsigned short | Z_P = 15 |
Phosphorus atomic number. More... | |
const unsigned short | Z_S = 16 |
Sulfur atomic number. More... | |
const unsigned short | Z_Cl = 17 |
Chlorine atomic number. More... | |
const unsigned short | Z_Ar = 18 |
Argon atomic number. More... | |
const unsigned short | Z_K = 19 |
Potassium atomic number. More... | |
const unsigned short | Z_Ca = 20 |
Calcium atomic number. More... | |
const unsigned short | Z_Ti = 22 |
Titanium atomic number. More... | |
const unsigned short | Z_Fe = 26 |
Iron atomic number. More... | |
const unsigned short | Z_Cu = 29 |
Copper atomic number. More... | |
const unsigned short | Z_Zn = 30 |
Zinc atomic number. More... | |
const unsigned short | Z_Ag = 47 |
Silver atomic number. More... | |
const unsigned short | Z_Sn = 50 |
Tin atomic number. More... | |
const unsigned short | Z_I = 53 |
Iodine atomic number. More... | |
Logger | LOGGER |
std::vector< MATRIX4 > | g_p_modelview_matrix_stack |
The stack of model/view matrices. More... | |
std::vector< MATRIX4 > | g_p_projection_matrix_stack |
The stack of projection matrix. More... | |
MATRIX4 | g_current_modelview_matrix |
The model/view matrices. More... | |
MATRIX4 | g_current_projection_matrix |
The projection matrix. More... | |
std::vector< int > | g_frame_buffer_object_stack |
The stack of FBO binding. More... | |
std::vector< std::pair< int, int > > | g_texture_stack |
The stack of texture binding. More... | |
std::vector< std::pair< int, bool > > | g_enable_disable_state_stack |
The stack of enable/disable states. More... | |
std::vector< int > | g_shader_program_stack |
The stack of shader programs. More... | |
const double | kilometer = 1000.0 / 0.001 |
kilometre More... | |
const double | hectometer = 100.0 / 0.001 |
hectometre More... | |
const double | decameter = 10.0 / 0.001 |
decametre More... | |
const double | meter = 1.0 / 0.001 |
metre More... | |
const double | decimeter = 0.1 / 0.001 |
decimetre More... | |
const double | centimeter = 0.01 / 0.001 |
centimetre More... | |
const double | millimeter = 0.001 / 0.001 |
millimetre More... | |
const double | micrometer = 1.0e-6 / 0.001 |
micrometre More... | |
const double | kilometre = kilometer |
kilometre More... | |
const double | hectometre = hectometer |
hectometre More... | |
const double | decametre = decameter |
decametre More... | |
const double | metre = meter |
metre More... | |
const double | decimetre = decimeter |
decimetre More... | |
const double | centimetre = centimeter |
centimetre More... | |
const double | millimetre = millimeter |
millimetre More... | |
const double | micrometre = micrometer |
micrometre More... | |
const double | km = kilometer |
kilometre More... | |
const double | hm = hectometer |
hectometre More... | |
const double | dam = decameter |
decametre More... | |
const double | m = meter |
meter More... | |
const double | dm = decimeter |
decimeter More... | |
const double | cm = centimeter |
centimeter More... | |
const double | mm = millimeter |
millimeter More... | |
const double | um = micrometer |
micrometre More... | |
const double | km2 = km * km |
square kilometre More... | |
const double | hm2 = hm * hm |
square hectometre More... | |
const double | dam2 = dam * dam |
square decametre More... | |
const double | m2 = m * m |
square meter More... | |
const double | dm2 = dm * dm |
square decimeter More... | |
const double | cm2 = cm * cm |
square centimeter More... | |
const double | mm2 = mm * mm |
square millimeter More... | |
const double | um2 = um * um |
square micrometre More... | |
const double | km3 = km * km * km |
cubic kilometre More... | |
const double | hm3 = hm * hm * hm |
cubic hectometre More... | |
const double | dam3 = dam * dam * dam |
cubic decametre More... | |
const double | m3 = m * m * m |
cubic meter More... | |
const double | dm3 = dm * dm * dm |
cubic decimeter More... | |
const double | cm3 = cm * cm * cm |
cubic centimeter More... | |
const double | mm3 = mm * mm * mm |
cubic millimeter More... | |
const double | um3 = um * um * um |
cubic micrometre More... | |
const double | megaelectronvolt = 1.0 |
megaelectron volt More... | |
const double | kiloelectronvolt = megaelectronvolt * 1.0e-3 |
kiloelectron volt More... | |
const double | electronvolt = megaelectronvolt * 1.0e-6 |
electronvolt More... | |
const double | MeV = megaelectronvolt |
megaelectron volt More... | |
const double | keV = kiloelectronvolt |
kiloelectron volt More... | |
const double | eV = electronvolt |
electronvolt More... | |
const double | kilogram = 1000.0 |
kilogram More... | |
const double | hectogram = 100.0 |
hectogram More... | |
const double | decagram = 10.0 |
decagram More... | |
const double | gram = 1.0 |
gram More... | |
const double | decigram = 0.1 |
decigram More... | |
const double | centigram = 0.01 |
centigram More... | |
const double | milligram = 0.001 |
milligram More... | |
const double | microgram = 1e-6 |
microgram More... | |
const double | kg = kilogram |
kilogram More... | |
const double | hg = hectogram |
hectogram More... | |
const double | dag = decagram |
decagram More... | |
const double | g = gram |
gram More... | |
const double | dg = decigram |
decigram More... | |
const double | cg = centigram |
centigram More... | |
const double | mg = milligram |
milligram More... | |
const double | ug = microgram |
microgram More... | |
const double | mole = 1.0 |
mole More... | |
const double | megavolt = 1.0 |
mega volt More... | |
const double | kilovolt = megavolt * 1.0e-3 |
kilo volt More... | |
const double | volt = megavolt * 1.0e-6 |
volt More... | |
const double | MV = megavolt |
mega volt More... | |
const double | kV = kilovolt |
kilo volt More... | |
const double | V = volt |
volt More... | |
typedef float gVirtualXRay::RATIONAL_NUMBER |
typedef float gVirtualXRay::SinogramType |
typedef Vec2<RATIONAL_NUMBER> gVirtualXRay::VEC2 |
typedef Vec3<RATIONAL_NUMBER> gVirtualXRay::VEC3 |
void gVirtualXRay::applyModelViewMatrix | ( | ) |
Load the modelling-viewing matrix in the current shader program, or replace OpenGL's modelling-viewing matrix.
|
inline |
Create a perspective projection matrix.
left | Specify the coordinates for the left vertical clipping plane |
right | Specify the coordinates for the right vertical clipping plane |
bottom | Specify the coordinates for the bottom horizontal clipping plane |
top | Specify the coordinates for the top horizontal clipping plane |
near | Specify the distances to the near clipping plane. The value must be positive |
far | Specify the distances to the far clipping plane. The value must be positive |
Definition at line 228 of file OpenGLUtilities.inl.
|
inline |
Create a modelling-viewing matrix.
eye | Specifies the position of the eye point |
centre | Specifies the position of the reference point |
up | Specifies the direction of the up vector |
Definition at line 334 of file OpenGLUtilities.inl.
|
inline |
Create a modelling-viewing matrix.
eyeX | Specifies the position of the eye point along the X-axis |
eyeY | Specifies the position of the eye point along the Y-axis |
eyeZ | Specifies the position of the eye point along the Z-axis |
centreX | Specifies the position of the reference point along the X-axis |
centreY | Specifies the position of the reference point along the Y-axis |
centreZ | Specifies the position of the reference point along the Z-axis |
upX | Specifies the direction of the up vector along the X-axis |
upY | Specifies the direction of the up vector along the Y-axis |
upZ | Specifies the direction of the up vector along the Z-axis |
Definition at line 381 of file OpenGLUtilities.inl.
|
inline |
Create a orthographic projection matrix.
left | Specify the coordinates for the left vertical clipping plane |
right | Specify the coordinates for the right vertical clipping plane |
bottom | Specify the coordinates for the bottom horizontal clipping plane |
top | Specify the coordinates for the top horizontal clipping plane |
near | Specify the distances to the near clipping plane. The value must be positive |
far | Specify the distances to the far clipping plane. The value must be positive |
Definition at line 166 of file OpenGLUtilities.inl.
|
inline |
Create a perspective projection matrix.
fovy | specifies the field of view angle, in degrees, in the y-direction. |
aspect | Specifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height). |
zNear | Specifies the distance from the viewer to the near clipping plane (always positive) |
zFar | Specifies the distance from the viewer to the far clipping plane (always positive). |
Definition at line 279 of file OpenGLUtilities.inl.
|
inline |
Definition at line 325 of file Utilities.inl.
bool gVirtualXRay::checkExtension | ( | const std::string & | aFileName, |
const std::string & | anExtension | ||
) |
void gVirtualXRay::checkFBOErrorStatus | ( | const char * | aFileName, |
const char * | aFunctionName, | ||
int | aLineNumber | ||
) |
Check the current FBO's error status.
aFileName | name of the source file where FBO is checked |
aFunctionName | name of the function where FBO is checked |
aLineNumber | name at which FBO is checked |
void gVirtualXRay::checkOpenGLErrorStatus | ( | const char * | aFileName, |
const char * | aFunctionName, | ||
int | aLineNumber | ||
) |
Check OpenGL's error status.
aFileName | name of the source file where OpenGL is checked |
aFunctionName | name of the function where OpenGL is checked |
aLineNumber | name at which OpenGL is checked |
OpenGL2VBO* gVirtualXRay::createOpenGL2VBO | ( | ) |
Create an OpenGL 2.x VBO.
OpenGL3VBO* gVirtualXRay::createOpenGL3VBO | ( | ) |
Create an OpenGL 3.x or 4.x VBO.
int gVirtualXRay::deflate | ( | const void * | src, |
int | srcLen, | ||
char ** | apDst | ||
) |
Compress data using the Zlib.
src | uncompressed data |
srcLen | length of the uncompressed data |
apDst | compressed data |
T gVirtualXRay::degreeToRadian | ( | const T & | aAngleInDegree | ) |
Definition at line 403 of file Utilities.inl.
Image< T > gVirtualXRay::gauss2D | ( | unsigned int | aSize, |
double | aSigmaValue | ||
) |
gVirtualXRay::Matrix4x4<float> gVirtualXRay::getCurrentOpenGLMatrix | ( | ) |
Load the current OpenGL matrix.
|
inline |
|
inline |
|
inline |
Definition at line 466 of file OpenGLUtilities.inl.
|
inline |
Definition at line 586 of file OpenGLUtilities.inl.
|
inline |
Definition at line 506 of file OpenGLUtilities.inl.
|
inline |
Definition at line 546 of file OpenGLUtilities.inl.
|
inline |
Definition at line 426 of file OpenGLUtilities.inl.
int gVirtualXRay::inflate | ( | const void * | src, |
int | srcLen, | ||
char ** | apDst | ||
) |
Uncompress data using the Zlib.
src | compressed data |
srcLen | length of the uncompressed data |
apDst | uncompressed data |
void gVirtualXRay::initialiseGLAD | ( | const std::string & | anAPI | ) |
Initialise GLAD.
void gVirtualXRay::initialiseGLEW | ( | ) |
Initialise GLEW.
void gVirtualXRay::initializeGLAD | ( | const std::string & | anAPI | ) |
Initialize GLAD.
void gVirtualXRay::initializeGLEW | ( | ) |
Initialize GLEW.
|
inline |
Definition at line 427 of file Utilities.inl.
|
inline |
Definition at line 439 of file Utilities.inl.
|
inline |
Definition at line 334 of file Utilities.inl.
|
inline |
Check if the extension of a file name is DAT.
aFileName | the file name to check |
Definition at line 97 of file Utilities.inl.
|
inline |
Check if the extension of a file name is DAT.
aFileName | the file name to check |
Definition at line 253 of file Utilities.inl.
|
inline |
Check if the extension of a file name is DCM.
aFileName | the file name to check |
Definition at line 193 of file Utilities.inl.
|
inline |
Check if the extension of a file name is DCM.
aFileName | the file name to check |
Definition at line 301 of file Utilities.inl.
|
inline |
Check if the extension of a file name is JPEG.
aFileName | the file name to check |
Definition at line 209 of file Utilities.inl.
|
inline |
Check if the extension of a file name is JPEG.
aFileName | the file name to check |
Definition at line 309 of file Utilities.inl.
|
inline |
Definition at line 351 of file Utilities.inl.
|
inline |
Definition at line 343 of file Utilities.inl.
|
inline |
Definition at line 368 of file Utilities.inl.
|
inline |
Check if the extension of a file name is MAT.
aFileName | the file name to check |
Definition at line 81 of file Utilities.inl.
|
inline |
Check if the extension of a file name is MAT.
aFileName | the file name to check |
Definition at line 245 of file Utilities.inl.
|
inline |
Check if the extension of a file name is MHA.
aFileName | the file name to check |
Definition at line 161 of file Utilities.inl.
|
inline |
Check if the extension of a file name is MHA.
aFileName | the file name to check |
Definition at line 285 of file Utilities.inl.
|
inline |
Check if the extension of a file name is MHD.
aFileName | the file name to check |
Definition at line 177 of file Utilities.inl.
|
inline |
Check if the extension of a file name is MHD.
aFileName | the file name to check |
Definition at line 293 of file Utilities.inl.
|
inline |
Definition at line 376 of file Utilities.inl.
|
inline |
Check if the extension of a file name is PGM.
aFileName | the file name to check |
Definition at line 129 of file Utilities.inl.
|
inline |
Check if the extension of a file name is PGM.
aFileName | the file name to check |
Definition at line 269 of file Utilities.inl.
|
inline |
Check if the extension of a file name is RAW.
aFileName | the file name to check |
Definition at line 145 of file Utilities.inl.
|
inline |
Check if the extension of a file name is RAW.
aFileName | the file name to check |
Definition at line 277 of file Utilities.inl.
|
inline |
Check if the extension of a file name is TIFF.
aFileName | the file name to check |
Definition at line 227 of file Utilities.inl.
|
inline |
Check if the extension of a file name is TIFF.
aFileName | the file name to check |
Definition at line 317 of file Utilities.inl.
|
inline |
Check if the extension of a file name is TXT.
aFileName | the file name to check |
Definition at line 113 of file Utilities.inl.
|
inline |
Check if the extension of a file name is TXT.
aFileName | the file name to check |
Definition at line 261 of file Utilities.inl.
|
inline |
Definition at line 360 of file Utilities.inl.
|
inline |
Replace the projection matrix by a perspective projection matrix.
left | Specify the coordinates for the left vertical clipping plane |
right | Specify the coordinates for the right vertical clipping plane |
bottom | Specify the coordinates for the bottom horizontal clipping plane |
top | Specify the coordinates for the top horizontal clipping plane |
near | Specify the distances to the near clipping plane. The value must be positive |
far | Specify the distances to the far clipping plane. The value must be positive |
Definition at line 215 of file OpenGLUtilities.inl.
|
inline |
Replace the model/view matrix by the identity matrix.
Definition at line 158 of file OpenGLUtilities.inl.
|
inline |
Replace the projection matrix by the identity matrix.
Definition at line 150 of file OpenGLUtilities.inl.
|
inline |
Replace the modelling-viewing matrix by a viewing transformation matrix.
eye | Specifies the position of the eye point |
centre | Specifies the position of the reference point |
up | Specifies the direction of the up vector |
Definition at line 397 of file OpenGLUtilities.inl.
|
inline |
Replace the modelling-viewing matrix by a viewing transformation matrix.
eyeX | Specifies the position of the eye point along the X-axis |
eyeY | Specifies the position of the eye point along the Y-axis |
eyeZ | Specifies the position of the eye point along the Z-axis |
centreX | Specifies the position of the reference point along the X-axis |
centreY | Specifies the position of the reference point along the Y-axis |
centreZ | Specifies the position of the reference point along the Z-axis |
upX | Specifies the direction of the up vector along the X-axis |
upY | Specifies the direction of the up vector along the Y-axis |
upZ | Specifies the direction of the up vector along the Z-axis |
Definition at line 407 of file OpenGLUtilities.inl.
void gVirtualXRay::loadModelViewMatrixFromOpenGL | ( | ) |
Replace the modelling-viewing matrix by OpenGL's modelling-viewing matrix.
|
inline |
Replace the projection matrix by a orthographic projection matrix.
left | Specify the coordinates for the left vertical clipping plane |
right | Specify the coordinates for the right vertical clipping plane |
bottom | Specify the coordinates for the bottom horizontal clipping plane |
top | Specify the coordinates for the top horizontal clipping plane |
near | Specify the distances to the near clipping plane. The value must be positive |
far | Specify the distances to the far clipping plane. The value must be positive |
Definition at line 202 of file OpenGLUtilities.inl.
|
inline |
Replace the projection matrix by a perspective projection matrix.
fovy | specifies the field of view angle, in degrees, in the y-direction. |
aspect | Specifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height). |
zNear | Specifies the distance from the viewer to the near clipping plane (always positive) |
zFar | Specifies the distance from the viewer to the far clipping plane (always positive). |
Definition at line 312 of file OpenGLUtilities.inl.
void gVirtualXRay::loadProjectionMatrixFromOpenGL | ( | ) |
Replace the projection matrix by OpenGL's projection matrix.
|
inline |
Definition at line 98 of file Scintillator.inl.
|
inline |
Definition at line 266 of file OpenGLUtilities.inl.
|
inline |
Definition at line 323 of file OpenGLUtilities.inl.
std::ostream & gVirtualXRay::operator<< | ( | std::ostream & | anOutputStream, |
const Vec2< T > & | aVector | ||
) |
std::ostream & gVirtualXRay::operator<< | ( | std::ostream & | anOutputStream, |
const Vec3< T > & | aVector | ||
) |
std::ostream & gVirtualXRay::operator<< | ( | std::ostream & | anOutputStream, |
const Matrix4x4< T > & | aMatrix | ||
) |
Definition at line 624 of file Matrix4x4.inl.
|
inline |
Definition at line 80 of file PhotonCrossSection.inl.
|
inline |
operator<<
anOutputStream | the output stream |
anException | the exception to add to the output stream |
Definition at line 80 of file Exception.inl.
std::ostream& gVirtualXRay::operator<< | ( | std::ostream & | anOutputSream, |
const gVirtualXRay::ElementSet & | anElementSet | ||
) |
operator <<
std::ostream& gVirtualXRay::operator<< | ( | std::ostream & | anOutputSream, |
const gVirtualXRay::AtomicElement & | anElement | ||
) |
operator <<
|
inline |
operator<<
os | the output stream |
obj | the record to store in the stream |
Definition at line 117 of file SpectrumRecord.inl.
|
inline |
operator<<
os | the output stream |
obj | the record to store in the stream |
Definition at line 110 of file AttenuationCoefficient.inl.
|
inline |
Definition at line 136 of file MaterialSet.inl.
|
inline |
Definition at line 298 of file TissueMaterial.inl.
|
inline |
operator>>
is | the input stream |
obj | the record to load from the stream |
Definition at line 105 of file SpectrumRecord.inl.
|
inline |
operator>>
is | the input stream |
obj | the record to load from the stream |
Definition at line 95 of file AttenuationCoefficient.inl.
std::istream& gVirtualXRay::operator>> | ( | std::istream & | anInputSream, |
gVirtualXRay::AtomicElement & | anElement | ||
) |
operator >>
|
inline |
Definition at line 317 of file TissueMaterial.inl.
void gVirtualXRay::popEnableDisableState | ( | ) |
Restore the enable/disable state to the corresponding stack, and remove the last state of the stack.
void gVirtualXRay::popFBO | ( | ) |
Restore the FBO binding from the FBO stack, and remove the last FBO of the stack.
|
inline |
Restore the matrix from the model/view matrix stack, and remove the last matrix of the stack.
Definition at line 131 of file OpenGLUtilities.inl.
|
inline |
Restore the matrix from the projection matrix stack, and remove the last matrix of the stack.
Definition at line 113 of file OpenGLUtilities.inl.
void gVirtualXRay::popShaderProgram | ( | ) |
Restore the shader program to the corresponding stack, and remove the last state of the stack.
void gVirtualXRay::popTexture | ( | ) |
Restore the texture binding from the texture stack, and remove the last texture of the stack.
void gVirtualXRay::pushEnableDisableState | ( | int | aParameter | ) |
Add the enable/disable state to the corresponding stack.
aParameter | parameter to add |
void gVirtualXRay::pushFBO | ( | ) |
Add the current FBO binding to the FBO stack.
|
inline |
Add the current matrix to the model/view matrix stack.
Definition at line 105 of file OpenGLUtilities.inl.
|
inline |
Add the current matrix to the projection matrix stack.
Definition at line 97 of file OpenGLUtilities.inl.
void gVirtualXRay::pushShaderProgram | ( | ) |
Add the current shader program to the corresponding stack.
void gVirtualXRay::pushTexture1D | ( | ) |
Add the current 1D texture binding to the texture stack.
void gVirtualXRay::pushTexture2D | ( | ) |
Add the current 2D texture binding to the texture stack.
void gVirtualXRay::pushTexture3D | ( | ) |
Add the current 3D texture binding to the texture stack.
void gVirtualXRay::pushTextureRectangle | ( | ) |
Add the current rectangle texture binding to the texture stack.
T gVirtualXRay::radianToDegree | ( | const T & | aAngleInRadian | ) |
Definition at line 411 of file Utilities.inl.
int gVirtualXRay::sgn | ( | const T & | aValue | ) |
Definition at line 419 of file Utilities.inl.
void gVirtualXRay::swapBytes | ( | T & | aValue | ) |
Definition at line 384 of file Utilities.inl.
bool gVirtualXRay::useOpenGL32 | ( | ) |
Check if OpenGL 3.2 is supported by the current OpenGL context.
bool gVirtualXRay::useOpenGL45 | ( | ) |
Check if OpenGL 4.5 is supported by the current OpenGL context.
bool gVirtualXRay::useOpenGLCompute | ( | ) |
Check if OpenGL Compute Shaders are supported by the current OpenGL context.
const double gVirtualXRay::centimeter = 0.01 / 0.001 |
const double gVirtualXRay::centimetre = centimeter |
const double gVirtualXRay::cm = centimeter |
const double gVirtualXRay::decameter = 10.0 / 0.001 |
const double gVirtualXRay::electronvolt = megaelectronvolt * 1.0e-6 |
const double gVirtualXRay::eV = electronvolt |
MATRIX4 gVirtualXRay::g_current_modelview_matrix |
The model/view matrices.
MATRIX4 gVirtualXRay::g_current_projection_matrix |
The projection matrix.
std::vector<std::pair<int, bool> > gVirtualXRay::g_enable_disable_state_stack |
The stack of enable/disable states.
std::vector<int> gVirtualXRay::g_frame_buffer_object_stack |
The stack of FBO binding.
std::vector<MATRIX4> gVirtualXRay::g_p_modelview_matrix_stack |
The stack of model/view matrices.
std::vector<MATRIX4> gVirtualXRay::g_p_projection_matrix_stack |
The stack of projection matrix.
std::vector<int> gVirtualXRay::g_shader_program_stack |
The stack of shader programs.
std::vector<std::pair<int, int> > gVirtualXRay::g_texture_stack |
The stack of texture binding.
const double gVirtualXRay::hectometer = 100.0 / 0.001 |
const double gVirtualXRay::hectometre = hectometer |
const double gVirtualXRay::hm = hectometer |
const double gVirtualXRay::keV = kiloelectronvolt |
const double gVirtualXRay::kiloelectronvolt = megaelectronvolt * 1.0e-3 |
const double gVirtualXRay::kilometer = 1000.0 / 0.001 |
const double gVirtualXRay::kilovolt = megavolt * 1.0e-3 |
Logger gVirtualXRay::LOGGER |
const double gVirtualXRay::megaelectronvolt = 1.0 |
const double gVirtualXRay::MeV = megaelectronvolt |
const double gVirtualXRay::micrometer = 1.0e-6 / 0.001 |
const double gVirtualXRay::micrometre = micrometer |
const double gVirtualXRay::millimeter = 0.001 / 0.001 |
const double gVirtualXRay::millimetre = millimeter |
const double gVirtualXRay::mm = millimeter |
const double gVirtualXRay::N_Avogadro = 6.02552 * 1.0e23 |
Avogadro number.
Definition at line 101 of file ConstantValues.h.
const double gVirtualXRay::Pi = 3.14159265358979323846 |
Pi.
Definition at line 96 of file ConstantValues.h.
const double gVirtualXRay::Pi_2 = Pi / 2.0 |
Pi divided by 2.0.
Definition at line 99 of file ConstantValues.h.
const double gVirtualXRay::um = micrometer |
const unsigned short gVirtualXRay::Z_Ag = 47 |
Silver atomic number.
Definition at line 119 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Ar = 18 |
Argon atomic number.
Definition at line 112 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_C = 6 |
Carbon atomic number.
Definition at line 104 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Ca = 20 |
Calcium atomic number.
Definition at line 114 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Cl = 17 |
Chlorine atomic number.
Definition at line 111 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Cu = 29 |
Copper atomic number.
Definition at line 117 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Fe = 26 |
Iron atomic number.
Definition at line 116 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_H = 1 |
Hydrogen atomic number.
Definition at line 103 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_I = 53 |
Iodine atomic number.
Definition at line 121 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_K = 19 |
Potassium atomic number.
Definition at line 113 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Mg = 12 |
Magnesium atomic number.
Definition at line 108 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_N = 7 |
Nitrogen atomic number.
Definition at line 105 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Na = 11 |
Sodium atomic number.
Definition at line 107 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_O = 8 |
Oxygen atomic number.
Definition at line 106 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_P = 15 |
Phosphorus atomic number.
Definition at line 109 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_S = 16 |
Sulfur atomic number.
Definition at line 110 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Sn = 50 |
Tin atomic number.
Definition at line 120 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Ti = 22 |
Titanium atomic number.
Definition at line 115 of file ConstantValues.h.
const unsigned short gVirtualXRay::Z_Zn = 30 |
Zinc atomic number.
Definition at line 118 of file ConstantValues.h.