vtkSurfaceVectors.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSurfaceVectors.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 =========================================================================*/
24 #ifndef vtkSurfaceVectors_h
25 #define vtkSurfaceVectors_h
26 
27 #include "vtkDataSetAlgorithm.h"
28 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
29 
30 class vtkFloatArray;
31 class vtkIdList;
32 
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38  static vtkSurfaceVectors* New();
39 
41  {
42  Parallel = 0,
44  PerpendicularScale
45  };
46 
48 
53  vtkSetMacro(ConstraintMode, int);
54  vtkGetMacro(ConstraintMode, int);
55  void SetConstraintModeToParallel() { this->SetConstraintMode(vtkSurfaceVectors::Parallel); }
57  {
58  this->SetConstraintMode(vtkSurfaceVectors::Perpendicular);
59  }
61  {
62  this->SetConstraintMode(vtkSurfaceVectors::PerpendicularScale);
63  }
65 
66 protected:
68  ~vtkSurfaceVectors() override;
69 
70  // Usual data generation method
73 
75 
76 private:
77  vtkSurfaceVectors(const vtkSurfaceVectors&) = delete;
78  void operator=(const vtkSurfaceVectors&) = delete;
79 };
80 
81 #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()