VTK
|
Read raster file formats using GDAL. More...
#include <vtkGDALRasterReader.h>
Public Types | |
typedef vtkImageReader2 | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkGDALRasterReader * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkGDALRasterReader () | |
virtual | ~vtkGDALRasterReader () |
const char * | GetProjectionString () const |
const double * | GetGeoCornerPoints () |
double | GetInvalidValue () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetTargetDimensions (int, int) |
void | SetTargetDimensions (int[2]) |
virtual int * | GetTargetDimensions () |
virtual void | GetTargetDimensions (int &, int &) |
virtual void | GetTargetDimensions (int[2]) |
virtual int * | GetRasterDimensions () |
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 vtkGDALRasterReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkGDALRasterReader * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () 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 |
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.
Definition at line 41 of file vtkGDALRasterReader.h.
Reimplemented from vtkImageReader2.
Definition at line 45 of file vtkGDALRasterReader.h.
virtual vtkGDALRasterReader::~vtkGDALRasterReader | ( | ) | [virtual] |
static vtkGDALRasterReader* vtkGDALRasterReader::New | ( | ) | [static] |
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.
static vtkGDALRasterReader* vtkGDALRasterReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
const char* vtkGDALRasterReader::GetProjectionString | ( | ) | const |
Return proj4 spatial reference
const double* vtkGDALRasterReader::GetGeoCornerPoints | ( | ) |
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
void vtkGDALRasterReader::SetTargetDimensions | ( | int | [2] | ) |
Set desired width and height of the image
virtual int* vtkGDALRasterReader::GetTargetDimensions | ( | ) | [virtual] |
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
virtual int* vtkGDALRasterReader::GetRasterDimensions | ( | ) | [virtual] |
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
const std::string& vtkGDALRasterReader::GetDriverShortName | ( | ) |
Return driver name which was used to read the current data
const std::string& vtkGDALRasterReader::GetDriverLongName | ( | ) |
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.
int vtkGDALRasterReader::TargetDimensions[2] [protected] |
Definition at line 113 of file vtkGDALRasterReader.h.
int vtkGDALRasterReader::RasterDimensions[2] [protected] |
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.