VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkGDALRasterReader Class Reference

Read raster file formats using GDAL. More...

#include <vtkGDALRasterReader.h>

Inheritance diagram for vtkGDALRasterReader:
Inheritance graph
[legend]
Collaboration diagram for vtkGDALRasterReader:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkImageReader2 Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkGDALRasterReaderNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
 vtkGDALRasterReader ()
virtual ~vtkGDALRasterReader ()
const char * GetProjectionString () const
const doubleGetGeoCornerPoints ()
double GetInvalidValue ()
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual void SetTargetDimensions (int, int)
void SetTargetDimensions (int[2])
virtual intGetTargetDimensions ()
virtual void GetTargetDimensions (int &, int &)
virtual void GetTargetDimensions (int[2])
virtual intGetRasterDimensions ()
virtual void GetRasterDimensions (int &, int &)
virtual void GetRasterDimensions (int[2])
const std::vector< std::string > & GetMetaData ()
std::vector< std::string > GetDomainMetaData (const std::string &domain)
const std::string & GetDriverShortName ()
const std::string & GetDriverLongName ()

Static Public Member Functions

static vtkGDALRasterReaderNew ()
static int IsTypeOf (const char *type)
static vtkGDALRasterReaderSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillOutputPortInformation (int port, vtkInformation *info)

Protected Attributes

int TargetDimensions [2]
int RasterDimensions [2]
std::string Projection
std::string DomainMetaData
std::string DriverShortName
std::string DriverLongName
std::vector< std::string > Domains
std::vector< std::string > MetaData
vtkGDALRasterReaderInternal * Implementation

Detailed Description

Read raster file formats using GDAL.

vtkGDALRasterReader is a source object that reads raster files and uses GDAL as the underlying library for the task. GDAL is required for this reader. The output of the reader is a vtkUniformGrid instead of vtkImageData to support blanking.

See also:
vtkUniformGrid, vtkImageData
Tests:
vtkGDALRasterReader (Tests)

Definition at line 41 of file vtkGDALRasterReader.h.


Member Typedef Documentation

Reimplemented from vtkImageReader2.

Definition at line 45 of file vtkGDALRasterReader.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkImageReader2.

static int vtkGDALRasterReader::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageReader2.

virtual int vtkGDALRasterReader::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageReader2.

Reimplemented from vtkImageReader2.

virtual vtkObjectBase* vtkGDALRasterReader::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkImageReader2.

Reimplemented from vtkImageReader2.

void vtkGDALRasterReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkImageReader2.

virtual void vtkGDALRasterReader::SetFileName ( const char *  ) [virtual]

Set input file name

Reimplemented from vtkImageReader2.

virtual char* vtkGDALRasterReader::GetFileName ( ) [virtual]

Set input file name

Reimplemented from vtkImageReader2.

Return proj4 spatial reference

Return geo-referenced corner points (Upper left, lower left, lower right, upper right)

virtual void vtkGDALRasterReader::SetTargetDimensions ( int  ,
int   
) [virtual]

Set desired width and height of the image

Set desired width and height of the image

Set desired width and height of the image

virtual void vtkGDALRasterReader::GetTargetDimensions ( int ,
int  
) [virtual]

Set desired width and height of the image

virtual void vtkGDALRasterReader::GetTargetDimensions ( int  [2]) [virtual]

Set desired width and height of the image

Get raster width and heigth

virtual void vtkGDALRasterReader::GetRasterDimensions ( int ,
int  
) [virtual]

Get raster width and heigth

virtual void vtkGDALRasterReader::GetRasterDimensions ( int  [2]) [virtual]

Get raster width and heigth

const std::vector<std::string>& vtkGDALRasterReader::GetMetaData ( )

Return metadata as reported by GDAL

Return the invalid value for a pixel (for blanking purposes)

std::vector<std::string> vtkGDALRasterReader::GetDomainMetaData ( const std::string &  domain)

Return domain metadata

Return driver name which was used to read the current data

Return driver name which was used to read the current data

virtual int vtkGDALRasterReader::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called in response to a REQUEST_DATA request from the executive. Subclasses should override either this method or the ExecuteDataWithInformation method in order to generate data for their outputs. For images, the output arrays will already be allocated, so all that is necessary is to fill in the voxel values.

Reimplemented from vtkImageAlgorithm.

virtual int vtkGDALRasterReader::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.

Reimplemented from vtkImageReader2.

virtual int vtkGDALRasterReader::FillOutputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

These method should be reimplemented by subclasses that have more than a single input or single output. See vtkAlgorithm for more information.

Reimplemented from vtkImageAlgorithm.


Member Data Documentation

Definition at line 113 of file vtkGDALRasterReader.h.

Definition at line 114 of file vtkGDALRasterReader.h.

std::string vtkGDALRasterReader::Projection [protected]

Definition at line 115 of file vtkGDALRasterReader.h.

std::string vtkGDALRasterReader::DomainMetaData [protected]

Definition at line 116 of file vtkGDALRasterReader.h.

std::string vtkGDALRasterReader::DriverShortName [protected]

Definition at line 117 of file vtkGDALRasterReader.h.

std::string vtkGDALRasterReader::DriverLongName [protected]

Definition at line 118 of file vtkGDALRasterReader.h.

std::vector<std::string> vtkGDALRasterReader::Domains [protected]

Definition at line 119 of file vtkGDALRasterReader.h.

std::vector<std::string> vtkGDALRasterReader::MetaData [protected]

Definition at line 120 of file vtkGDALRasterReader.h.

vtkGDALRasterReaderInternal* vtkGDALRasterReader::Implementation [protected]

Definition at line 122 of file vtkGDALRasterReader.h.


The documentation for this class was generated from the following file: