00001 00002 //---------------------------------------------------------------------------------------------------------------- 00003 // Class definition include 00004 //---------------------------------------------------------------------------------------------------------------- 00005 #include "ImageSectionThing.h" 00006 00007 //---------------------------------------------------------------------------------------------------------------- 00008 // Class implementation 00009 //---------------------------------------------------------------------------------------------------------------- 00012 //------------------------------------------------------------------------------------------------------------ 00013 // Constructors & Destructors 00014 //------------------------------------------------------------------------------------------------------------ 00015 00016 /* 00017 * Creates the section image with the given image 00018 * @param sourceImage The image data to set. 00019 */ 00020 ImageSectionThing :: ImageSectionThing(vtkImageData * theImage) 00021 { 00022 setImageData(theImage); 00023 } 00024 00025 /* 00026 * Destroys the image section 00027 */ 00028 ImageSectionThing :: ~ImageSectionThing() 00029 { 00030 00031 } 00032 //------------------------------------------------------------------------------------------------------------ 00033 // Methods 00034 //------------------------------------------------------------------------------------------------------------ 00035 00036 /* 00037 * Gets the image data 00038 * @return image The image. 00039 */ 00040 vtkImageData * ImageSectionThing :: getImageData() 00041 { 00042 return image; 00043 } 00044 00045 /* 00046 * Sets the source image 00047 * @param theImage The image to set. 00048 */ 00049 void ImageSectionThing :: setImageData( vtkImageData * theImage) 00050 { 00051 image = theImage; 00052 } 00053 00054