Retrieving Voxel data using vtkImageReslice

I am a newbie and try to use tkImageReslice class to retrieve voxel data in DICOM files. Really appreciate an insight, which can explain me a way to retrieve those data. I use C++ as my programming language.