tile_source.cpp
Go to the documentation of this file.
1 // *****************************************************************************
2 //
3 // Copyright (c) 2015, Southwest Research Institute® (SwRI®)
4 // All rights reserved.
5 //
6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are met:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of Southwest Research Institute® (SwRI®) nor the
14 // names of its contributors may be used to endorse or promote products
15 // derived from this software without specific prior written permission.
16 //
17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 // ARE DISCLAIMED. IN NO EVENT SHALL Southwest Research Institute® BE LIABLE
21 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
27 // DAMAGE.
28 //
29 // *****************************************************************************
30 
31 #include <tile_map/tile_source.h>
32 
33 namespace tile_map
34 {
35  const QString& TileSource::GetBaseUrl() const
36  {
37  return base_url_;
38  }
39 
40  void TileSource::SetBaseUrl(const QString& base_url)
41  {
42  base_url_ = base_url;
43  }
44 
45  bool TileSource::IsCustom() const
46  {
47  return is_custom_;
48  }
49 
50  void TileSource::SetCustom(bool is_custom)
51  {
52  is_custom_ = is_custom;
53  }
54 
55  int32_t TileSource::GetMaxZoom() const
56  {
57  return max_zoom_;
58  }
59 
60  void TileSource::SetMaxZoom(int32_t max_zoom)
61  {
62  max_zoom_ = max_zoom;
63  }
64 
65  int32_t TileSource::GetMinZoom() const
66  {
67  return min_zoom_;
68  }
69 
70  void TileSource::SetMinZoom(int32_t min_zoom)
71  {
72  min_zoom_ = min_zoom;
73  }
74 
75  const QString& TileSource::GetName() const
76  {
77  return name_;
78  }
79 
80  void TileSource::SetName(const QString& name)
81  {
82  name_ = name;
83  }
84 }
virtual void SetMinZoom(int32_t min_zoom)
Definition: tile_source.cpp:70
virtual void SetBaseUrl(const QString &base_url)
Definition: tile_source.cpp:40
virtual void SetMaxZoom(int32_t max_zoom)
Definition: tile_source.cpp:60
virtual void SetCustom(bool is_custom)
Definition: tile_source.cpp:50
virtual const QString & GetBaseUrl() const
Definition: tile_source.cpp:35
virtual void SetName(const QString &name)
Definition: tile_source.cpp:80
virtual bool IsCustom() const
Definition: tile_source.cpp:45
virtual const QString & GetName() const
Definition: tile_source.cpp:75
virtual int32_t GetMaxZoom() const
Definition: tile_source.cpp:55
virtual int32_t GetMinZoom() const
Definition: tile_source.cpp:65


tile_map
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 19:25:35