VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
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 "
vtkDataSetAlgorithm.h
"
51
52
#define VTK_VECTOR_MODE_PASS_VECTORS 0
53
#define VTK_VECTOR_MODE_COMPUTE_GRADIENT 1
54
#define VTK_VECTOR_MODE_COMPUTE_VORTICITY 2
55
56
#define VTK_TENSOR_MODE_PASS_TENSORS 0
57
#define VTK_TENSOR_MODE_COMPUTE_GRADIENT 1
58
#define VTK_TENSOR_MODE_COMPUTE_STRAIN 2
59
60
class
VTK_GRAPHICS_EXPORT
vtkCellDerivatives
:
public
vtkDataSetAlgorithm
61
{
62
public
:
63
vtkTypeMacro(
vtkCellDerivatives
,
vtkDataSetAlgorithm
);
64
void
PrintSelf
(ostream& os,
vtkIndent
indent);
65
67
static
vtkCellDerivatives
*
New
();
68
70
75
vtkSetMacro(VectorMode,
int
);
76
vtkGetMacro(VectorMode,
int
);
77
void
SetVectorModeToPassVectors
()
78
{this->SetVectorMode(
VTK_VECTOR_MODE_PASS_VECTORS
);};
79
void
SetVectorModeToComputeGradient
()
80
{this->SetVectorMode(
VTK_VECTOR_MODE_COMPUTE_GRADIENT
);};
81
void
SetVectorModeToComputeVorticity
()
82
{this->SetVectorMode(
VTK_VECTOR_MODE_COMPUTE_VORTICITY
);};
83
const
char
*GetVectorModeAsString();
85
87
92
vtkSetMacro(TensorMode,
int
);
93
vtkGetMacro(TensorMode,
int
);
94
void
SetTensorModeToPassTensors
()
95
{this->SetTensorMode(
VTK_TENSOR_MODE_PASS_TENSORS
);};
96
void
SetTensorModeToComputeGradient
()
97
{this->SetTensorMode(
VTK_TENSOR_MODE_COMPUTE_GRADIENT
);};
98
void
SetTensorModeToComputeStrain
()
99
{this->SetTensorMode(
VTK_TENSOR_MODE_COMPUTE_STRAIN
);};
100
const
char
*GetTensorModeAsString();
102
103
protected
:
104
vtkCellDerivatives
();
105
~vtkCellDerivatives
() {};
106
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
107
108
int
VectorMode
;
109
int
TensorMode
;
110
private
:
111
vtkCellDerivatives
(
const
vtkCellDerivatives
&);
// Not implemented.
112
void
operator=(
const
vtkCellDerivatives
&);
// Not implemented.
113
};
114
115
#endif
Generated on Fri Aug 2 2013 12:19:49 for VTK by
1.8.4