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 -------------------------------------------------------------------------*/
36 #ifndef vtkGeoAlignedImageSource_h
37 #define vtkGeoAlignedImageSource_h
38 
39 #include "vtkGeovisCoreModule.h" // For export macro
40 #include "vtkGeoSource.h"
41 
42 class vtkGeoImageNode;
43 class vtkImageData;
45 
46 class VTKGEOVISCORE_EXPORT vtkGeoAlignedImageSource : public vtkGeoSource
47 {
48 public:
49  static vtkGeoAlignedImageSource *New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
56  virtual bool FetchRoot(vtkGeoTreeNode* node);
57 
61  virtual bool FetchChild(vtkGeoTreeNode* parent, int index, vtkGeoTreeNode* child);
62 
64 
67  vtkGetObjectMacro(Image, vtkImageData);
68  virtual void SetImage(vtkImageData* image);
70 
72 
75  vtkSetVector2Macro(LatitudeRange, double);
76  vtkGetVector2Macro(LatitudeRange, double);
77  vtkSetVector2Macro(LongitudeRange, double);
78  vtkGetVector2Macro(LongitudeRange, double);
80 
82 
85  vtkSetClampMacro(Overlap, double, 0.0, VTK_DOUBLE_MAX);
86  vtkGetMacro(Overlap, double);
88 
90 
93  vtkSetMacro(PowerOfTwoSize, bool);
94  vtkGetMacro(PowerOfTwoSize, bool);
95  vtkBooleanMacro(PowerOfTwoSize, bool);
97 
98 protected:
101 
102  void CropImageForNode(vtkGeoImageNode* node, vtkImageData* image);
103  int PowerOfTwo(int val);
104 
107  double LatitudeRange[2];
108  double LongitudeRange[2];
109  double Overlap;
111 
114 
115 private:
116  vtkGeoAlignedImageSource(const vtkGeoAlignedImageSource&) VTK_DELETE_FUNCTION;
117  void operator=(const vtkGeoAlignedImageSource&) VTK_DELETE_FUNCTION;
118 };
119 
120 #endif
vtkGeoAlignedImageSource::PowerOfTwoSize
bool PowerOfTwoSize
Definition: vtkGeoAlignedImageSource.h:110
vtkGeoSource::FetchRoot
virtual bool FetchRoot(vtkGeoTreeNode *root)=0
Blocking access methods to be implemented in subclasses.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkX3D::image
@ image
Definition: vtkX3D.h:374
vtkGeoTreeNode
Stores data for a patch of the globe.
Definition: vtkGeoTreeNode.h:46
vtkGeoImageNode
A node in a multi-resolution image tree.
Definition: vtkGeoImageNode.h:43
vtkGeoSource::FetchChild
virtual bool FetchChild(vtkGeoTreeNode *node, int index, vtkGeoTreeNode *child)=0
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:51
vtkGeoSource.h
vtkGeoAlignedImageSource::ProgressObserver
vtkProgressObserver * ProgressObserver
Definition: vtkGeoAlignedImageSource.h:112
vtkGeoAlignedImageSource::LevelImages
vtkMultiBlockDataSet * LevelImages
Definition: vtkGeoAlignedImageSource.h:106
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGeoAlignedImageSource
Splits hi-res image into tiles.
Definition: vtkGeoAlignedImageSource.h:46
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGeoAlignedImageSource::Image
vtkImageData * Image
Definition: vtkGeoAlignedImageSource.h:105
vtkGeoAlignedImageSource::Overlap
double Overlap
Definition: vtkGeoAlignedImageSource.h:109
vtkProgressObserver
Basic class to optionally replace vtkAlgorithm progress functionality.
Definition: vtkProgressObserver.h:36
vtkX3D::index
@ index
Definition: vtkX3D.h:246
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
vtkGeoSource
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:57