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

# Imaging/vtkImageClip.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkImageClip.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 =========================================================================*/
    00048 #ifndef __vtkImageClip_h
    00049 #define __vtkImageClip_h
    00050
    00051 // I did not make this a subclass of in place filter because
    00052 // the references on the data do not matter. I make no modifications
    00053 // to the data.
    00054 #include "vtkImageToImageFilter.h"
    00055
    00056 class VTK_IMAGING_EXPORT vtkImageClip : public vtkImageToImageFilter
    00057 {
    00058 public:
    00059   static vtkImageClip *New();
    00060   vtkTypeRevisionMacro(vtkImageClip,vtkImageToImageFilter);
    00061   void PrintSelf(ostream& os, vtkIndent indent);
    00062
    00064
    00065   void SetOutputWholeExtent(int extent[6]);
    00066   void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY,
    00067                             int minZ, int maxZ);
    00068   void GetOutputWholeExtent(int extent[6]);
    00069   int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
    00071
    00072   void ResetOutputWholeExtent();
    00073
    00075
    00078   vtkSetMacro(ClipData, int);
    00079   vtkGetMacro(ClipData, int);
    00080   vtkBooleanMacro(ClipData, int);
    00082
    00084   void SetOutputWholeExtent(int piece, int numPieces);
    00085
    00086 protected:
    00087   vtkImageClip();
    00088   ~vtkImageClip() {};
    00089
    00090   // Time when OutputImageExtent was computed.
    00091   vtkTimeStamp CTime;
    00092   int Initialized; // Set the OutputImageExtent for the first time.
    00093   int OutputWholeExtent[6];
    00094
    00095   int ClipData;
    00096
    00097   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
    00098   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
    00099   void CopyData(vtkImageData *inData, vtkImageData *outData, int *ext);
    00100
    00101   int SplitExtentTmp(int piece, int numPieces, int *ext);
    00102
    00103   virtual void ExecuteData(vtkDataObject *out);
    00104 private:
    00105   vtkImageClip(const vtkImageClip&);  // Not implemented.
    00106   void operator=(const vtkImageClip&);  // Not implemented.
    00107 };
    00108
    00109
    00110
    00111 #endif
    00112
    00113
    00114