VTK
vtkGeoAssignCoordinates.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGeoAssignCoordinates.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-------------------------------------------------------------------------*/
38#ifndef vtkGeoAssignCoordinates_h
39#define vtkGeoAssignCoordinates_h
40
41#include "vtkGeovisCoreModule.h" // For export macro
43
45
46class VTKGEOVISCORE_EXPORT vtkGeoAssignCoordinates : public vtkPassInputTypeAlgorithm
47{
48public:
50
52 void PrintSelf(ostream& os, vtkIndent indent);
53
55
58 vtkSetStringMacro(LongitudeArrayName);
59 vtkGetStringMacro(LongitudeArrayName);
61
63
66 vtkSetStringMacro(LatitudeArrayName);
67 vtkGetStringMacro(LatitudeArrayName);
69
71
75 vtkSetMacro(GlobeRadius, double);
76 vtkGetMacro(GlobeRadius, double);
78
80
85 virtual void SetTransform(vtkAbstractTransform* trans);
86 vtkGetObjectMacro(Transform, vtkAbstractTransform);
88
90
96 vtkSetMacro(CoordinatesInArrays, bool);
97 vtkGetMacro(CoordinatesInArrays, bool);
98 vtkBooleanMacro(CoordinatesInArrays, bool);
100
101protected:
104
107
108private:
109
110 char* LongitudeArrayName;
111 char* LatitudeArrayName;
112 double GlobeRadius;
113 bool CoordinatesInArrays;
115
116 vtkGeoAssignCoordinates(const vtkGeoAssignCoordinates&) VTK_DELETE_FUNCTION;
117 void operator=(const vtkGeoAssignCoordinates&) VTK_DELETE_FUNCTION;
118};
119
120#endif
121
superclass for all geometric transformations
Given latitude and longitude arrays, take the values in those arrays and convert them to x,...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkGeoAssignCoordinates * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetTransform(vtkAbstractTransform *trans)
The transform to use to convert coordinates of the form (lat, long, 0) to (x, y z).
int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
Transform
Definition: ADIOSDefs.h:40
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.