ESA JPIP server  0.1
jpip::WOI Class Reference

Class that identifies a WOI (Window Of Interest). More...

#include <woi.h>

Collaboration diagram for jpip::WOI:

Public Member Functions

 WOI ()
 Initializes the resolution level to zero. More...
 
 WOI (const Point &position, const Size &size, int resolution)
 Initializes the object. More...
 
 WOI (const WOI &woi)
 Copy constructor. More...
 
WOIoperator= (const WOI &woi)
 Copy assignment. More...
 
virtual ~WOI ()
 

Public Attributes

Size size
 Size of the WOI (width and height) More...
 
Point position
 Position of the upper-left corner of the WOI. More...
 
int resolution
 Resolution level where the WOI is located (0 == the highest) More...
 

Friends

bool operator== (const WOI &a, const WOI &b)
 Returns true if the two given WOIs are equal. More...
 
bool operator!= (const WOI &a, const WOI &b)
 Returns true if the two given WOIs are not equal. More...
 
ostream & operator<< (ostream &out, const WOI &woi)
 

Detailed Description

Class that identifies a WOI (Window Of Interest).

This term refers, from the point of view of the JPIP protocol, to a rectangular region of an image, for a resolution level. This class can be printed.

See Also
Point

Constructor & Destructor Documentation

jpip::WOI::WOI ( )
inline

Initializes the resolution level to zero.

jpip::WOI::WOI ( const Point position,
const Size size,
int  resolution 
)
inline

Initializes the object.

Parameters
positionPosition of the WOI.
sizeSize of the WOI.
resolutionResolution level of the WOI.
jpip::WOI::WOI ( const WOI woi)
inline

Copy constructor.

virtual jpip::WOI::~WOI ( )
inlinevirtual

Member Function Documentation

WOI& jpip::WOI::operator= ( const WOI woi)
inline

Copy assignment.

Friends And Related Function Documentation

bool operator!= ( const WOI a,
const WOI b 
)
friend

Returns true if the two given WOIs are not equal.

ostream& operator<< ( ostream &  out,
const WOI woi 
)
friend
bool operator== ( const WOI a,
const WOI b 
)
friend

Returns true if the two given WOIs are equal.

Member Data Documentation

Point jpip::WOI::position

Position of the upper-left corner of the WOI.

int jpip::WOI::resolution

Resolution level where the WOI is located (0 == the highest)

Size jpip::WOI::size

Size of the WOI (width and height)


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