VTK  9.1.0
vtkDeflectNormals.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDeflectNormals.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 vtkDeflectNormals_h
26#define vtkDeflectNormals_h
27
28#include "vtkDataSetAlgorithm.h"
29#include "vtkFiltersGeneralModule.h" // For export macro
30
31class VTKFILTERSGENERAL_EXPORT vtkDeflectNormals : public vtkDataSetAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
43 vtkSetMacro(ScaleFactor, double);
44 vtkGetMacro(ScaleFactor, double);
46
48
52 vtkSetVector3Macro(UserNormal, double);
53 vtkGetVector3Macro(UserNormal, double);
55
57
61 vtkSetMacro(UseUserNormal, bool);
62 vtkGetMacro(UseUserNormal, bool);
63 vtkBooleanMacro(UseUserNormal, bool);
65
66protected:
69
71
72 double ScaleFactor = 1.0;
73 double UserNormal[3] = { 0.0, 0.0, 1.0 };
74 bool UseUserNormal = false;
75
76private:
77 vtkDeflectNormals(const vtkDeflectNormals&) = delete;
78 void operator=(const vtkDeflectNormals&) = delete;
79};
80
81#endif
Superclass for algorithms that produce output of the same type as input.
deflect normals using a 3 component vector field
static vtkDeflectNormals * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
~vtkDeflectNormals() override
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.