VTK  9.2.5
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 
65  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
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 
138 
139 protected:
142 
147  unsigned int BatchSize;
148 
149  // Pipeline-related methods
151 
152 private:
154  void operator=(const vtkPolyDataPlaneCutter&) = delete;
155 };
156 
157 #endif
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
perform various plane computations
Definition: vtkPlane.h:146
Superclass for algorithms that produce only polydata as output.
threaded (high-performance) cutting of a vtkPolyData with a plane
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPolyDataPlaneCutter() override
static vtkPolyDataPlaneCutter * New()
Standard construction, type, and print methods.
vtkSmartPointer< vtkPlane > Plane
void SetPlane(vtkPlane *)
Specify the plane (an implicit function) to perform the cutting.
vtkMTimeType GetMTime() override
The modified time depends on the delegated cutting plane.
static bool CanFullyProcessDataObject(vtkDataObject *object)
This helper method can be used to determine the if the input vtkPolyData contains convex polygonal ce...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard construction, type, and print methods.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_INT_MAX
Definition: vtkType.h:155