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 =========================================================================*/
47 #ifndef vtkCellDerivatives_h
48 #define vtkCellDerivatives_h
49 
50 #include "vtkFiltersGeneralModule.h" // For export macro
51 #include "vtkDataSetAlgorithm.h"
52 
53 #define VTK_VECTOR_MODE_PASS_VECTORS 0
54 #define VTK_VECTOR_MODE_COMPUTE_GRADIENT 1
55 #define VTK_VECTOR_MODE_COMPUTE_VORTICITY 2
56 
57 #define VTK_TENSOR_MODE_PASS_TENSORS 0
58 #define VTK_TENSOR_MODE_COMPUTE_GRADIENT 1
59 #define VTK_TENSOR_MODE_COMPUTE_STRAIN 2
60 
62 {
63 public:
65  void PrintSelf(ostream& os, vtkIndent indent);
66 
68  static vtkCellDerivatives *New();
69 
71 
76  vtkSetMacro(VectorMode,int);
77  vtkGetMacro(VectorMode,int);
79  {this->SetVectorMode(VTK_VECTOR_MODE_PASS_VECTORS);};
81  {this->SetVectorMode(VTK_VECTOR_MODE_COMPUTE_GRADIENT);};
83  {this->SetVectorMode(VTK_VECTOR_MODE_COMPUTE_VORTICITY);};
84  const char *GetVectorModeAsString();
86 
88 
93  vtkSetMacro(TensorMode,int);
94  vtkGetMacro(TensorMode,int);
96  {this->SetTensorMode(VTK_TENSOR_MODE_PASS_TENSORS);};
98  {this->SetTensorMode(VTK_TENSOR_MODE_COMPUTE_GRADIENT);};
100  {this->SetTensorMode(VTK_TENSOR_MODE_COMPUTE_STRAIN);};
101  const char *GetTensorModeAsString();
103 
104 protected:
108 
111 private:
112  vtkCellDerivatives(const vtkCellDerivatives&); // Not implemented.
113  void operator=(const vtkCellDerivatives&); // Not implemented.
114 };
115 
116 #endif
void SetTensorModeToComputeGradient()
#define VTK_VECTOR_MODE_PASS_VECTORS
#define VTK_TENSOR_MODE_COMPUTE_GRADIENT
Store vtkAlgorithm input/output information.
#define VTK_TENSOR_MODE_PASS_TENSORS
void SetVectorModeToComputeGradient()
#define VTK_TENSOR_MODE_COMPUTE_STRAIN
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKFILTERSGENERAL_EXPORT
#define VTK_VECTOR_MODE_COMPUTE_VORTICITY
void SetVectorModeToComputeVorticity()
#define VTK_VECTOR_MODE_COMPUTE_GRADIENT
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
compute derivatives of scalars and vectors