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