-}
-
-void vtkGdcmReader::BuildData(vtkDataObject *output)
-{
- vtkImageData *data = this->AllocateOutputData(output);
+
+ // data->AllocateScalars(); // For VTK5.0
+ // if (this->UpdateExtentIsEmpty(output))
+ // {
+ // return;
+ // }
+//} // end For VTK5.0
+
+ data->AllocateScalars(); // For VTK5.0
+ if (this->UpdateExtentIsEmpty(output))
+ {
+ return;
+ }
+
+//void vtkGdcmReader::BuildData(vtkDataObject *output) // For VTK5.0
+//{
+// vtkImageData *data = this->AllocateOutputData(output); // end For VTK5.0