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
33
34class vtkPlane;
35
36class VTKFILTERSPARALLEL_EXPORT vtkCutMaterial : public vtkPolyDataAlgorithm
37{
38public:
39 void PrintSelf(ostream& os, vtkIndent indent);
42
44
47 vtkSetStringMacro(MaterialArrayName);
48 vtkGetStringMacro(MaterialArrayName);
50
52
56 vtkGetMacro(Material, int);
58
60
64 vtkSetStringMacro(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
86protected:
89
90 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); //generate output data
94
97 char *ArrayName;
98 double UpVector[3];
99 double MaximumPoint[3];
100 double CenterPoint[3];
101 double Normal[3];
102
104
105private:
106 vtkCutMaterial(const vtkCutMaterial&) VTK_DELETE_FUNCTION;
107 void operator=(const vtkCutMaterial&) VTK_DELETE_FUNCTION;
108};
109
110#endif
Automatically computes the cut plane for a material array pair.
char * MaterialArrayName
vtkPlane * PlaneFunction
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void ComputeNormal()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void ComputeMaximumPoint(vtkDataSet *input)
static vtkCutMaterial * New()
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
perform various plane computations
Definition: vtkPlane.h:38
Superclass for algorithms that produce only polydata as output.
@ Material
Definition: vtkX3D.h:38
@ Normal
Definition: vtkX3D.h:45
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.