VTK  9.2.6
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 =========================================================================*/
28 #ifndef vtkDeflectNormals_h
29 #define vtkDeflectNormals_h
30 
31 #include "vtkDataSetAlgorithm.h"
32 #include "vtkFiltersGeneralModule.h" // For export macro
33 
34 class VTKFILTERSGENERAL_EXPORT vtkDeflectNormals : public vtkDataSetAlgorithm
35 {
36 public:
37  static vtkDeflectNormals* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkSetMacro(ScaleFactor, double);
47  vtkGetMacro(ScaleFactor, double);
49 
51 
55  vtkSetVector3Macro(UserNormal, double);
56  vtkGetVector3Macro(UserNormal, double);
58 
60 
64  vtkSetMacro(UseUserNormal, bool);
65  vtkGetMacro(UseUserNormal, bool);
66  vtkBooleanMacro(UseUserNormal, bool);
68 
69 protected:
71  ~vtkDeflectNormals() override;
72 
74 
75  double ScaleFactor = 1.0;
76  double UserNormal[3] = { 0.0, 0.0, 1.0 };
77  bool UseUserNormal = false;
78 
79 private:
80  vtkDeflectNormals(const vtkDeflectNormals&) = delete;
81  void operator=(const vtkDeflectNormals&) = delete;
82 };
83 
84 #endif
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
deflect normals using a 3 component vector field
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()