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 class VTKGEOVISCORE_EXPORT vtkGeoAlignedImageSource : public vtkGeoSource
44 {
45 public:
46  static vtkGeoAlignedImageSource *New();
48  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 
53  bool FetchRoot(vtkGeoTreeNode* node) VTK_OVERRIDE;
54 
58  bool FetchChild(vtkGeoTreeNode* parent, int index, vtkGeoTreeNode* child) VTK_OVERRIDE;
59 
61 
64  vtkGetObjectMacro(Image, vtkImageData);
65  virtual void SetImage(vtkImageData* image);
67 
69 
72  vtkSetVector2Macro(LatitudeRange, double);
73  vtkGetVector2Macro(LatitudeRange, double);
74  vtkSetVector2Macro(LongitudeRange, double);
75  vtkGetVector2Macro(LongitudeRange, double);
77 
79 
82  vtkSetClampMacro(Overlap, double, 0.0, VTK_DOUBLE_MAX);
83  vtkGetMacro(Overlap, double);
85 
87 
90  vtkSetMacro(PowerOfTwoSize, bool);
91  vtkGetMacro(PowerOfTwoSize, bool);
92  vtkBooleanMacro(PowerOfTwoSize, bool);
94 
95 protected:
97  ~vtkGeoAlignedImageSource() VTK_OVERRIDE;
98 
99  void CropImageForNode(vtkGeoImageNode* node, vtkImageData* image);
100  int PowerOfTwo(int val);
101 
102  vtkImageData* Image;
103  vtkMultiBlockDataSet* LevelImages;
104  double LatitudeRange[2];
105  double LongitudeRange[2];
106  double Overlap;
107  bool PowerOfTwoSize;
108 
110  vtkProgressObserver* ProgressObserver;
111 
112 private:
113  vtkGeoAlignedImageSource(const vtkGeoAlignedImageSource&) VTK_DELETE_FUNCTION;
114  void operator=(const vtkGeoAlignedImageSource&) VTK_DELETE_FUNCTION;
115 };
116 
117 #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:167
A node in a multi-resolution image tree.
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:54
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:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Stores data for a patch of the globe.
Composite dataset that organizes datasets into blocks.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
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.