tile_source.cpp
Go to the documentation of this file.
00001 // *****************************************************************************
00002 //
00003 // Copyright (c) 2015, Southwest Research Institute® (SwRI®)
00004 // All rights reserved.
00005 //
00006 // Redistribution and use in source and binary forms, with or without
00007 // modification, are permitted provided that the following conditions are met:
00008 //     * Redistributions of source code must retain the above copyright
00009 //       notice, this list of conditions and the following disclaimer.
00010 //     * Redistributions in binary form must reproduce the above copyright
00011 //       notice, this list of conditions and the following disclaimer in the
00012 //       documentation and/or other materials provided with the distribution.
00013 //     * Neither the name of Southwest Research Institute® (SwRI®) nor the
00014 //       names of its contributors may be used to endorse or promote products
00015 //       derived from this software without specific prior written permission.
00016 //
00017 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00018 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00019 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00020 // ARE DISCLAIMED. IN NO EVENT SHALL Southwest Research Institute® BE LIABLE 
00021 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
00022 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
00023 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
00024 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
00025 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
00026 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00027 // DAMAGE.
00028 //
00029 // *****************************************************************************
00030 
00031 #include <tile_map/tile_source.h>
00032 
00033 namespace tile_map
00034 {
00035   const QString& TileSource::GetBaseUrl() const
00036   {
00037     return base_url_;
00038   }
00039 
00040   void TileSource::SetBaseUrl(const QString& base_url)
00041   {
00042     base_url_ = base_url;
00043   }
00044 
00045   bool TileSource::IsCustom() const
00046   {
00047     return is_custom_;
00048   }
00049 
00050   void TileSource::SetCustom(bool is_custom)
00051   {
00052     is_custom_ = is_custom;
00053   }
00054 
00055   int32_t TileSource::GetMaxZoom() const
00056   {
00057     return max_zoom_;
00058   }
00059 
00060   void TileSource::SetMaxZoom(int32_t max_zoom)
00061   {
00062     max_zoom_ = max_zoom;
00063   }
00064 
00065   int32_t TileSource::GetMinZoom() const
00066   {
00067     return min_zoom_;
00068   }
00069 
00070   void TileSource::SetMinZoom(int32_t min_zoom)
00071   {
00072     min_zoom_ = min_zoom;
00073   }
00074 
00075   const QString& TileSource::GetName() const
00076   {
00077     return name_;
00078   }
00079 
00080   void TileSource::SetName(const QString& name)
00081   {
00082     name_ = name;
00083   }
00084 }


tile_map
Author(s): Marc Alban
autogenerated on Thu Aug 24 2017 02:46:24