VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGeoAssignCoordinates.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00037 #ifndef __vtkGeoAssignCoordinates_h 00038 #define __vtkGeoAssignCoordinates_h 00039 00040 #include "vtkGeovisCoreModule.h" // For export macro 00041 #include "vtkPassInputTypeAlgorithm.h" 00042 00043 class vtkAbstractTransform; 00044 00045 class VTKGEOVISCORE_EXPORT vtkGeoAssignCoordinates : public vtkPassInputTypeAlgorithm 00046 { 00047 public: 00048 static vtkGeoAssignCoordinates *New(); 00049 00050 vtkTypeMacro(vtkGeoAssignCoordinates, vtkPassInputTypeAlgorithm); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00054 00055 vtkSetStringMacro(LongitudeArrayName); 00056 vtkGetStringMacro(LongitudeArrayName); 00058 00060 00061 vtkSetStringMacro(LatitudeArrayName); 00062 vtkGetStringMacro(LatitudeArrayName); 00064 00066 00067 vtkSetMacro(GlobeRadius, double); 00068 vtkGetMacro(GlobeRadius, double); 00070 00072 00075 virtual void SetTransform(vtkAbstractTransform* trans); 00076 vtkGetObjectMacro(Transform, vtkAbstractTransform); 00078 00080 00083 vtkSetMacro(CoordinatesInArrays, bool); 00084 vtkGetMacro(CoordinatesInArrays, bool); 00085 vtkBooleanMacro(CoordinatesInArrays, bool); 00087 00088 protected: 00089 vtkGeoAssignCoordinates(); 00090 ~vtkGeoAssignCoordinates(); 00091 00092 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00093 int FillInputPortInformation(int port, vtkInformation* info); 00094 00095 private: 00096 00097 char* LongitudeArrayName; 00098 char* LatitudeArrayName; 00099 double GlobeRadius; 00100 bool CoordinatesInArrays; 00101 vtkAbstractTransform* Transform; 00102 00103 vtkGeoAssignCoordinates(const vtkGeoAssignCoordinates&); // Not implemented. 00104 void operator=(const vtkGeoAssignCoordinates&); // Not implemented. 00105 }; 00106 00107 #endif 00108