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 
22 class VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT vtkSurfaceVectors : public vtkDataSetAlgorithm
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
vtkObjectBase::operator=
void operator=(const vtkObjectBase &)
vtkSurfaceVectors::PerpendicularScale
@ PerpendicularScale
Definition: vtkSurfaceVectors.h:33
vtkFloatArray
vtkInformationVector
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkSurfaceVectors::SetConstraintModeToPerpendicularScale
void SetConstraintModeToPerpendicularScale()
This mode determines whether this filter projects vectors to be perpendicular to surface or parallel ...
Definition: vtkSurfaceVectors.h:49
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSurfaceVectors::ConstraintMode
ConstraintMode
Definition: vtkSurfaceVectors.h:29
vtkSurfaceVectors::ConstraintMode
int ConstraintMode
Definition: vtkSurfaceVectors.h:63
vtkDataSetAlgorithm
vtkSurfaceVectors::SetConstraintModeToParallel
void SetConstraintModeToParallel()
This mode determines whether this filter projects vectors to be perpendicular to surface or parallel ...
Definition: vtkSurfaceVectors.h:44
vtkSurfaceVectors::SetConstraintModeToPerpendicular
void SetConstraintModeToPerpendicular()
This mode determines whether this filter projects vectors to be perpendicular to surface or parallel ...
Definition: vtkSurfaceVectors.h:45
vtkIndent
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkIdList
vtkInformation
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSurfaceVectors
Constrains vectors to surface.
Definition: vtkSurfaceVectors.h:22
vtkSurfaceVectors::Parallel
@ Parallel
Definition: vtkSurfaceVectors.h:31
vtkSurfaceVectors::Perpendicular
@ Perpendicular
Definition: vtkSurfaceVectors.h:32