OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | List of all members
ossimWmsScaleHint Class Reference

#include <ossimWms.h>

Inheritance diagram for ossimWmsScaleHint:
ossimReferenced

Public Member Functions

virtual bool read (ossimRefPtr< ossimXmlNode > node)
 
void clearFields ()
 
void getMinMax (double &min, double &max)
 
double getMin () const
 
double getMax () const
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 

Protected Attributes

double theMin
 
double theMax
 

Additional Inherited Members

- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 245 of file ossimWms.h.

Member Function Documentation

◆ clearFields()

void ossimWmsScaleHint::clearFields ( )
inline

Definition at line 250 of file ossimWms.h.

251  {
252  theMin = 0.0;
253  theMax = 0.0;
254  }

◆ getMax()

double ossimWmsScaleHint::getMax ( ) const
inline

Definition at line 264 of file ossimWms.h.

265  {
266  return theMax;
267  }

◆ getMin()

double ossimWmsScaleHint::getMin ( ) const
inline

Definition at line 260 of file ossimWms.h.

261  {
262  return theMin;
263  }

◆ getMinMax()

void ossimWmsScaleHint::getMinMax ( double &  min,
double &  max 
)
inline

Definition at line 255 of file ossimWms.h.

References max, and min.

256  {
257  min = theMin;
258  max = theMax;
259  }
#define max(a, b)
Definition: auxiliary.h:76
#define min(a, b)
Definition: auxiliary.h:75

◆ read()

bool ossimWmsScaleHint::read ( ossimRefPtr< ossimXmlNode node)
virtual

Definition at line 182 of file ossimWms.cpp.

References ossimXmlNode::getAttributeValue(), theMax, theMin, and ossimString::toDouble().

Referenced by ossimWmsLayer::read().

183 {
184  ossimString minScale, maxScale;
185 
186  if(node->getAttributeValue(minScale, "min")&&
187  node->getAttributeValue(maxScale, "max"))
188  {
189 
190  theMin = minScale.toDouble();
191  theMax = maxScale.toDouble();
192 
193  return true;
194  }
195 
196  return false;
197 }
bool getAttributeValue(ossimString &value, const ossimString &name) const
double toDouble() const

Member Data Documentation

◆ theMax

double ossimWmsScaleHint::theMax
protected

Definition at line 270 of file ossimWms.h.

Referenced by read().

◆ theMin

double ossimWmsScaleHint::theMin
protected

Definition at line 269 of file ossimWms.h.

Referenced by read().


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