HDF4_RASTER Class Reference

#include <mi32/hdf4.h>

Inheritance diagram for HDF4_RASTER:
Inheritance graph
[legend]

List of all members.

Classes

class  INFO

Public Types

enum  INTERLACE { INTERLACE_Pixel = 0, INTERLACE_Line = 1, INTERLACE_Component = 2 }

Public Member Functions

 HDF4_RASTER ()
virtual ~HDF4_RASTER ()
void Close ()
virtual int FindAttrib (const char *name) const
virtual ERRVALUE GetAttrib (int index, HDF4_ATTRIB &attrib) const
ERRVALUE GetInfo (INFO &info) const
virtual ERRVALUE GetName (HDF4_NAME &name) const
virtual int GetNumAttribs () const
ERRVALUE Open (const HDF4_FILE &file, int index)
ERRVALUE Read (INT32 ystart, INT32 xstart, INT32 ycount, INT32 xcount, void *buffer) const
ERRVALUE SetInterlace (INTERLACE interlace)

Member Enumeration Documentation

Enumerator:
INTERLACE_Pixel 
INTERLACE_Line 
INTERLACE_Component 

Constructor & Destructor Documentation

HDF4_RASTER::HDF4_RASTER (  ) 

Default constructor.

virtual HDF4_RASTER::~HDF4_RASTER (  )  [virtual]

Destructor.


Member Function Documentation

void HDF4_RASTER::Close (  ) 

Close raster.

virtual int HDF4_RASTER::FindAttrib ( const char *  name  )  const [virtual]

Find attribute index by name.

Returns:
Attribute index, -1 if not found, < -1 if error.
Parameters:
name Attribute name to search for

Implements HDF4_OBJECT.

virtual ERRVALUE HDF4_RASTER::GetAttrib ( int  index,
HDF4_ATTRIB attrib 
) const [virtual]

Get specific attribute.

Parameters:
index Attribute index within raster
attrib Attribute instance returned

Implements HDF4_OBJECT.

ERRVALUE HDF4_RASTER::GetInfo ( INFO info  )  const

Get raster information.

Parameters:
info Information container returned.
virtual ERRVALUE HDF4_RASTER::GetName ( HDF4_NAME name  )  const [virtual]

Get object name.

Parameters:
name Name returned

Implements HDF4_OBJECT.

virtual int HDF4_RASTER::GetNumAttribs (  )  const [virtual]

Get number of attributes in this object.

Implements HDF4_OBJECT.

ERRVALUE HDF4_RASTER::Open ( const HDF4_FILE file,
int  index 
)

Open raster.

ERRVALUE HDF4_RASTER::Read ( INT32  ystart,
INT32  xstart,
INT32  ycount,
INT32  xcount,
void *  buffer 
) const

Read from raster.

Note, this will read all components, so allow for that in buffer.

Parameters:
ystart Starting Y (line) coordinate
xstart Starting X (column) coordinate
ycount Number of Y pixels (lines) to read
xcount Number of X pixels (columns) to read
buffer Buffer to read into
ERRVALUE HDF4_RASTER::SetInterlace ( INTERLACE  interlace  ) 

Set interlace mode for reading.


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

Generated on Sun Oct 7 21:33:30 2012 for TNTsdk 2012 by  doxygen 1.6.1