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:
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
vtkPlane
perform various plane computations
Definition: vtkPlane.h:38
vtkPistonAlgorithm.h
vtkPistonSlice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkPistonSlice::vtkPistonSlice
vtkPistonSlice()
vtkPistonSlice::~vtkPistonSlice
~vtkPistonSlice()
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPistonAlgorithm
Superclass for algorithms that produce only PistonDataObjects.
Definition: vtkPistonAlgorithm.h:45
vtkPistonSlice
A filter that slices on the GPU.
Definition: vtkPistonSlice.h:33
vtkPistonSlice::New
static vtkPistonSlice * New()
vtkPistonSlice::Plane
vtkPlane * Plane
Definition: vtkPistonSlice.h:69
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPistonSlice::ComputePipelineMTime
virtual int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, int requestFromOutputPort, vtkMTimeType *mtime)
A special version of ProcessRequest meant specifically for the pipeline modified time request.
vtkPistonSlice::SetClippingPlane
void SetClippingPlane(vtkPlane *plane)
Set the clipping plane.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkPistonSlice::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Method that does the actual calculation.
vtkPistonSlice::Offset
float Offset
Definition: vtkPistonSlice.h:68