VTK  9.2.6
vtkCutMaterial.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCutMaterial.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=========================================================================*/
27
28#ifndef vtkCutMaterial_h
29#define vtkCutMaterial_h
30
31#include "vtkFiltersParallelModule.h" // For export macro
33
34class vtkPlane;
35
36class VTKFILTERSPARALLEL_EXPORT vtkCutMaterial : public vtkPolyDataAlgorithm
37{
38public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
47 vtkSetStringMacro(MaterialArrayName);
48 vtkGetStringMacro(MaterialArrayName);
50
52
55 vtkSetMacro(Material, int);
56 vtkGetMacro(Material, int);
58
60
64 vtkSetStringMacro(ArrayName);
65 vtkGetStringMacro(ArrayName);
67
69
72 vtkSetVector3Macro(UpVector, double);
73 vtkGetVector3Macro(UpVector, double);
75
77
81 vtkGetVector3Macro(MaximumPoint, double);
82 vtkGetVector3Macro(CenterPoint, double);
83 vtkGetVector3Macro(Normal, double);
85
86protected:
88 ~vtkCutMaterial() override;
89
91 vtkInformationVector*) override; // generate output data
92 int FillInputPortInformation(int port, vtkInformation* info) override;
95
98 char* ArrayName;
99 double UpVector[3];
100 double MaximumPoint[3];
101 double CenterPoint[3];
102 double Normal[3];
103
105
106private:
107 vtkCutMaterial(const vtkCutMaterial&) = delete;
108 void operator=(const vtkCutMaterial&) = delete;
109};
110
111#endif
char * MaterialArrayName
double CenterPoint[3]
vtkPlane * PlaneFunction
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double UpVector[3]
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double MaximumPoint[3]
~vtkCutMaterial() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void ComputeNormal()
void ComputeMaximumPoint(vtkDataSet *input)
static vtkCutMaterial * New()
abstract class to specify dataset behavior
Definition vtkDataSet.h:63
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
perform various plane computations
Definition vtkPlane.h:37