WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
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

Referenced by ~SatUniFile().

◆ init()

int SatUniFile::init ( )

Initializes the class data

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)

Referenced by SatUniFile().

◆ read()

int SatUniFile::read ( Image & image)

Reads in a Unisys formatted image file

Return values
imageImage class to put satellite image

References readData(), and readHeader().

◆ 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(), and WXP::Image::setPixel().

Referenced by read().

◆ readHeader()

◆ rewind()

int SatUniFile::rewind ( )

Rewinds the file


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