WXP C++ Library Version 6.74.9
|
This class reads and writes GIF files. More...
#include "../include/TiffFile.h"
Public Member Functions | |
TiffFile () | |
~TiffFile () | |
int | init () |
TiffFile (const char *filename, int access) | |
int | open (const char *filename, int access) |
bool | isOpen () |
int | close () |
int | read (Image &image) |
int | write (Image &image) |
This class reads and writes GIF files.
TiffFile::TiffFile | ( | ) |
Constructor. Initializes class values
References init().
TiffFile::~TiffFile | ( | ) |
Destuctor.
References close().
TiffFile::TiffFile | ( | const char * | filename, |
int | raccess | ||
) |
Constructor. Opens the GIF file
filename | The file to open |
raccess | The access (FileAttr::READ, FileAttr::WRITE) |
int TiffFile::close | ( | ) |
Closes the GIF file
References WXP::File::close().
Referenced by WXP::ImageFile::close(), and ~TiffFile().
int TiffFile::init | ( | ) |
Initializes the class values
Referenced by TiffFile(), and TiffFile().
bool TiffFile::isOpen | ( | ) |
int TiffFile::open | ( | const char * | filename, |
int | raccess | ||
) |
Opens the GIF file
filename | The file to open |
raccess | The access (FileAttr::READ, FileAttr::WRITE) |
References WXP::File::isOpen(), WXP::File::open(), WXP::FileAttr::READ, and WXP::FileAttr::WRITE.
Referenced by WXP::ImageFile::open(), WXP::SatFile::open(), and TiffFile().
int TiffFile::read | ( | Image & | image | ) |
Reads in a TIFF file and outputs data into an Image class
image | Output image class |
References WXP::Image::allocData(), WXP::DomainVal::clat, WXP::DomainVal::clon, WXP::DomainVal::dx, WXP::DomainVal::dy, WXP::DomainVal::ellipse, WXP::Image::init(), WXP::Swap::init(), WXP::EarthPoint::lat, WXP::Domain::LATLON, WXP::EarthPoint::lon, WXP::Domain::MERC, WXP::DomainVal::nx, WXP::DomainVal::ny, WXP::Wxp::outDebug(), WXP::Wxp::outWarning(), WXP::DomainVal::plat, WXP::DomainVal::plon, WXP::DomainVal::proj, WXP::File::read(), WXP::FileAttr::READ, WXP::File::seek(), WXP::Domain::set(), WXP::Point::set(), WXP::Image::setPixel(), WXP::File::tell(), and WXP::Domain::tran().
Referenced by WXP::SatFile::read(), and WXP::ImageFile::read().
int TiffFile::write | ( | Image & | image | ) |