VTK
vtkGeoAlignedImageSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoAlignedImageSource.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 -------------------------------------------------------------------------*/
33 #ifndef vtkGeoAlignedImageSource_h
34 #define vtkGeoAlignedImageSource_h
35 
36 #include "vtkGeovisCoreModule.h" // For export macro
37 #include "vtkGeoSource.h"
38 
39 class vtkGeoImageNode;
40 class vtkImageData;
42 
43 #if !defined(VTK_LEGACY_REMOVE)
44 class VTKGEOVISCORE_EXPORT vtkGeoAlignedImageSource : public vtkGeoSource
45 {
46 public:
47  static vtkGeoAlignedImageSource *New();
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
54  bool FetchRoot(vtkGeoTreeNode* node) override;
55 
59  bool FetchChild(vtkGeoTreeNode* parent, int index, vtkGeoTreeNode* child) override;
60 
62 
65  vtkGetObjectMacro(Image, vtkImageData);
66  virtual void SetImage(vtkImageData* image);
68 
70 
73  vtkSetVector2Macro(LatitudeRange, double);
74  vtkGetVector2Macro(LatitudeRange, double);
75  vtkSetVector2Macro(LongitudeRange, double);
76  vtkGetVector2Macro(LongitudeRange, double);
78 
80 
83  vtkSetClampMacro(Overlap, double, 0.0, VTK_DOUBLE_MAX);
84  vtkGetMacro(Overlap, double);
86 
88 
91  vtkSetMacro(PowerOfTwoSize, bool);
92  vtkGetMacro(PowerOfTwoSize, bool);
93  vtkBooleanMacro(PowerOfTwoSize, bool);
95 
96 protected:
98  ~vtkGeoAlignedImageSource() override;
99 
100  void CropImageForNode(vtkGeoImageNode* node, vtkImageData* image);
101  int PowerOfTwo(int val);
102 
105  double LatitudeRange[2];
106  double LongitudeRange[2];
107  double Overlap;
109 
112 
113 private:
115  void operator=(const vtkGeoAlignedImageSource&) = delete;
116 };
117 
118 #endif //VTK_LEGACY_REMOVE
119 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
A node in a multi-resolution image tree.
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:55
virtual bool FetchChild(vtkGeoTreeNode *node, int index, vtkGeoTreeNode *child)=0
Blocking access methods to be implemented in subclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkProgressObserver * ProgressObserver
Stores data for a patch of the globe.
Composite dataset that organizes datasets into blocks.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkMultiBlockDataSet * LevelImages
Splits hi-res image into tiles.
virtual bool FetchRoot(vtkGeoTreeNode *root)=0
Blocking access methods to be implemented in subclasses.
Basic class to optionally replace vtkAlgorithm progress functionality.