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 =========================================================================*/
25 #ifndef vtkPistonSlice_h
26 #define vtkPistonSlice_h
27 
28 #include "vtkPistonAlgorithm.h"
29 
30 class vtkPlane;
31 
32 class VTKACCELERATORSPISTON_EXPORT vtkPistonSlice : public vtkPistonAlgorithm
33 {
34 public:
36  static vtkPistonSlice *New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
43  vtkSetMacro(Offset, float);
44  vtkGetMacro(Offset, float);
46 
50  void SetClippingPlane( vtkPlane * plane );
51 
52 protected:
54  ~vtkPistonSlice();
55 
56  virtual int ComputePipelineMTime(
57  vtkInformation* request, vtkInformationVector** inputVector,
58  vtkInformationVector* outputVector, int requestFromOutputPort,
59  vtkMTimeType* mtime);
60 
64  virtual int RequestData(vtkInformation* request,
65  vtkInformationVector** inputVector,
66  vtkInformationVector* outputVector);
67 
68  float Offset;
70 
71 private:
72  vtkPistonSlice(const vtkPistonSlice&) VTK_DELETE_FUNCTION;
73  void operator=(const vtkPistonSlice&) VTK_DELETE_FUNCTION;
74 
75 };
76 
77 #endif
static vtkPistonAlgorithm * New()
vtkPlane * Plane
Store vtkAlgorithm input/output information.
A filter that slices on the GPU.
virtual int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime)
A special version of ProcessRequest meant specifically for the pipeline modified time request...
Superclass for algorithms that produce only PistonDataObjects.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Method that does the actual calculation.
perform various plane computations
Definition: vtkPlane.h:37
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.