WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::GiniFile Class Reference

This class reads satellite imagery in GINI format. More...

#include "../include/GiniFile.h"

Public Types

enum  Type { UNK , GINI , GINIZ , GINIP }

Public Member Functions

 GiniFile ()
 GiniFile (const char *filename, int rtype)
 ~GiniFile ()
int init ()
int open (const char *filename, int rtype)
int open (const char *filename, int raccess, int rtype)
bool isOpen ()
int rewind ()
int close ()
int getHeader (Image &data)
int read (Image &data)
int readHeader (Image &data)
int readData (Image &data)
int write (Image &data)
int writeHeader (Image &data)
int writeData (Image &data)

Detailed Description

This class reads satellite imagery in GINI format.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ GiniFile() [1/2]

GiniFile::GiniFile ( )

Constructor. Initializes the class

References init().

◆ GiniFile() [2/2]

GiniFile::GiniFile ( const char * filename,
int rtype )

Constructor. Opens the GINI file

Parameters
filenameFile to open
rtypeType of GINI file (GINI, GINIZ)

References init(), and open().

◆ ~GiniFile()

GiniFile::~GiniFile ( )

Destructor

References close().

Member Function Documentation

◆ close()

int GiniFile::close ( )

Closes the file

Referenced by readHeader(), and ~GiniFile().

◆ init()

int GiniFile::init ( )

Initializes the class data

References WXP::FileAttr::READ.

Referenced by GiniFile(), and GiniFile().

◆ isOpen()

bool GiniFile::isOpen ( )

Is file open

Returns
True if open

◆ open()

int GiniFile::open ( const char * filename,
int rtype )

Opens a satellite image file

Parameters
filenameFile to open
rtypeType of GINI file (GINI, GINIZ)

Referenced by GiniFile().

◆ read()

int GiniFile::read ( Image & image)

Reads in a GINI formatted image file

Return values
imageImage class to put satellite image

References readData(), and readHeader().

◆ readData()

int GiniFile::readData ( Image & image)

Reads in GINI formatted image data

Return values
imageImage class to put satellite image

References WXP::Image::allocData(), WXP::Wxp::isDebug(), WXP::Wxp::outDebug(), WXP::Image::setPixel(), and WXP::Zlib::STREAM_END.

Referenced by read().

◆ readHeader()

◆ rewind()

int GiniFile::rewind ( )

Rewinds the file

◆ write()

int GiniFile::write ( Image & image)

Writes in a GINI formatted image file

Return values
imageImage class to put satellite image

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