VTK  9.1.0
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=========================================================================*/
25#ifndef vtkCutMaterial_h
26#define vtkCutMaterial_h
27
28#include "vtkFiltersParallelModule.h" // For export macro
30
31class vtkPlane;
32
33class VTKFILTERSPARALLEL_EXPORT vtkCutMaterial : public vtkPolyDataAlgorithm
34{
35public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
44 vtkSetStringMacro(MaterialArrayName);
45 vtkGetStringMacro(MaterialArrayName);
47
49
52 vtkSetMacro(Material, int);
53 vtkGetMacro(Material, int);
55
57
61 vtkSetStringMacro(ArrayName);
62 vtkGetStringMacro(ArrayName);
64
66
69 vtkSetVector3Macro(UpVector, double);
70 vtkGetVector3Macro(UpVector, double);
72
74
78 vtkGetVector3Macro(MaximumPoint, double);
79 vtkGetVector3Macro(CenterPoint, double);
80 vtkGetVector3Macro(Normal, double);
82
83protected:
85 ~vtkCutMaterial() override;
86
88 vtkInformationVector*) override; // generate output data
92
95 char* ArrayName;
96 double UpVector[3];
97 double MaximumPoint[3];
98 double CenterPoint[3];
99 double Normal[3];
100
102
103private:
104 vtkCutMaterial(const vtkCutMaterial&) = delete;
105 void operator=(const vtkCutMaterial&) = delete;
106};
107
108#endif
Automatically computes the cut plane for a material array pair.
char * MaterialArrayName
vtkPlane * PlaneFunction
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~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:166
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
perform various plane computations
Definition: vtkPlane.h:143
Superclass for algorithms that produce only polydata as output.
@ Material
Definition: vtkX3D.h:44
@ Normal
Definition: vtkX3D.h:51
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453