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 =========================================================================*/
27 #ifndef __vtkCutMaterial_h
28 #define __vtkCutMaterial_h
29 
30 #include "vtkPolyDataAlgorithm.h"
31 
32 class vtkPlane;
33 
35 {
36 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
39  static vtkCutMaterial *New();
40 
42 
43  vtkSetStringMacro(MaterialArrayName);
44  vtkGetStringMacro(MaterialArrayName);
46 
48 
49  vtkSetMacro(Material, int);
50  vtkGetMacro(Material, int);
52 
54 
55  vtkSetStringMacro(ArrayName);
56  vtkGetStringMacro(ArrayName);
58 
60 
61  vtkSetVector3Macro(UpVector, double);
62  vtkGetVector3Macro(UpVector, double);
64 
66 
68  vtkGetVector3Macro(MaximumPoint, double);
69  vtkGetVector3Macro(CenterPoint, double);
70  vtkGetVector3Macro(Normal, double);
72 
73 protected:
75  ~vtkCutMaterial();
76 
77  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); //generate output data
79  void ComputeMaximumPoint(vtkDataSet *input);
80  void ComputeNormal();
81 
83  int Material;
84  char *ArrayName;
85  double UpVector[3];
86  double MaximumPoint[3];
87  double CenterPoint[3];
88  double Normal[3];
89 
91 
92 private:
93  vtkCutMaterial(const vtkCutMaterial&); // Not implemented.
94  void operator=(const vtkCutMaterial&); // Not implemented.
95 };
96 
97 #endif
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
char * MaterialArrayName
vtkPlane * PlaneFunction
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:37
Automatically computes the cut plane for a material array pair.
perform various plane computations
Definition: vtkPlane.h:35
#define VTK_PARALLEL_EXPORT
Store zero or more vtkInformation instances.