ParaView
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 "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
29 
30 class vtkFloatArray;
31 class vtkIdList;
32 
33 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkSurfaceVectors : public vtkDataSetAlgorithm
34 {
35 public:
36  vtkTypeMacro(vtkSurfaceVectors, vtkDataSetAlgorithm);
37  void PrintSelf(ostream& os, vtkIndent indent);
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:
69 
70  // Usual data generation method
71  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
72  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
73 
75 
76 private:
77  vtkSurfaceVectors(const vtkSurfaceVectors&) VTK_DELETE_FUNCTION;
78  void operator=(const vtkSurfaceVectors&) VTK_DELETE_FUNCTION;
79 };
80 
81 #endif
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.