osgEarth 2.1.1
Public Types | Public Member Functions | Protected Attributes

osgEarth::Util::WMSLayer Class Reference

Inheritance diagram for osgEarth::Util::WMSLayer:
Collaboration diagram for osgEarth::Util::WMSLayer:

List of all members.

Public Types

typedef std::vector< WMSStyleStyleList
typedef std::vector< std::string > SRSList
typedef std::vector
< osg::ref_ptr< WMSLayer > > 
LayerList

Public Member Functions

 WMSLayer ()
const std::string & getName ()
void setName (const std::string &name)
const std::string & getTitle ()
void setTitle (const std::string &title)
const std::string & getAbstract ()
void setAbstract (const std::string &abstract)
void getLatLonExtents (double &minLon, double &minLat, double &maxLon, double &maxLat)
void setLatLonExtents (double minLon, double minLat, double maxLon, double maxLat)
void getExtents (double &minX, double &minY, double &maxX, double &maxY)
void setExtents (double minX, double minY, double maxX, double maxY)
StyleListgetStyles ()
SRSListgetSpatialReferences ()
LayerListgetLayers ()
WMSLayergetParentLayer ()
void setParentLayer (WMSLayer *layer)
WMSLayergetLayerByName (const std::string &name)

Protected Attributes

std::string _name
std::string _title
std::string _abstract
double _minLon
double _minLat
double _maxLon
double _maxLat
double _minX
double _minY
double _maxX
double _maxY
StyleList _styles
SRSList _spatialReferences
LayerList _layers
WMSLayer_parentLayer

Detailed Description

A WMS layer

Definition at line 77 of file WMS.


Member Typedef Documentation

typedef std::vector< osg::ref_ptr<WMSLayer> > osgEarth::Util::WMSLayer::LayerList

A list of Layers

Definition at line 150 of file WMS.

typedef std::vector<std::string> osgEarth::Util::WMSLayer::SRSList

A list of spatial references

Definition at line 142 of file WMS.

A list of Styles

Definition at line 134 of file WMS.


Constructor & Destructor Documentation

WMSLayer::WMSLayer ( )

Definition at line 53 of file WMS.cpp.

                  :
_minLon(0),
_minLat(0),
_maxLon(0),
_maxLat(0),
_minX(0),
_minY(0),
_maxX(0),
_maxY(0),
_parentLayer(0)
{
}

Member Function Documentation

const std::string& osgEarth::Util::WMSLayer::getAbstract ( ) [inline]

Gets the abstract of the layer

Definition at line 105 of file WMS.

{return _abstract;}
void WMSLayer::getExtents ( double &  minX,
double &  minY,
double &  maxX,
double &  maxY 
)

Gets the extents of the layer

Definition at line 82 of file WMS.cpp.

{
    minX = _minX;
    minY = _minY;
    maxX = _maxX;
    maxY = _maxY;
}

Here is the caller graph for this function:

void WMSLayer::getLatLonExtents ( double &  minLon,
double &  minLat,
double &  maxLon,
double &  maxLat 
)

Gets the lat lon extents of the layer

Definition at line 66 of file WMS.cpp.

{
    minLon = _minLon;
    minLat= _minLat;
    maxLon = _maxLon;
    maxLat = _maxLat;
}

Here is the caller graph for this function:

WMSLayer* osgEarth::Util::WMSLayer::getLayerByName ( const std::string &  name)

Finds the child Layer with the given name.

Returns:
The Layer with the given name or NULL if not found.

Here is the caller graph for this function:

LayerList& osgEarth::Util::WMSLayer::getLayers ( ) [inline]

Gets this Layer's list of child Layers

Definition at line 155 of file WMS.

{return _layers;}

Here is the caller graph for this function:

const std::string& osgEarth::Util::WMSLayer::getName ( ) [inline]

Gets the name of the layer

Definition at line 85 of file WMS.

{return _name;}
WMSLayer* osgEarth::Util::WMSLayer::getParentLayer ( ) [inline]

Gets this Layer's parent layer

Definition at line 160 of file WMS.

{return _parentLayer;}
SRSList& osgEarth::Util::WMSLayer::getSpatialReferences ( ) [inline]

Gets this Layer's list of spatial references

Definition at line 147 of file WMS.

Here is the caller graph for this function:

StyleList& osgEarth::Util::WMSLayer::getStyles ( ) [inline]

Gets this Layer's list of defined Styles

Definition at line 139 of file WMS.

{return _styles;}

Here is the caller graph for this function:

const std::string& osgEarth::Util::WMSLayer::getTitle ( ) [inline]

Gets the title of the layer

Definition at line 95 of file WMS.

{return _title;}
void osgEarth::Util::WMSLayer::setAbstract ( const std::string &  abstract) [inline]

Sets the abstract of the layer

Definition at line 110 of file WMS.

{_abstract = abstract;}

Here is the caller graph for this function:

void WMSLayer::setExtents ( double  minX,
double  minY,
double  maxX,
double  maxY 
)

Sets the extents of the layer

Definition at line 90 of file WMS.cpp.

{
    _minX = minX;
    _minY = minY;
    _maxX = maxX;
    _maxY = maxY;
}

Here is the caller graph for this function:

void WMSLayer::setLatLonExtents ( double  minLon,
double  minLat,
double  maxLon,
double  maxLat 
)

Sets the lat lon extents of the layer

Definition at line 74 of file WMS.cpp.

{
    _minLon = minLon;
    _minLat = minLat;
    _maxLon = maxLon;
    _maxLat = maxLat;
}

Here is the caller graph for this function:

void osgEarth::Util::WMSLayer::setName ( const std::string &  name) [inline]

Sets the name of the layer

Definition at line 90 of file WMS.

{_name = name;}

Here is the caller graph for this function:

void osgEarth::Util::WMSLayer::setParentLayer ( WMSLayer layer) [inline]

Sets this Layer's parent layer

Definition at line 165 of file WMS.

{_parentLayer = layer;}

Here is the caller graph for this function:

void osgEarth::Util::WMSLayer::setTitle ( const std::string &  title) [inline]

Sets the title of the layer

Definition at line 100 of file WMS.

{_title = title;}

Here is the caller graph for this function:


Member Data Documentation

std::string osgEarth::Util::WMSLayer::_abstract [protected]

Definition at line 176 of file WMS.

Definition at line 182 of file WMS.

Definition at line 177 of file WMS.

Definition at line 177 of file WMS.

double osgEarth::Util::WMSLayer::_maxX [protected]

Definition at line 178 of file WMS.

double osgEarth::Util::WMSLayer::_maxY [protected]

Definition at line 178 of file WMS.

Definition at line 177 of file WMS.

Definition at line 177 of file WMS.

double osgEarth::Util::WMSLayer::_minX [protected]

Definition at line 178 of file WMS.

double osgEarth::Util::WMSLayer::_minY [protected]

Definition at line 178 of file WMS.

std::string osgEarth::Util::WMSLayer::_name [protected]

Definition at line 174 of file WMS.

Definition at line 183 of file WMS.

Definition at line 180 of file WMS.

Definition at line 179 of file WMS.

std::string osgEarth::Util::WMSLayer::_title [protected]

Definition at line 175 of file WMS.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines