VTK  9.0.1
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
29 #include "vtkPolyDataAlgorithm.h"
30 
31 class vtkPlane;
32 
33 class VTKFILTERSPARALLEL_EXPORT vtkCutMaterial : public vtkPolyDataAlgorithm
34 {
35 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
38  static vtkCutMaterial* New();
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 
83 protected:
85  ~vtkCutMaterial() override;
86 
88  vtkInformationVector*) override; // generate output data
90  void ComputeMaximumPoint(vtkDataSet* input);
91  void ComputeNormal();
92 
94  int Material;
95  char* ArrayName;
96  double UpVector[3];
97  double MaximumPoint[3];
98  double CenterPoint[3];
99  double Normal[3];
100 
102 
103 private:
104  vtkCutMaterial(const vtkCutMaterial&) = delete;
105  void operator=(const vtkCutMaterial&) = delete;
106 };
107 
108 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
char * MaterialArrayName
vtkPlane * PlaneFunction
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
Automatically computes the cut plane for a material array pair.
perform various plane computations
Definition: vtkPlane.h:31
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.