Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkExtractRectilinearGrid.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkExtractRectilinearGrid.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00041 #ifndef __vtkExtractRectilinearGrid_h
00042 #define __vtkExtractRectilinearGrid_h
00043 
00044 #include "vtkRectilinearGridSource.h"
00045 
00046 class VTK_GRAPHICS_EXPORT vtkExtractRectilinearGrid : public vtkRectilinearGridSource
00047 {
00048 public:
00049   static vtkExtractRectilinearGrid *New();
00050   vtkTypeRevisionMacro(vtkExtractRectilinearGrid,vtkRectilinearGridSource);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052 
00054 
00055   void SetInput(vtkRectilinearGrid *input);
00056   vtkRectilinearGrid *GetInput();
00058 
00060 
00063   vtkSetVector6Macro(VOI,int);
00064   vtkGetVectorMacro(VOI,int,6);
00066 
00068 
00072   vtkSetVector3Macro(SampleRate, int);
00073   vtkGetVectorMacro(SampleRate, int, 3);
00075 
00077 
00083   vtkSetMacro(IncludeBoundary,int);
00084   vtkGetMacro(IncludeBoundary,int);
00085   vtkBooleanMacro(IncludeBoundary,int);
00087 
00088 protected:
00089   vtkExtractRectilinearGrid();
00090   ~vtkExtractRectilinearGrid() {};
00091 
00092   void Execute();
00093   void ExecuteInformation();
00094   void ComputeInputUpdateExtents(vtkDataObject *out);
00095   
00096   int VOI[6];
00097   int SampleRate[3];
00098   int IncludeBoundary;
00099   
00100   virtual int FillInputPortInformation(int, vtkInformation*);
00101 private:
00102   vtkExtractRectilinearGrid(const vtkExtractRectilinearGrid&);  // Not implemented.
00103   void operator=(const vtkExtractRectilinearGrid&);  // Not implemented.
00104 };
00105 
00106 #endif
00107 
00108