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 =========================================================================*/
51 #ifndef vtkCellDerivatives_h
52 #define vtkCellDerivatives_h
53 
54 #include "vtkFiltersGeneralModule.h" // For export macro
55 #include "vtkDataSetAlgorithm.h"
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  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
71 
75  static vtkCellDerivatives *New();
76 
78 
85  vtkSetMacro(VectorMode,int);
86  vtkGetMacro(VectorMode,int);
88  {this->SetVectorMode(VTK_VECTOR_MODE_PASS_VECTORS);};
90  {this->SetVectorMode(VTK_VECTOR_MODE_COMPUTE_GRADIENT);};
92  {this->SetVectorMode(VTK_VECTOR_MODE_COMPUTE_VORTICITY);};
93  const char *GetVectorModeAsString();
95 
97 
105  vtkSetMacro(TensorMode,int);
106  vtkGetMacro(TensorMode,int);
108  {this->SetTensorMode(VTK_TENSOR_MODE_PASS_TENSORS);};
110  {this->SetTensorMode(VTK_TENSOR_MODE_COMPUTE_GRADIENT);};
112  {this->SetTensorMode(VTK_TENSOR_MODE_COMPUTE_STRAIN);};
114  {this->SetTensorMode(VTK_TENSOR_MODE_COMPUTE_GREEN_LAGRANGE_STRAIN);};
115  const char *GetTensorModeAsString();
117 
118 protected:
120  ~vtkCellDerivatives() VTK_OVERRIDE {}
122 
123  int VectorMode;
124  int TensorMode;
125 private:
126  vtkCellDerivatives(const vtkCellDerivatives&) VTK_DELETE_FUNCTION;
127  void operator=(const vtkCellDerivatives&) VTK_DELETE_FUNCTION;
128 };
129 
130 #endif
void SetTensorModeToComputeGradient()
Control how the filter works to generate tensor cell data.
#define VTK_VECTOR_MODE_PASS_VECTORS
#define VTK_TENSOR_MODE_COMPUTE_GRADIENT
~vtkCellDerivatives() override
Store vtkAlgorithm input/output information.
void SetTensorModeToComputeStrain()
Control how the filter works to generate tensor cell data.
void SetTensorModeToComputeGreenLagrangeStrain()
Control how the filter works to generate tensor cell data.
#define VTK_TENSOR_MODE_PASS_TENSORS
void SetVectorModeToComputeGradient()
Control how the filter works to generate vector cell data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_TENSOR_MODE_COMPUTE_STRAIN
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
#define VTK_TENSOR_MODE_COMPUTE_GREEN_LAGRANGE_STRAIN
#define VTK_VECTOR_MODE_COMPUTE_VORTICITY
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetVectorModeToComputeVorticity()
Control how the filter works to generate vector cell data.
void SetTensorModeToPassTensors()
Control how the filter works to generate tensor cell data.
#define VTK_VECTOR_MODE_COMPUTE_GRADIENT
Store zero or more vtkInformation instances.
void SetVectorModeToPassVectors()
Control how the filter works to generate vector cell data.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
compute derivatives of scalars and vectors