HydroCouple  2.0.0
HydroCouple Interface Definitions
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
HydroCouple::Spatial::IRaster Class Referenceabstract

A Raster spatial feature. More...

#include <hydrocouplespatial.h>

Inheritance diagram for HydroCouple::Spatial::IRaster:
Collaboration diagram for HydroCouple::Spatial::IRaster:

Public Types

enum  RasterDataType {
  Unknown ,
  Byte ,
  UInt16 ,
  Int16 ,
  UInt32 ,
  Int32 ,
  Float32 ,
  Float64 ,
  CInt16 ,
  CInt32 ,
  CFloat32 ,
  CFloat64 ,
  ARGB32 ,
  ARGB32_Premultiplied
}
 The data type associated with a raster. More...
 

Public Member Functions

virtual ~IRaster ()=0
 IRaster destructor.
 
virtual int xSize () const =0
 Number of pixels in the x direction.
 
virtual int ySize () const =0
 Number of pixels in y direction.
 
virtual int rasterBandCount () const =0
 Number of raster bands.
 
virtual void addRasterBand (RasterDataType dataType)=0
 Adds a new IRasterBand.
 
virtual ISpatialReferenceSystemspatialReferenceSystem () const =0
 The ISpatialReferenceSystem represents the spatial reference system of goemetric object.
 
virtual void geoTransformation (double *transformationMatrix)=0
 Fetches the affine transformation coefficients. It is an array of size 6.
 
virtual IRasterBandgetRasterBand (int bandIndex) const =0
 Gets the IRasterBand for the band with index bandIndex.
 
- Public Member Functions inherited from HydroCouple::IIdentity
virtual ~IIdentity ()=default
 IIdentity::~IIdentity is a virtual destructor.
 
virtual string id () const =0
 Gets a unique identifier for the entity.
 
- Public Member Functions inherited from HydroCouple::IDescription
virtual ~IDescription ()=default
 IDescription::~IDescription is a virtual destructor.
 
virtual string caption () const =0
 Gets caption for the entity.
 
virtual void setCaption (const string &caption)=0
 Sets caption for the entity.
 
virtual string description () const =0
 Gets additional descriptive information for the entity.
 
virtual void setDescription (const string &description)=0
 Gets additional descriptive information for the entity.
 
- Public Member Functions inherited from HydroCouple::IPropertyChanged
virtual ~IPropertyChanged ()=default
 IPropertyChanged::~IPropertyChanged is a virtual destructor.
 
- Public Member Functions inherited from HydroCouple::ISignal< string >
virtual ~ISignal ()=default
 ISignal::~ISignal is a virtual destructor.
 
virtual void connect (const shared_ptr< ISlot< Args... > > &slot)=0
 connect is used to connect a slot to the signal.
 
virtual void disconnect (const shared_ptr< ISlot< Args... > > &slot)=0
 disconnect is used to disconnect a slot from the signal.
 
virtual void blockSignals (bool block)=0
 blockSignals is used to block signals from being emitted.
 

Additional Inherited Members

- Protected Member Functions inherited from HydroCouple::ISignal< string >
virtual void emit (Args... args)=0
 emit is used to emit the signal.
 

Detailed Description

A Raster spatial feature.

Member Enumeration Documentation

◆ RasterDataType

The data type associated with a raster.

Enumerator
Unknown 

Unknown or unspecified type.

Byte 

Eight bit unsigned integer.

UInt16 

Sixteen bit unsigned integer.

Int16 

Sixteen bit signed integer.

UInt32 

Thirty two bit unsigned integer.

Int32 

Thirty two bit signed integer.

Float32 

Thirty two bit floating point.

Float64 

Sixty four bit floating point.

CInt16 

Complex Int16.

CInt32 

Complex Int32.

CFloat32 

Complex Float32.

CFloat64 

Complex Float64.

ARGB32 

Color, alpha, red, green, blue, 4 bytes the same as QImage::Format_ARGB32.

ARGB32_Premultiplied 

Color, alpha, red, green, blue, 4 bytes the same as QImage::Format_ARGB32_Premultiplied.

Constructor & Destructor Documentation

◆ ~IRaster()

virtual HydroCouple::Spatial::IRaster::~IRaster ( )
pure virtual

IRaster destructor.

Member Function Documentation

◆ addRasterBand()

virtual void HydroCouple::Spatial::IRaster::addRasterBand ( RasterDataType  dataType)
pure virtual

Adds a new IRasterBand.

◆ geoTransformation()

virtual void HydroCouple::Spatial::IRaster::geoTransformation ( double *  transformationMatrix)
pure virtual

Fetches the affine transformation coefficients. It is an array of size 6.

Fetches the coefficients for transforming between pixel/line (P,L) raster space, and projection coordinates (Xp,Yp) space. Xp = transformationMatrix[0] + P*transformationMatrix[1] + L*transformationMatrix[2]; Yp = transformationMatrix[3] + P*transformationMatrix[4] + L*transformationMatrix[5]; In a north up image, transformationMatrix[1] is the pixel width, and transformationMatrix[5] is the pixel height. The upper left corner of the upper left pixel is at position (transformationMatrix[0],transformationMatrix[3]).

◆ getRasterBand()

virtual IRasterBand * HydroCouple::Spatial::IRaster::getRasterBand ( int  bandIndex) const
pure virtual

Gets the IRasterBand for the band with index bandIndex.

◆ rasterBandCount()

virtual int HydroCouple::Spatial::IRaster::rasterBandCount ( ) const
pure virtual

Number of raster bands.

◆ spatialReferenceSystem()

virtual ISpatialReferenceSystem * HydroCouple::Spatial::IRaster::spatialReferenceSystem ( ) const
pure virtual

The ISpatialReferenceSystem represents the spatial reference system of goemetric object.

◆ xSize()

virtual int HydroCouple::Spatial::IRaster::xSize ( ) const
pure virtual

Number of pixels in the x direction.

◆ ySize()

virtual int HydroCouple::Spatial::IRaster::ySize ( ) const
pure virtual

Number of pixels in y direction.


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