vtkSurfaceVectors.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkSurfaceVectors_h
14 #define vtkSurfaceVectors_h
15 
16 #include "vtkDataSetAlgorithm.h"
17 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
18 
19 class vtkFloatArray;
20 class vtkIdList;
21 
23 {
24 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27  static vtkSurfaceVectors* New();
28 
30  {
31  Parallel = 0,
33  PerpendicularScale
34  };
35 
37 
42  vtkSetMacro(ConstraintMode, int);
43  vtkGetMacro(ConstraintMode, int);
44  void SetConstraintModeToParallel() { this->SetConstraintMode(vtkSurfaceVectors::Parallel); }
46  {
47  this->SetConstraintMode(vtkSurfaceVectors::Perpendicular);
48  }
50  {
51  this->SetConstraintMode(vtkSurfaceVectors::PerpendicularScale);
52  }
54 
55 protected:
57  ~vtkSurfaceVectors() override;
58 
59  // Usual data generation method
62 
64 
65 private:
66  vtkSurfaceVectors(const vtkSurfaceVectors&) = delete;
67  void operator=(const vtkSurfaceVectors&) = delete;
68 };
69 
70 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void SetConstraintModeToPerpendicularScale()
This mode determines whether this filter projects vectors to be perpendicular to surface or parallel ...
void SetConstraintModeToPerpendicular()
This mode determines whether this filter projects vectors to be perpendicular to surface or parallel ...
void SetConstraintModeToParallel()
This mode determines whether this filter projects vectors to be perpendicular to surface or parallel ...
Constrains vectors to surface.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void operator=(const vtkObjectBase &)
static vtkDataSetAlgorithm * New()