I/O class handling MHD file.
More...
#include "GGEMSMHDImage.hh"
I/O class handling MHD file.
Definition at line 46 of file GGEMSMHDImage.hh.
◆ GGEMSMHDImage() [1/3]
GGEMSMHDImage::GGEMSMHDImage |
( |
void |
| ) |
|
◆ ~GGEMSMHDImage()
GGEMSMHDImage::~GGEMSMHDImage |
( |
void |
| ) |
|
◆ GGEMSMHDImage() [2/3]
Avoid copy of the class by reference.
- Parameters
-
mhd | - reference on the mhd file |
◆ GGEMSMHDImage() [3/3]
Avoid copy of the class by rvalue reference.
- Parameters
-
mhd | - rvalue reference on the mhd file |
◆ CheckParameters()
void GGEMSMHDImage::CheckParameters |
( |
void |
| ) |
const |
|
private |
◆ GetDataMHDType()
std::string GGEMSMHDImage::GetDataMHDType |
( |
void |
| ) |
const |
|
inline |
get the mhd data type
- Returns
- the type of data for mhd file
Definition at line 147 of file GGEMSMHDImage.hh.
◆ GetOutputDirectory()
std::string GGEMSMHDImage::GetOutputDirectory |
( |
void |
| ) |
const |
|
inline |
get the output directory
- Returns
- the name of output directory
Definition at line 161 of file GGEMSMHDImage.hh.
◆ GetRawMDHfilename()
std::string GGEMSMHDImage::GetRawMDHfilename |
( |
void |
| ) |
const |
|
inline |
get the filename of raw data
- Returns
- the name of raw file
Definition at line 154 of file GGEMSMHDImage.hh.
◆ operator=() [1/2]
Avoid copy of the class by rvalue reference.
- Parameters
-
mhd | - rvalue reference on the mhd file |
◆ operator=() [2/2]
Avoid assignement of the class by reference.
- Parameters
-
mhd | - reference on the mhd file |
◆ Read()
void GGEMSMHDImage::Read |
( |
std::string const & |
image_mhd_header_filename, |
|
|
cl::Buffer * |
solid_data, |
|
|
GGsize const & |
thread_index |
|
) |
| |
read the mhd header
- Parameters
-
image_mhd_header_filename | - input mhd filename |
solid_data | - pointer on solid data |
thread_index | - index of the thread (= activated device index) |
Definition at line 129 of file GGEMSMHDImage.cc.
◆ SetDataType()
void GGEMSMHDImage::SetDataType |
( |
std::string const & |
data_type | ) |
|
◆ SetDimensions()
void GGEMSMHDImage::SetDimensions |
( |
GGsize3 const & |
dimensions | ) |
|
set the dimensions of the image
- Parameters
-
dimensions | - dimensions of image in X, Y, Z |
Definition at line 120 of file GGEMSMHDImage.cc.
◆ SetElementSizes()
void GGEMSMHDImage::SetElementSizes |
( |
GGfloat3 const & |
element_sizes | ) |
|
set the size of the elements
- Parameters
-
element_sizes | - size of elements in X, Y, Z |
Definition at line 102 of file GGEMSMHDImage.cc.
◆ SetOutputFileName()
void GGEMSMHDImage::SetOutputFileName |
( |
std::string const & |
basename | ) |
|
set the output filename (*.mhd)
- Parameters
-
Definition at line 77 of file GGEMSMHDImage.cc.
◆ Write() [1/2]
void GGEMSMHDImage::Write |
( |
cl::Buffer * |
image, |
|
|
GGsize const & |
thread_index |
|
) |
| const |
Write mhd header/raw file.
- Parameters
-
image | - image to write on output file |
thread_index | - index of the thread (= activated device index) |
Definition at line 223 of file GGEMSMHDImage.cc.
◆ Write() [2/2]
template<typename T >
void GGEMSMHDImage::Write |
( |
T * |
image | ) |
|
write the raw data to file
- Template Parameters
-
- Parameters
-
image | - image to write on output file |
Definition at line 194 of file GGEMSMHDImage.hh.
◆ WriteRaw()
template<typename T >
void GGEMSMHDImage::WriteRaw |
( |
cl::Buffer * |
image, |
|
|
GGsize const & |
thread_index |
|
) |
| const |
|
private |
write the raw data to file
- Template Parameters
-
- Parameters
-
image | - image to write on output file |
thread_index | - index of the thread (= activated device index) |
Definition at line 226 of file GGEMSMHDImage.hh.
◆ dimensions_
◆ element_sizes_
◆ mhd_data_type_
std::string GGEMSMHDImage::mhd_data_type_ |
|
private |
◆ mhd_header_file_
std::string GGEMSMHDImage::mhd_header_file_ |
|
private |
◆ mhd_raw_file_
std::string GGEMSMHDImage::mhd_raw_file_ |
|
private |
◆ output_dir_
std::string GGEMSMHDImage::output_dir_ |
|
private |
The documentation for this class was generated from the following files: