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 -------------------------------------------------------------------------*/
38 #ifndef vtkGeoAlignedImageSource_h
39 #define vtkGeoAlignedImageSource_h
40 
41 #include "vtkGeovisCoreModule.h" // For export macro
42 #include "vtkGeoSource.h"
43 
44 class vtkGeoImageNode;
45 class vtkImageData;
47 
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56  virtual bool FetchRoot(vtkGeoTreeNode* node);
57 
59  virtual bool FetchChild(vtkGeoTreeNode* parent, int index, vtkGeoTreeNode* child);
60 
62 
64  virtual void SetImage(vtkImageData* image);
66 
68 
69  vtkSetVector2Macro(LatitudeRange, double);
70  vtkGetVector2Macro(LatitudeRange, double);
71  vtkSetVector2Macro(LongitudeRange, double);
72  vtkGetVector2Macro(LongitudeRange, double);
74 
76 
77  vtkSetClampMacro(Overlap, double, 0.0, VTK_DOUBLE_MAX);
78  vtkGetMacro(Overlap, double);
80 
82 
83  vtkSetMacro(PowerOfTwoSize, bool);
84  vtkGetMacro(PowerOfTwoSize, bool);
85  vtkBooleanMacro(PowerOfTwoSize, bool);
87 
88 protected:
91 
93  int PowerOfTwo(int val);
94 
97  double LatitudeRange[2];
98  double LongitudeRange[2];
99  double Overlap;
101 
102  //BTX
103  class vtkProgressObserver;
105  //ETX
106 
107 private:
108  vtkGeoAlignedImageSource(const vtkGeoAlignedImageSource&); // Not implemented.
109  void operator=(const vtkGeoAlignedImageSource&); // Not implemented.
110 };
111 
112 #endif
vtkGeoAlignedImageSource::PowerOfTwoSize
bool PowerOfTwoSize
Definition: vtkGeoAlignedImageSource.h:100
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkSetVector2Macro
#define vtkSetVector2Macro(name, type)
Definition: vtkSetGet.h:254
vtkGeoAlignedImageSource::vtkGeoAlignedImageSource
vtkGeoAlignedImageSource()
vtkGetVector2Macro
#define vtkGetVector2Macro(name, type)
Definition: vtkSetGet.h:270
vtkGeoAlignedImageSource::~vtkGeoAlignedImageSource
~vtkGeoAlignedImageSource()
vtkGeovisCoreModule.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
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
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:51
vtkgl::val
GLuint GLfloat * val
Definition: vtkgl.h:13789
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkGeoAlignedImageSource::FetchChild
virtual bool FetchChild(vtkGeoTreeNode *parent, int index, vtkGeoTreeNode *child)
vtkGeoSource.h
vtkGeoAlignedImageSource::CropImageForNode
void CropImageForNode(vtkGeoImageNode *node, vtkImageData *image)
vtkGeoAlignedImageSource::ProgressObserver
vtkProgressObserver * ProgressObserver
Definition: vtkGeoAlignedImageSource.h:103
vtkGeoAlignedImageSource::LevelImages
vtkMultiBlockDataSet * LevelImages
Definition: vtkGeoAlignedImageSource.h:96
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGeoAlignedImageSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGeoAlignedImageSource
Splits hi-res image into tiles.
Definition: vtkGeoAlignedImageSource.h:49
vtkGeoAlignedImageSource::PowerOfTwo
int PowerOfTwo(int val)
vtkGeoAlignedImageSource::New
static vtkGeoAlignedImageSource * New()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
VTKGEOVISCORE_EXPORT
#define VTKGEOVISCORE_EXPORT
Definition: vtkGeovisCoreModule.h:15
vtkGeoAlignedImageSource::FetchRoot
virtual bool FetchRoot(vtkGeoTreeNode *node)
vtkGeoAlignedImageSource::Image
vtkImageData * Image
Definition: vtkGeoAlignedImageSource.h:95
vtkGeoAlignedImageSource::Overlap
double Overlap
Definition: vtkGeoAlignedImageSource.h:99
vtkProgressObserver
Basic class to optionally replace vtkAlgorithm progress functionality.
Definition: vtkProgressObserver.h:39
vtkGeoAlignedImageSource::SetImage
virtual void SetImage(vtkImageData *image)
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
vtkGeoSource
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:57
vtkgl::image
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: vtkgl.h:11341