VTK  9.0.2
vtkCellDerivatives.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCellDerivatives.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 =========================================================================*/
48 #ifndef vtkCellDerivatives_h
49 #define vtkCellDerivatives_h
50 
51 #include "vtkDataSetAlgorithm.h"
52 #include "vtkFiltersGeneralModule.h" // For export macro
53 
54 #define VTK_VECTOR_MODE_PASS_VECTORS 0
55 #define VTK_VECTOR_MODE_COMPUTE_GRADIENT 1
56 #define VTK_VECTOR_MODE_COMPUTE_VORTICITY 2
57 
58 #define VTK_TENSOR_MODE_PASS_TENSORS 0
59 #define VTK_TENSOR_MODE_COMPUTE_GRADIENT 1
60 #define VTK_TENSOR_MODE_COMPUTE_STRAIN 2
61 #define VTK_TENSOR_MODE_COMPUTE_GREEN_LAGRANGE_STRAIN 3
62 
63 class VTKFILTERSGENERAL_EXPORT vtkCellDerivatives : public vtkDataSetAlgorithm
64 {
65 public:
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
73 
75 
82  vtkSetMacro(VectorMode, int);
83  vtkGetMacro(VectorMode, int);
87  const char* GetVectorModeAsString();
89 
91 
99  vtkSetMacro(TensorMode, int);
100  vtkGetMacro(TensorMode, int);
105  {
107  }
108  const char* GetTensorModeAsString();
110 
111 protected:
113  ~vtkCellDerivatives() override {}
115 
118 
119 private:
120  vtkCellDerivatives(const vtkCellDerivatives&) = delete;
121  void operator=(const vtkCellDerivatives&) = delete;
122 };
123 
124 #endif
compute derivatives of scalars and vectors
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetVectorModeAsString()
void SetVectorModeToComputeGradient()
void SetTensorModeToComputeGreenLagrangeStrain()
static vtkCellDerivatives * New()
Construct to compute the gradient of the scalars and vectors.
const char * GetTensorModeAsString()
~vtkCellDerivatives() override
void SetVectorModeToComputeVorticity()
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_TENSOR_MODE_COMPUTE_GRADIENT
#define VTK_VECTOR_MODE_COMPUTE_VORTICITY
#define VTK_TENSOR_MODE_PASS_TENSORS
#define VTK_VECTOR_MODE_COMPUTE_GRADIENT
#define VTK_TENSOR_MODE_COMPUTE_GREEN_LAGRANGE_STRAIN
#define VTK_VECTOR_MODE_PASS_VECTORS
#define VTK_TENSOR_MODE_COMPUTE_STRAIN