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=========================================================================*/
27
28#ifndef vtkDeflectNormals_h
29#define vtkDeflectNormals_h
30
31#include "vtkDataSetAlgorithm.h"
32#include "vtkFiltersGeneralModule.h" // For export macro
33
34class VTKFILTERSGENERAL_EXPORT vtkDeflectNormals : public vtkDataSetAlgorithm
35{
36public:
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
69protected:
72
74
75 double ScaleFactor = 1.0;
76 double UserNormal[3] = { 0.0, 0.0, 1.0 };
77 bool UseUserNormal = false;
78
79private:
80 vtkDeflectNormals(const vtkDeflectNormals&) = delete;
81 void operator=(const vtkDeflectNormals&) = delete;
82};
83
84#endif
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.