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 
46 #if !defined(VTK_LEGACY_REMOVE)
47 class VTKGEOVISCORE_EXPORT vtkGeoAssignCoordinates : public vtkPassInputTypeAlgorithm
48 {
49 public:
50  static vtkGeoAssignCoordinates *New();
51 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
59  vtkSetStringMacro(LongitudeArrayName);
60  vtkGetStringMacro(LongitudeArrayName);
62 
64 
67  vtkSetStringMacro(LatitudeArrayName);
68  vtkGetStringMacro(LatitudeArrayName);
70 
72 
76  vtkSetMacro(GlobeRadius, double);
77  vtkGetMacro(GlobeRadius, double);
79 
81 
86  virtual void SetTransform(vtkAbstractTransform* trans);
87  vtkGetObjectMacro(Transform, vtkAbstractTransform);
89 
91 
97  vtkSetMacro(CoordinatesInArrays, bool);
98  vtkGetMacro(CoordinatesInArrays, bool);
99  vtkBooleanMacro(CoordinatesInArrays, bool);
101 
102 protected:
104  ~vtkGeoAssignCoordinates() override;
105 
107  int FillInputPortInformation(int port, vtkInformation* info) override;
108 
109 private:
110 
111  char* LongitudeArrayName;
112  char* LatitudeArrayName;
113  double GlobeRadius;
114  bool CoordinatesInArrays;
116 
118  void operator=(const vtkGeoAssignCoordinates&) = delete;
119 };
120 
121 #endif //VTK_LEGACY_REMOVE
122 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:39
Given latitude and longitude arrays, take the values in those arrays and convert them to x...
superclass for all geometric transformations
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()
Transform
Definition: ADIOSDefs.h:40