Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Imaging/vtkImageChangeInformation.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageChangeInformation.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00041 #ifndef __vtkImageChangeInformation_h
00042 #define __vtkImageChangeInformation_h
00043 
00044 #include "vtkImageToImageFilter.h"
00045 
00046 class vtkImageData;
00047 
00048 class VTK_IMAGING_EXPORT vtkImageChangeInformation : public vtkImageToImageFilter
00049 {
00050 public:
00051   static vtkImageChangeInformation *New();
00052   vtkTypeRevisionMacro(vtkImageChangeInformation, vtkImageToImageFilter);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00054 
00056 
00058   virtual void SetInformationInput(vtkImageData*);
00059   vtkGetObjectMacro(InformationInput, vtkImageData);
00061 
00063 
00067   vtkSetVector3Macro(OutputExtentStart, int);
00068   vtkGetVector3Macro(OutputExtentStart, int);
00070 
00072 
00075   vtkSetVector3Macro(OutputSpacing, float);
00076   vtkGetVector3Macro(OutputSpacing, float);
00078 
00080 
00083   vtkSetVector3Macro(OutputOrigin, float);
00084   vtkGetVector3Macro(OutputOrigin, float);
00086 
00088 
00092   vtkSetMacro(CenterImage, int);
00093   vtkBooleanMacro(CenterImage, int);
00094   vtkGetMacro(CenterImage, int);
00096 
00098 
00099   vtkSetVector3Macro(ExtentTranslation, int);
00100   vtkGetVector3Macro(ExtentTranslation, int);
00102 
00104 
00105   vtkSetVector3Macro(SpacingScale, float);
00106   vtkGetVector3Macro(SpacingScale, float);
00108 
00110 
00111   vtkSetVector3Macro(OriginTranslation, float);
00112   vtkGetVector3Macro(OriginTranslation, float);
00114 
00116 
00118   vtkSetVector3Macro(OriginScale, float);
00119   vtkGetVector3Macro(OriginScale, float);
00121 
00122 protected:
00123   vtkImageChangeInformation();
00124   ~vtkImageChangeInformation();
00125 
00126   vtkImageData *InformationInput;
00127   int CenterImage;
00128 
00129   int OutputExtentStart[3];
00130   int ExtentTranslation[3];
00131   int FinalExtentTranslation[3];
00132   
00133   float OutputSpacing[3];
00134   float SpacingScale[3];
00135 
00136   float OutputOrigin[3];
00137   float OriginScale[3];
00138   float OriginTranslation[3];
00139   
00140   void ComputeInputUpdateExtent(int extent[6], int wholeExtent[6]);
00141   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00142   void ExecuteInformation() {
00143     this->vtkImageToImageFilter::ExecuteInformation(); };
00144   void ExecuteData(vtkDataObject *data);
00145 private:
00146   vtkImageChangeInformation(const vtkImageChangeInformation&);  // Not implemented.
00147   void operator=(const vtkImageChangeInformation&);  // Not implemented.
00148 };
00149 
00150 
00151 
00152 #endif
00153 
00154 
00155