DICOMSDL  0.79.20110728
DICOMSoftwareDevelopmentLibrary
Public Member Functions | Public Attributes | List of all members
dicom::dataset Struct Reference

#include <dicom.h>

Inheritance diagram for dicom::dataset:
dicom::dicomfile

Public Member Functions

int load (void *instream, dicomfile *dfobj, uidtype tsuid, opttype opt=default_load_opt, optarg arg=0)
 
int save_a (char **val_a, int *len_a, opttype opt=default_save_opt)
 
int _save (void *ostream, uidtype tsuid, opttype opt)
 
dataelementget_dataelement (tagtype tag)
 
dataelementget_dataelement (const char *tagstr)
 
dataelementoperator[] (tagtype tag)
 
dataelementoperator[] (const char *tagstr)
 
dataelementadd_dataelement (tagtype tag, vrtype vr=VR_NULL, uint32 len=0, void *ptr=NULL, int endian=MACHINE_ENDIANNESS, int own_memory=false)
 
dataelementadd_dataelement (const char *tagstring, vrtype vr=VR_NULL)
 
void remove_dataelement (tagtype tag)
 
void remove_all_dataelements ()
 
 ~dataset ()
 
void dump_string_a (char **val_a, int *len_a, std::string prefix="")
 
std::string dump_string (std::string prefix="")
 
void get_image_info (int *width, int *height, int *precision, int *signedness, int *ncomponents, int *bytes_per_pixel, int *nframes)
 
void set_image_dimension (int width, int height, int precision, int signedness, int ncomponents)
 
void get_pixeldata_a (char **val_a, int *len_a)
 
int copy_pixeldata_to (char *buf, int rowstep, int framestep, int idx=-1)
 
int copy_pixeldata_to (void *buf, int rowstep, int framestep, int idx=-1)
 
int set_pixeldata (uidtype tsuid, char *buf, int width, int height, int prec, int sgnd, int ncomps, int nframes, int rowstep, int framestep, int quality=0)
 
int set_filemetainfo (uidtype sop_class_uid, char *sop_instance_uid, uidtype transfer_syntax_uid)
 
int change_pixelencoding (uidtype transfer_syntax_uid, int quality=0)
 
int number_of_elements ()
 
void realloc_ptr (long ptrdiff)
 

Public Attributes

element_dict_type edict
 
uidtype tsuid
 

Detailed Description

Implementation of DICOM data set

Constructor & Destructor Documentation

dicom::dataset::~dataset ( )
inline

Member Function Documentation

int dicom::dataset::_save ( void *  ostream,
uidtype  tsuid,
opttype  opt 
)
dataelement* dicom::dataset::add_dataelement ( tagtype  tag,
vrtype  vr = VR_NULL,
uint32  len = 0,
void *  ptr = NULL,
int  endian = MACHINE_ENDIANNESS,
int  own_memory = false 
)
dataelement* dicom::dataset::add_dataelement ( const char *  tagstring,
vrtype  vr = VR_NULL 
)
int dicom::dataset::change_pixelencoding ( uidtype  transfer_syntax_uid,
int  quality = 0 
)
int dicom::dataset::copy_pixeldata_to ( char *  buf,
int  rowstep,
int  framestep,
int  idx = -1 
)
int dicom::dataset::copy_pixeldata_to ( void *  buf,
int  rowstep,
int  framestep,
int  idx = -1 
)
inline
std::string dicom::dataset::dump_string ( std::string  prefix = "")
void dicom::dataset::dump_string_a ( char **  val_a,
int *  len_a,
std::string  prefix = "" 
)
dataelement* dicom::dataset::get_dataelement ( tagtype  tag)
dataelement* dicom::dataset::get_dataelement ( const char *  tagstr)
void dicom::dataset::get_image_info ( int *  width,
int *  height,
int *  precision,
int *  signedness,
int *  ncomponents,
int *  bytes_per_pixel,
int *  nframes 
)
void dicom::dataset::get_pixeldata_a ( char **  val_a,
int *  len_a 
)
int dicom::dataset::load ( void *  instream,
dicomfile dfobj,
uidtype  tsuid,
opttype  opt = default_load_opt,
optarg  arg = 0 
)
int dicom::dataset::number_of_elements ( )
inline
dataelement& dicom::dataset::operator[] ( tagtype  tag)
inline
dataelement& dicom::dataset::operator[] ( const char *  tagstr)
inline
void dicom::dataset::realloc_ptr ( long  ptrdiff)
void dicom::dataset::remove_all_dataelements ( )
void dicom::dataset::remove_dataelement ( tagtype  tag)
int dicom::dataset::save_a ( char **  val_a,
int *  len_a,
opttype  opt = default_save_opt 
)
int dicom::dataset::set_filemetainfo ( uidtype  sop_class_uid,
char *  sop_instance_uid,
uidtype  transfer_syntax_uid 
)
void dicom::dataset::set_image_dimension ( int  width,
int  height,
int  precision,
int  signedness,
int  ncomponents 
)
int dicom::dataset::set_pixeldata ( uidtype  tsuid,
char *  buf,
int  width,
int  height,
int  prec,
int  sgnd,
int  ncomps,
int  nframes,
int  rowstep,
int  framestep,
int  quality = 0 
)

Member Data Documentation

element_dict_type dicom::dataset::edict
uidtype dicom::dataset::tsuid

The documentation for this struct was generated from the following file: