VTK
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 "vtkFiltersGeneralModule.h" // For export macro
52 #include "vtkDataSetAlgorithm.h"
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 
72  static vtkCellDerivatives *New();
73 
75 
82  vtkSetMacro(VectorMode,int);
83  vtkGetMacro(VectorMode,int);
85  {this->SetVectorMode(VTK_VECTOR_MODE_PASS_VECTORS);};
87  {this->SetVectorMode(VTK_VECTOR_MODE_COMPUTE_GRADIENT);};
89  {this->SetVectorMode(VTK_VECTOR_MODE_COMPUTE_VORTICITY);};
90  const char *GetVectorModeAsString();
92 
94 
102  vtkSetMacro(TensorMode,int);
103  vtkGetMacro(TensorMode,int);
105  {this->SetTensorMode(VTK_TENSOR_MODE_PASS_TENSORS);};
107  {this->SetTensorMode(VTK_TENSOR_MODE_COMPUTE_GRADIENT);};
109  {this->SetTensorMode(VTK_TENSOR_MODE_COMPUTE_STRAIN);};
111  {this->SetTensorMode(VTK_TENSOR_MODE_COMPUTE_GREEN_LAGRANGE_STRAIN);};
112  const char *GetTensorModeAsString();
114 
115 protected:
117  ~vtkCellDerivatives() override {}
119 
122 private:
123  vtkCellDerivatives(const vtkCellDerivatives&) = delete;
124  void operator=(const vtkCellDerivatives&) = delete;
125 };
126 
127 #endif
VTK_TENSOR_MODE_COMPUTE_STRAIN
#define VTK_TENSOR_MODE_COMPUTE_STRAIN
Definition: vtkCellDerivatives.h:60
vtkCellDerivatives::TensorMode
int TensorMode
Definition: vtkCellDerivatives.h:121
VTK_TENSOR_MODE_COMPUTE_GREEN_LAGRANGE_STRAIN
#define VTK_TENSOR_MODE_COMPUTE_GREEN_LAGRANGE_STRAIN
Definition: vtkCellDerivatives.h:61
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
VTK_VECTOR_MODE_COMPUTE_VORTICITY
#define VTK_VECTOR_MODE_COMPUTE_VORTICITY
Definition: vtkCellDerivatives.h:56
vtkCellDerivatives::VectorMode
int VectorMode
Definition: vtkCellDerivatives.h:120
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:180
VTK_VECTOR_MODE_COMPUTE_GRADIENT
#define VTK_VECTOR_MODE_COMPUTE_GRADIENT
Definition: vtkCellDerivatives.h:55
vtkCellDerivatives::SetTensorModeToComputeStrain
void SetTensorModeToComputeStrain()
Definition: vtkCellDerivatives.h:108
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:48
vtkCellDerivatives::SetTensorModeToComputeGreenLagrangeStrain
void SetTensorModeToComputeGreenLagrangeStrain()
Definition: vtkCellDerivatives.h:110
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
VTK_TENSOR_MODE_COMPUTE_GRADIENT
#define VTK_TENSOR_MODE_COMPUTE_GRADIENT
Definition: vtkCellDerivatives.h:59
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkCellDerivatives::SetVectorModeToComputeGradient
void SetVectorModeToComputeGradient()
Definition: vtkCellDerivatives.h:86
vtkCellDerivatives::SetVectorModeToComputeVorticity
void SetVectorModeToComputeVorticity()
Definition: vtkCellDerivatives.h:88
VTK_VECTOR_MODE_PASS_VECTORS
#define VTK_VECTOR_MODE_PASS_VECTORS
Definition: vtkCellDerivatives.h:54
vtkCellDerivatives::SetTensorModeToPassTensors
void SetTensorModeToPassTensors()
Definition: vtkCellDerivatives.h:104
vtkCellDerivatives::SetVectorModeToPassVectors
void SetVectorModeToPassVectors()
Definition: vtkCellDerivatives.h:84
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
VTK_TENSOR_MODE_PASS_TENSORS
#define VTK_TENSOR_MODE_PASS_TENSORS
Definition: vtkCellDerivatives.h:58
vtkCellDerivatives::~vtkCellDerivatives
~vtkCellDerivatives() override
Definition: vtkCellDerivatives.h:117
vtkCellDerivatives::SetTensorModeToComputeGradient
void SetTensorModeToComputeGradient()
Definition: vtkCellDerivatives.h:106
vtkCellDerivatives
compute derivatives of scalars and vectors
Definition: vtkCellDerivatives.h:63