VTK
vtkPistonSlice.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPistonSlice.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkPistonSlice_h
25 #define vtkPistonSlice_h
26 
27 #include "vtkPistonAlgorithm.h"
28 
29 class vtkPlane;
30 
31 class VTKACCELERATORSPISTON_EXPORT vtkPistonSlice : public vtkPistonAlgorithm
32 {
33 public:
35  static vtkPistonSlice *New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
40  vtkSetMacro(Offset, float);
41  vtkGetMacro(Offset, float);
43 
45  void SetClippingPlane( vtkPlane * plane );
46 
47 protected:
49  ~vtkPistonSlice();
50 
51  virtual int ComputePipelineMTime(
52  vtkInformation* request, vtkInformationVector** inputVector,
53  vtkInformationVector* outputVector, int requestFromOutputPort,
54  unsigned long* mtime);
55 
57 
58  virtual int RequestData(vtkInformation* request,
59  vtkInformationVector** inputVector,
60  vtkInformationVector* outputVector);
62 
63  float Offset;
65 
66 private:
67  vtkPistonSlice(const vtkPistonSlice&); // Not implemented.
68  void operator=(const vtkPistonSlice&); // Not implemented.
69 
70 };
71 
72 #endif
static vtkPistonAlgorithm * New()
vtkPlane * Plane
Store vtkAlgorithm input/output information.
A filter that slices on the GPU.
Superclass for algorithms that produce only PistonDataObjects.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
perform various plane computations
Definition: vtkPlane.h:36
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)