VTK
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 
90  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override; //generate output data
92  void ComputeMaximumPoint(vtkDataSet *input);
93  void ComputeNormal();
94 
96  int Material;
97  char *ArrayName;
98  double UpVector[3];
99  double MaximumPoint[3];
100  double CenterPoint[3];
101  double Normal[3];
102 
104 
105 private:
106  vtkCutMaterial(const vtkCutMaterial&) = delete;
107  void operator=(const vtkCutMaterial&) = delete;
108 };
109 
110 #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:37
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.