VTK  9.2.6
vtkPolyDataPlaneCutter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataPlaneCutter.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 =========================================================================*/
48 #ifndef vtkPolyDataPlaneCutter_h
49 #define vtkPolyDataPlaneCutter_h
50 
51 #include "vtkFiltersCoreModule.h" // For export macro
52 #include "vtkPlane.h" // For cutting plane
53 #include "vtkPolyDataAlgorithm.h"
54 #include "vtkSmartPointer.h" // For SmartPointer
55 
56 class VTKFILTERSCORE_EXPORT vtkPolyDataPlaneCutter : public vtkPolyDataAlgorithm
57 {
58 public:
60 
63  static vtkPolyDataPlaneCutter* New();
65  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
74  void SetPlane(vtkPlane*);
75  vtkGetObjectMacro(Plane, vtkPlane);
77 
79 
84  vtkSetMacro(ComputeNormals, bool);
85  vtkGetMacro(ComputeNormals, bool);
86  vtkBooleanMacro(ComputeNormals, bool);
88 
90 
95  vtkSetMacro(InterpolateAttributes, bool);
96  vtkGetMacro(InterpolateAttributes, bool);
97  vtkBooleanMacro(InterpolateAttributes, bool);
99 
101 
107  vtkSetMacro(OutputPointsPrecision, int);
108  vtkGetMacro(OutputPointsPrecision, int);
110 
114  vtkMTimeType GetMTime() override;
115 
117 
124  vtkSetClampMacro(BatchSize, unsigned int, 1, VTK_INT_MAX);
125  vtkGetMacro(BatchSize, unsigned int);
127 
137  static bool CanFullyProcessDataObject(vtkDataObject* object);
138 
139 protected:
141  ~vtkPolyDataPlaneCutter() override;
142 
147  unsigned int BatchSize;
148 
149  // Pipeline-related methods
151 
152 private:
154  void operator=(const vtkPolyDataPlaneCutter&) = delete;
155 };
156 
157 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:155
threaded (high-performance) cutting of a vtkPolyData with a plane
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSmartPointer< vtkPlane > Plane
perform various plane computations
Definition: vtkPlane.h:36
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:65
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.