WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
WXP::SatUniFile Class Reference

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

#include "../include/SatUniFile.h"

Public Types

enum  Type { UNK , UNISYS }
 

Public Member Functions

 SatUniFile ()
 
 SatUniFile (const char *filename, int rtype)
 
 ~SatUniFile ()
 
int init ()
 
int open (const char *filename, 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 setMapRemove (int val)
 
int setBlackWhite (int val)
 
int setDomain (const char *str)
 
int setCalibration (const char *str)
 

Detailed Description

This class reads satellite imagery in Unisys format.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ SatUniFile() [1/2]

SatUniFile::SatUniFile ( )

Constructor. Initializes the class

References init().

◆ SatUniFile() [2/2]

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

Constructor. Opens the Unisys file

Parameters
filenameFile to open
rtypeType of Unisys file (UNISYS)

References init(), and open().

◆ ~SatUniFile()

SatUniFile::~SatUniFile ( )

Destructor

References close().

Member Function Documentation

◆ close()

int SatUniFile::close ( )

Closes the file

References WXP::File::close().

Referenced by ~SatUniFile().

◆ init()

int SatUniFile::init ( )

Initializes the class data

References WXP::String::init().

Referenced by SatUniFile(), and SatUniFile().

◆ isOpen()

bool SatUniFile::isOpen ( )

Is file open

Returns
True if open

◆ open()

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

Opens a satellite image file

Parameters
filenameFile to open
rtypeType of Unisys file (UNISYS)

References WXP::File::isOpen(), and WXP::File::open().

Referenced by WXP::SatFile::open(), and SatUniFile().

◆ read()

int SatUniFile::read ( Image image)

Reads in a Unisys formatted image file

Return values
imageImage class to put satellite image

References WXP::File::isOpen(), readData(), and readHeader().

Referenced by WXP::SatFile::read().

◆ readData()

int SatUniFile::readData ( Image image)

Reads in Unisys formatted image data

Return values
imageImage class to put satellite image

References WXP::Image::allocData(), WXP::Image::getPixel(), WXP::File::isOpen(), WXP::File::read(), WXP::Image::setPixel(), and WXP::File::tell().

Referenced by read().

◆ readHeader()

int SatUniFile::readHeader ( Image image)

◆ rewind()

int SatUniFile::rewind ( )

Rewinds the file

References WXP::File::rewind(), and WXP::File::skipLine().


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