plastimatch
Loading...
Searching...
No Matches
dcmtk_file.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _dcmtk_file_h_
5#define _dcmtk_file_h_
6
7#include "plmbase_config.h"
8#include "plm_int.h"
9#include "smart_pointer.h"
10#include "volume_header.h"
11
12class DcmDataset;
13class DcmElement;
14class DcmSequenceOfItems;
15class DcmTagKey;
16
17class Dcmtk_file_private;
18
20{
21public:
23 Dcmtk_file_private *d_ptr;
24public:
25 Dcmtk_file ();
26 Dcmtk_file (const char *fn);
27 ~Dcmtk_file ();
28
29public:
30 bool is_valid () const;
31 void debug () const;
32 DcmDataset* get_dataset (void) const;
33 const char* get_cstr (const DcmTagKey& tag_key) const;
34 bool get_uint8 (const DcmTagKey& tag_key, uint8_t* val) const;
35 bool get_uint16 (const DcmTagKey& tag_key, uint16_t* val) const;
36 bool get_float (const DcmTagKey& tag_key, float* val) const;
37 bool get_ds_float (const DcmTagKey& tag_key, float* val) const;
38 bool get_uint8_array (const DcmTagKey& tag_key,
39 const uint8_t** val, unsigned long* count) const;
40 bool get_uint16_array (const DcmTagKey& tag_key,
41 const uint16_t** val, unsigned long* count) const;
42 bool get_int16_array (const DcmTagKey& tag_key,
43 const int16_t** val, unsigned long* count) const;
44 bool get_uint32_array (const DcmTagKey& tag_key,
45 const uint32_t** val, unsigned long* count) const;
46 bool get_int32_array (const DcmTagKey& tag_key,
47 const int32_t** val, unsigned long* count) const;
48 bool get_element (const DcmTagKey& tag_key, DcmElement* val) const;
49 bool get_sequence (const DcmTagKey& tag_key,
50 DcmSequenceOfItems*& seq) const;
51 const Volume_header* get_volume_header () const;
53 float get_z_position () const;
54
55 void load_header (const char *fn);
56};
57
58
59PLMBASE_C_API void dcmtk_series_test (char *dicom_dir);
61 const Dcmtk_file::Pointer& f1,
62 const Dcmtk_file::Pointer& f2
63);
64
65#endif
Definition dcmtk_file.h:20
bool get_float(const DcmTagKey &tag_key, float *val) const
Definition dcmtk_file.cxx:95
Dcmtk_file_private * d_ptr
Definition dcmtk_file.h:23
bool get_uint16_array(const DcmTagKey &tag_key, const uint16_t **val, unsigned long *count) const
Definition dcmtk_file.cxx:138
bool get_uint32_array(const DcmTagKey &tag_key, const uint32_t **val, unsigned long *count) const
bool get_ds_float(const DcmTagKey &tag_key, float *val) const
Definition dcmtk_file.cxx:102
float get_z_position() const
Definition dcmtk_file.cxx:177
bool get_uint8_array(const DcmTagKey &tag_key, const uint8_t **val, unsigned long *count) const
Definition dcmtk_file.cxx:114
void load_header(const char *fn)
Definition dcmtk_file.cxx:183
Dcmtk_file()
Definition dcmtk_file.cxx:36
const Direction_cosines & get_direction_cosines() const
Definition dcmtk_file.cxx:171
~Dcmtk_file()
Definition dcmtk_file.cxx:45
bool get_uint16(const DcmTagKey &tag_key, uint16_t *val) const
Definition dcmtk_file.cxx:88
bool is_valid() const
Definition dcmtk_file.cxx:50
bool get_sequence(const DcmTagKey &tag_key, DcmSequenceOfItems *&seq) const
Definition dcmtk_file.cxx:157
const char * get_cstr(const DcmTagKey &tag_key) const
Definition dcmtk_file.cxx:70
void debug() const
Definition dcmtk_file.cxx:56
bool get_int32_array(const DcmTagKey &tag_key, const int32_t **val, unsigned long *count) const
bool get_element(const DcmTagKey &tag_key, DcmElement *val) const
Definition dcmtk_file.cxx:151
bool get_int16_array(const DcmTagKey &tag_key, const int16_t **val, unsigned long *count) const
Definition dcmtk_file.cxx:127
DcmDataset * get_dataset(void) const
Definition dcmtk_file.cxx:63
const Volume_header * get_volume_header() const
Definition dcmtk_file.cxx:165
std::shared_ptr< Self > Pointer
Definition dcmtk_file.h:22
bool get_uint8(const DcmTagKey &tag_key, uint8_t *val) const
Definition dcmtk_file.cxx:81
Definition direction_cosines.h:23
Definition volume_header.h:17
EXTERNC bool dcmtk_file_compare_z_position(const Dcmtk_file::Pointer &f1, const Dcmtk_file::Pointer &f2)
Definition dcmtk_file.cxx:270
EXTERNC void dcmtk_series_test(char *dicom_dir)
#define PLMBASE_C_API
Definition plmbase_config.h:18
#define SMART_POINTER_SUPPORT(T)
Definition smart_pointer.h:19