Commit 781d1b5d authored by Aashish Chaudhary's avatar Aashish Chaudhary

Fixed various minor issues

Change-Id: Iee65eba1254d6b7c6ad16072641fd405bc34a874
parent 2de16eeb
......@@ -596,8 +596,39 @@ const double* vtkGDALRasterReader::vtkGDALRasterReaderInternal::GetGeoCornerPoin
}
//-----------------------------------------------------------------------------
vtkGDALRasterReader::vtkGDALRasterReader() :
FileName(0),
void vtkGDALRasterReader::PrintSelf(std::ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os,indent);
os << indent << "TargetDimensions: " <<
this->TargetDimensions[0] << indent << this->TargetDimensions[1] << "\n";
os << indent << "TargetDimensions: " <<
this->RasterDimensions[0] << indent << this->RasterDimensions[1] << "\n";
os << indent << "DomainMetaData: " << this->DomainMetaData << "\n";
os << indent << "DriverShortName: " << this->DriverShortName << "\n";
os << indent << "DriverLongName: " << this->DriverLongName << "\n";
if (!this->Domains.empty())
{
os << indent << "Domain" << "\n";
for (std::size_t i = 0; i < this->Domains.size(); ++i)
{
os << indent << this->Domains[i] << "\n";
}
}
if (!this->MetaData.empty())
{
os << indent << "MetaData" << "\n";
for (std::size_t i = 0; i < this->MetaData.size(); ++i)
{
os << indent << this->MetaData[i] << "\n";
}
}
}
//-----------------------------------------------------------------------------
vtkGDALRasterReader::vtkGDALRasterReader() : vtkImageReader2(),
Implementation(0)
{
this->Implementation = new vtkGDALRasterReaderInternal(this);
......
......@@ -38,6 +38,7 @@ class VTKIOGDAL_EXPORT vtkGDALRasterReader : public vtkImageReader2
public:
static vtkGDALRasterReader* New();
vtkTypeMacro(vtkGDALRasterReader, vtkImageReader2);
void PrintSelf(ostream& os, vtkIndent indent);
vtkGDALRasterReader();
virtual ~vtkGDALRasterReader();
......@@ -101,10 +102,6 @@ protected:
vtkInformation* info);
protected:
char* FileName;
double DataSpacing[3];
double DataOrigin[3];
int DataExtents[6];
int TargetDimensions[2];
int RasterDimensions[2];
std::string Projection;
......@@ -119,7 +116,7 @@ protected:
private:
vtkGDALRasterReader(const vtkGDALRasterReader&); // Not implemented.
vtkGDALRasterReader& operator=(const vtkGDALRasterReader&); // Not implemented.
void operator=(const vtkGDALRasterReader&); // Not implemented
};
#endif // __vtkGDALRasterReader_h
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment