VTK
dox/Accelerators/Piston/vtkPistonSlice.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPistonSlice.h
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 =========================================================================*/
00024 #ifndef __vtkPistonSlice_h
00025 #define __vtkPistonSlice_h
00026 
00027 #include "vtkPistonAlgorithm.h"
00028 
00029 class vtkPlane;
00030 
00031 class VTKACCELERATORSPISTON_EXPORT vtkPistonSlice : public vtkPistonAlgorithm
00032 {
00033 public:
00034   vtkTypeMacro(vtkPistonSlice,vtkPistonAlgorithm);
00035   static vtkPistonSlice *New();
00036   void PrintSelf(ostream& os, vtkIndent indent);
00037 
00039 
00040   vtkSetMacro(Offset, float);
00041   vtkGetMacro(Offset, float);
00043 
00045   void SetClippingPlane( vtkPlane * plane );
00046 
00047 protected:
00048   vtkPistonSlice();
00049   ~vtkPistonSlice();
00050 
00051   virtual int ComputePipelineMTime(
00052     vtkInformation* request, vtkInformationVector** inputVector,
00053     vtkInformationVector* outputVector, int requestFromOutputPort,
00054     unsigned long* mtime);
00055 
00057 
00058   virtual int RequestData(vtkInformation* request,
00059                           vtkInformationVector** inputVector,
00060                           vtkInformationVector* outputVector);
00062 
00063   float Offset;
00064   vtkPlane* Plane;
00065 
00066 private:
00067   vtkPistonSlice(const vtkPistonSlice&);  // Not implemented.
00068   void operator=(const vtkPistonSlice&);  // Not implemented.
00069 
00070 };
00071 
00072 #endif