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 =========================================================================*/
28 #ifndef vtkCutMaterial_h
29 #define vtkCutMaterial_h
30 
31 #include "vtkFiltersParallelModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 class vtkPlane;
35 
36 class VTKFILTERSPARALLEL_EXPORT vtkCutMaterial : public vtkPolyDataAlgorithm
37 {
38 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
41  static vtkCutMaterial* New();
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 
86 protected:
88  ~vtkCutMaterial() override;
89 
91  vtkInformationVector*) override; // generate output data
93  void ComputeMaximumPoint(vtkDataSet* input);
94  void ComputeNormal();
95 
97  int Material;
98  char* ArrayName;
99  double UpVector[3];
100  double MaximumPoint[3];
101  double CenterPoint[3];
102  double Normal[3];
103 
105 
106 private:
107  vtkCutMaterial(const vtkCutMaterial&) = delete;
108  void operator=(const vtkCutMaterial&) = delete;
109 };
110 
111 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
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:39
Automatically computes the cut plane for a material array pair.
perform various plane computations
Definition: vtkPlane.h:36
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.