VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Geovis
vtkGeoTransform.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGeoTransform.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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
30
#ifndef __vtkGeoTransform_h
31
#define __vtkGeoTransform_h
32
33
#include "
vtkAbstractTransform.h
"
34
35
class
vtkGeoProjection
;
36
37
class
VTK_GEOVIS_EXPORT
vtkGeoTransform
:
public
vtkAbstractTransform
38
{
39
public
:
40
static
vtkGeoTransform
*
New
();
41
virtual
void
PrintSelf
( ostream& os,
vtkIndent
indent );
42
vtkTypeMacro(
vtkGeoTransform
,
vtkAbstractTransform
);
43
45
46
void
SetSourceProjection(
vtkGeoProjection
*
source
);
47
vtkGetObjectMacro(SourceProjection,
vtkGeoProjection
);
49
51
52
void
SetDestinationProjection(
vtkGeoProjection
* dest);
53
vtkGetObjectMacro(DestinationProjection,
vtkGeoProjection
);
55
57
virtual
void
TransformPoints
(
vtkPoints
* src,
vtkPoints
* dst );
58
60
virtual
void
Inverse
();
61
63
65
virtual
void
InternalTransformPoint
(
const
float
in[3],
float
out[3] );
66
virtual
void
InternalTransformPoint
(
const
double
in[3],
double
out[3] );
68
70
74
virtual
void
InternalTransformDerivative
(
const
float
in[3],
float
out[3],
float
derivative[3][3] );
75
virtual
void
InternalTransformDerivative
(
const
double
in[3],
double
out[3],
double
derivative[3][3] );
77
79
virtual
vtkAbstractTransform
*
MakeTransform
();
80
81
protected
:
82
vtkGeoTransform
();
83
virtual
~
vtkGeoTransform
();
84
85
void
InternalTransformPoints(
double
* ptsInOut,
vtkIdType
numPts,
int
stride );
86
87
vtkGeoProjection
*
SourceProjection
;
88
vtkGeoProjection
*
DestinationProjection
;
89
90
private
:
91
vtkGeoTransform
(
const
vtkGeoTransform
& );
// Not implemented.
92
void
operator = (
const
vtkGeoTransform
& );
// Not implemented.
93
};
94
95
#endif // __vtkGeoTransform_h
Generated on Fri Aug 2 2013 12:19:48 for VTK by
1.8.4