Rok4Server  0.25.4
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Private Attributes | List of all members
LegendURL Class Reference

Legends handler for the capabilities documents. More...

#include <LegendURL.h>

Inheritance diagram for LegendURL:
Inheritance graph
Collaboration diagram for LegendURL:
Collaboration graph

Public Member Functions

 LegendURL (std::string format, std::string href, int width, int height, double minScaleDenominator, double maxScaleDenominator)
 Create a LegendURL.
 LegendURL (const LegendURL &origLUrl)
 Copy Constructor.
LegendURLoperator= (LegendURL const &other)
 Assignement.
bool operator== (const LegendURL &other) const
 Test whether 2 LegendURLs are equals.
bool operator!= (const LegendURL &other) const
 Test whether 2 LegendURLs are different.
int getWidth ()
 Return the image width.
int getHeight ()
 Return the image height.
double getMinScaleDenominator ()
 Return the minimum scale.
double getMaxScaleDenominator ()
 Return the maximum scale.
virtual ~LegendURL ()
 Default destructor.
- Public Member Functions inherited from ResourceLocator
 ResourceLocator (std::string format, std::string href)
 Create a ResourceLocator.
 ResourceLocator (const ResourceLocator &origRL)
 Copy Constructor.
ResourceLocatoroperator= (ResourceLocator const &other)
 Assignement.
bool operator== (const ResourceLocator &other) const
 Test whether 2 ResourceLocators are equals.
bool operator!= (const ResourceLocator &other) const
 Test whether 2 ResourceLocators are different.
const std::string getFormat () const
 Return the linked file mime type.
const std::string getHRef () const
 Return the file link in URL format.
virtual ~ResourceLocator ()
 Default destructor.

Private Attributes

int width
 Image width.
int height
 Image height.
double minScaleDenominator
 Minimum scale at which the legend is applicable.
double maxScaleDenominator
 Maximum scale at which the legend is applicable.

Detailed Description

Legends handler for the capabilities documents.

Author
Institut national de l'information géographique et forestière

A LegendURL represent a LegendURL element in the differents capabilities documents.

Constructor & Destructor Documentation

LegendURL::LegendURL ( std::string  format,
std::string  href,
int  width,
int  height,
double  minScaleDenominator,
double  maxScaleDenominator 
)

Create a LegendURL.

Parameters
[in]formatimage format (see ResourceLocator::format)
[in]hreflink to the legend image (see ResourceLocator::href)
[in]widthimage width
[in]heightimage height
[in]minScaleDenominatorminimum scale at which the legend is applicable
[in]maxScaleDenominatormaximum scale at which the legend is applicable
LegendURL::LegendURL ( const LegendURL origLUrl)

Copy Constructor.

Create a LegendURL from another

Parameters
[in]origLUrlLegendURL to copy

Member Function Documentation

int LegendURL::getHeight ( )
inline

Return the image height.

Returns
height

Here is the caller graph for this function:

double LegendURL::getMaxScaleDenominator ( )
inline

Return the maximum scale.

Returns
maximum scale

Here is the caller graph for this function:

double LegendURL::getMinScaleDenominator ( )
inline

Return the minimum scale.

Returns
minimum scale

Here is the caller graph for this function:

int LegendURL::getWidth ( )
inline

Return the image width.

Returns
width

Here is the caller graph for this function:

bool LegendURL::operator!= ( const LegendURL other) const

Test whether 2 LegendURLs are different.

Returns
true if one of their attributes is different
bool LegendURL::operator== ( const LegendURL other) const

Test whether 2 LegendURLs are equals.

Returns
true if all their attributes are identical

Here is the call graph for this function:


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