VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
vtkWarpScalar.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkWarpScalar.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
=========================================================================*/
43
#ifndef __vtkWarpScalar_h
44
#define __vtkWarpScalar_h
45
46
#include "
vtkPointSetAlgorithm.h
"
47
48
class
vtkDataArray
;
49
50
class
VTK_GRAPHICS_EXPORT
vtkWarpScalar
:
public
vtkPointSetAlgorithm
51
{
52
public
:
53
static
vtkWarpScalar
*
New
();
54
vtkTypeMacro(
vtkWarpScalar
,
vtkPointSetAlgorithm
);
55
void
PrintSelf
(ostream& os,
vtkIndent
indent);
56
58
59
vtkSetMacro(ScaleFactor,
double
);
60
vtkGetMacro(ScaleFactor,
double
);
62
64
66
vtkSetMacro(UseNormal,
int
);
67
vtkGetMacro(UseNormal,
int
);
68
vtkBooleanMacro(UseNormal,
int
);
70
72
74
vtkSetVector3Macro(
Normal
,
double
);
75
vtkGetVectorMacro(
Normal
,
double
,3);
77
79
83
vtkSetMacro(XYPlane,
int
);
84
vtkGetMacro(XYPlane,
int
);
85
vtkBooleanMacro(XYPlane,
int
);
87
88
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
89
90
protected
:
91
vtkWarpScalar
();
92
~
vtkWarpScalar
();
93
94
int
RequestDataObject
(
vtkInformation
*request,
95
vtkInformationVector
**inputVector,
96
vtkInformationVector
*outputVector);
97
int
RequestData
(
vtkInformation
*,
98
vtkInformationVector
**,
99
vtkInformationVector
*);
100
101
double
ScaleFactor
;
102
int
UseNormal
;
103
double
Normal
[3];
104
int
XYPlane
;
105
106
//BTX
107
double
*(
vtkWarpScalar
::*
PointNormal
)(
vtkIdType
id
,
vtkDataArray
*normals);
108
double
*DataNormal(
vtkIdType
id
,
vtkDataArray
*normals=NULL);
109
double
*InstanceNormal(
vtkIdType
id
,
vtkDataArray
*normals=NULL);
110
double
*ZNormal(
vtkIdType
id
,
vtkDataArray
*normals=NULL);
111
//ETX
112
113
private
:
114
vtkWarpScalar
(
const
vtkWarpScalar
&);
// Not implemented.
115
void
operator=(
const
vtkWarpScalar
&);
// Not implemented.
116
};
117
118
#endif
Generated on Tue Jan 8 2013 05:45:32 for VTK by
1.8.1.2