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 
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
VTK_TENSOR_MODE_COMPUTE_STRAIN
#define VTK_TENSOR_MODE_COMPUTE_STRAIN
Definition: vtkCellDerivatives.h:59
vtkCellDerivatives::GetVectorModeAsString
const char * GetVectorModeAsString()
vtkCellDerivatives::TensorMode
int TensorMode
Definition: vtkCellDerivatives.h:110
vtkCellDerivatives::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
VTK_VECTOR_MODE_COMPUTE_VORTICITY
#define VTK_VECTOR_MODE_COMPUTE_VORTICITY
Definition: vtkCellDerivatives.h:55
vtkCellDerivatives::VectorMode
int VectorMode
Definition: vtkCellDerivatives.h:109
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
VTK_VECTOR_MODE_COMPUTE_GRADIENT
#define VTK_VECTOR_MODE_COMPUTE_GRADIENT
Definition: vtkCellDerivatives.h:54
vtkCellDerivatives::vtkCellDerivatives
vtkCellDerivatives()
vtkCellDerivatives::SetTensorModeToComputeStrain
void SetTensorModeToComputeStrain()
Definition: vtkCellDerivatives.h:99
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:51
vtkCellDerivatives::New
static vtkCellDerivatives * New()
vtkFiltersGeneralModule.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTK_TENSOR_MODE_COMPUTE_GRADIENT
#define VTK_TENSOR_MODE_COMPUTE_GRADIENT
Definition: vtkCellDerivatives.h:58
vtkCellDerivatives::SetVectorModeToComputeGradient
void SetVectorModeToComputeGradient()
Definition: vtkCellDerivatives.h:80
vtkCellDerivatives::SetVectorModeToComputeVorticity
void SetVectorModeToComputeVorticity()
Definition: vtkCellDerivatives.h:82
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
VTK_VECTOR_MODE_PASS_VECTORS
#define VTK_VECTOR_MODE_PASS_VECTORS
Definition: vtkCellDerivatives.h:53
vtkCellDerivatives::SetTensorModeToPassTensors
void SetTensorModeToPassTensors()
Definition: vtkCellDerivatives.h:95
vtkCellDerivatives::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkCellDerivatives::GetTensorModeAsString
const char * GetTensorModeAsString()
vtkCellDerivatives::SetVectorModeToPassVectors
void SetVectorModeToPassVectors()
Definition: vtkCellDerivatives.h:78
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkDataSetAlgorithm.h
vtkCellDerivatives::~vtkCellDerivatives
~vtkCellDerivatives()
Definition: vtkCellDerivatives.h:106
VTK_TENSOR_MODE_PASS_TENSORS
#define VTK_TENSOR_MODE_PASS_TENSORS
Definition: vtkCellDerivatives.h:57
vtkCellDerivatives::SetTensorModeToComputeGradient
void SetTensorModeToComputeGradient()
Definition: vtkCellDerivatives.h:97
vtkCellDerivatives
compute derivatives of scalars and vectors
Definition: vtkCellDerivatives.h:62