Imaging/vtkImageTranslateExtent.h Source File

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

# Imaging/vtkImageTranslateExtent.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkImageTranslateExtent.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 =========================================================================*/
    00040 #ifndef __vtkImageTranslateExtent_h
    00041 #define __vtkImageTranslateExtent_h
    00042
    00043 #include "vtkImageToImageFilter.h"
    00044
    00045 class VTK_IMAGING_EXPORT vtkImageTranslateExtent : public vtkImageToImageFilter
    00046 {
    00047 public:
    00048   static vtkImageTranslateExtent *New();
    00049   vtkTypeRevisionMacro(vtkImageTranslateExtent,vtkImageToImageFilter);
    00050   void PrintSelf(ostream& os, vtkIndent indent);
    00051
    00053
    00054   vtkSetVector3Macro(Translation, int);
    00055   vtkGetVector3Macro(Translation, int);
    00057
    00058 protected:
    00059   vtkImageTranslateExtent();
    00060   ~vtkImageTranslateExtent() {};
    00061
    00062   int Translation[3];
    00063
    00064   void ComputeInputUpdateExtent(int extent[6], int wholeExtent[6]);
    00065   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
    00066   void ExecuteInformation() {
    00067     this->vtkImageToImageFilter::ExecuteInformation(); };
    00068   void ExecuteData(vtkDataObject *data);
    00069 private:
    00070   vtkImageTranslateExtent(const vtkImageTranslateExtent&);  // Not implemented.
    00071   void operator=(const vtkImageTranslateExtent&);  // Not implemented.
    00072 };
    00073
    00074 #endif
    00075
    00076
    00077