VTK  9.2.6
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 =========================================================================*/
51 #ifndef vtkCellDerivatives_h
52 #define vtkCellDerivatives_h
53 
54 #include "vtkDataSetAlgorithm.h"
55 #include "vtkFiltersGeneralModule.h" // For export macro
56 
57 #define VTK_VECTOR_MODE_PASS_VECTORS 0
58 #define VTK_VECTOR_MODE_COMPUTE_GRADIENT 1
59 #define VTK_VECTOR_MODE_COMPUTE_VORTICITY 2
60 
61 #define VTK_TENSOR_MODE_PASS_TENSORS 0
62 #define VTK_TENSOR_MODE_COMPUTE_GRADIENT 1
63 #define VTK_TENSOR_MODE_COMPUTE_STRAIN 2
64 #define VTK_TENSOR_MODE_COMPUTE_GREEN_LAGRANGE_STRAIN 3
65 
66 class VTKFILTERSGENERAL_EXPORT vtkCellDerivatives : public vtkDataSetAlgorithm
67 {
68 public:
70 
74  void PrintSelf(ostream& os, vtkIndent indent) override;
76 
81 
83 
90  vtkSetMacro(VectorMode, int);
91  vtkGetMacro(VectorMode, int);
95  const char* GetVectorModeAsString();
97 
99 
107  vtkSetMacro(TensorMode, int);
108  vtkGetMacro(TensorMode, int);
113  {
115  }
116  const char* GetTensorModeAsString();
118 
119 protected:
121  ~vtkCellDerivatives() override = default;
123 
126 
127 private:
128  vtkCellDerivatives(const vtkCellDerivatives&) = delete;
129  void operator=(const vtkCellDerivatives&) = delete;
130 };
131 
132 #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 SetTensorModeToComputeGradient()
Control how the filter works to generate tensor cell data.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
const char * GetVectorModeAsString()
Control how the filter works to generate vector cell data.
void SetVectorModeToPassVectors()
Control how the filter works to generate vector cell data.
void SetTensorModeToPassTensors()
Control how the filter works to generate tensor cell data.
void SetVectorModeToComputeGradient()
Control how the filter works to generate vector cell data.
void SetTensorModeToComputeGreenLagrangeStrain()
Control how the filter works to generate tensor cell data.
static vtkCellDerivatives * New()
Construct to compute the gradient of the scalars and vectors.
void SetTensorModeToComputeStrain()
Control how the filter works to generate tensor cell data.
const char * GetTensorModeAsString()
Control how the filter works to generate tensor cell data.
~vtkCellDerivatives() override=default
void SetVectorModeToComputeVorticity()
Control how the filter works to generate vector cell data.
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
Definition: vtkIndent.h:119
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