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-2001 Ken Martin, Will Schroeder, Bill Lorensen 
00008 All rights reserved.
00009 
00010 Redistribution and use in source and binary forms, with or without
00011 modification, are permitted provided that the following conditions are met:
00012 
00013  * Redistributions of source code must retain the above copyright notice,
00014    this list of conditions and the following disclaimer.
00015 
00016  * Redistributions in binary form must reproduce the above copyright notice,
00017    this list of conditions and the following disclaimer in the documentation
00018    and/or other materials provided with the distribution.
00019 
00020  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
00021    of any contributors may be used to endorse or promote products derived
00022    from this software without specific prior written permission.
00023 
00024  * Modified source versions must be plainly marked as such, and must not be
00025    misrepresented as being the original software.
00026 
00027 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00028 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00029 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00030 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
00031 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00032 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00033 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00034 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00035 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00036 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00037 
00038 =========================================================================*/
00055 #ifndef __vtkImageChangeInformation_h
00056 #define __vtkImageChangeInformation_h
00057 
00058 #include "vtkImageToImageFilter.h"
00059 
00060 class VTK_IMAGING_EXPORT vtkImageChangeInformation : public vtkImageToImageFilter
00061 {
00062 public:
00063   static vtkImageChangeInformation *New();
00064   vtkTypeMacro(vtkImageChangeInformation, vtkImageToImageFilter);
00065   void PrintSelf(ostream& os, vtkIndent indent);
00066 
00068 
00070   vtkSetObjectMacro(InformationInput, vtkImageData);
00071   vtkGetObjectMacro(InformationInput, vtkImageData);
00073 
00075 
00079   vtkSetVector3Macro(OutputExtentStart, int);
00080   vtkGetVector3Macro(OutputExtentStart, int);
00082 
00084 
00087   vtkSetVector3Macro(OutputSpacing, float);
00088   vtkGetVector3Macro(OutputSpacing, float);
00090 
00092 
00095   vtkSetVector3Macro(OutputOrigin, float);
00096   vtkGetVector3Macro(OutputOrigin, float);
00098 
00100 
00104   vtkSetMacro(CenterImage, int);
00105   vtkBooleanMacro(CenterImage, int);
00106   vtkGetMacro(CenterImage, int);
00108 
00110 
00111   vtkSetVector3Macro(ExtentTranslation, int);
00112   vtkGetVector3Macro(ExtentTranslation, int);
00114 
00116 
00117   vtkSetVector3Macro(SpacingScale, float);
00118   vtkGetVector3Macro(SpacingScale, float);
00120 
00122 
00123   vtkSetVector3Macro(OriginTranslation, float);
00124   vtkGetVector3Macro(OriginTranslation, float);
00126 
00128 
00130   vtkSetVector3Macro(OriginScale, float);
00131   vtkGetVector3Macro(OriginScale, float);
00133 
00134 protected:
00135   vtkImageChangeInformation();
00136   ~vtkImageChangeInformation();
00137 
00138   vtkImageData *InformationInput;
00139   int CenterImage;
00140 
00141   int OutputExtentStart[3];
00142   int ExtentTranslation[3];
00143   int FinalExtentTranslation[3];
00144   
00145   float OutputSpacing[3];
00146   float SpacingScale[3];
00147 
00148   float OutputOrigin[3];
00149   float OriginScale[3];
00150   float OriginTranslation[3];
00151   
00152   void ComputeInputUpdateExtent(int extent[6], int wholeExtent[6]);
00153   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00154   void ExecuteInformation() {
00155     this->vtkImageToImageFilter::ExecuteInformation(); };
00156   void ExecuteData(vtkDataObject *data);
00157 private:
00158   vtkImageChangeInformation(const vtkImageChangeInformation&) {};  // Not implemented.
00159   void operator=(const vtkImageChangeInformation&) {};  // Not implemented.
00160 };
00161 
00162 
00163 
00164 #endif
00165 
00166 
00167 

Generated on Thu Mar 28 14:19:25 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001