Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
renderer_map.h
Go to the documentation of this file.
1//
2// Copyright (c) 2023, DefenceX PTY LTD
3//
4// This file is part of the VivoeX project developed by DefenceX.
5//
6// Licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
7// License. See the LICENSE file in the project root for full license details.
8//
12
13#ifndef HMICORE_RENDERER_MAP_H_
14#define HMICORE_RENDERER_MAP_H_
15
16#include <cairo.h>
17#include <osmscout/Database.h>
18#include <osmscoutmap/MapService.h>
19#include <osmscoutmapcairo/MapPainterCairo.h>
20
21#include <iostream>
22#include <list>
23#include <memory>
24#include <string>
25
26#include "hmicore/gva.h"
27
28namespace gva {
29
32 public:
41 rendererMap(std::string_view map, std::string_view style, int width, int height);
42
48
55 rendererMap &operator=(const rendererMap &a) = delete;
56
63 rendererMap const &operator=(rendererMap &&a) = delete;
64
74 GvaStatusTypes Project(double zoom, double lon, double lat, cairo_surface_t **surface);
75
81 void SetHeight(int height) { height_ = height; }
82
88 void SetWidth(int width) { width_ = width; }
89
90 private:
92 int width_;
94 int height_;
96 std::string map_;
98 std::string style_;
100 osmscout::MapServiceRef mapService_;
102 osmscout::StyleConfigRef styleConfig_;
104 osmscout::DatabaseParameter databaseParameter_;
106 osmscout::DatabaseRef database_;
108 osmscout::MercatorProjection projection_;
110 osmscout::MapParameter DrawParameter_;
112 osmscout::AreaSearchParameter searchParameter_;
114 osmscout::MapData data_;
116 std::list<osmscout::TileRef> tiles_;
118 std::shared_ptr<osmscout::MapPainterCairo> painter_;
120 cairo_surface_t *surface_;
122 cairo_t *cairo_;
123};
124
125} // namespace gva
126
127#endif // HMICORE_RENDERER_MAP_H_
Class definition of the rendererMap.
Definition renderer_map.h:31
rendererMap const & operator=(rendererMap &&a)=delete
Move constructor, deleted.
~rendererMap()
Destroy the renderer Map object.
Definition renderer_map.cc:59
GvaStatusTypes Project(double zoom, double lon, double lat, cairo_surface_t **surface)
Project the map.
Definition renderer_map.cc:65
rendererMap & operator=(const rendererMap &a)=delete
Copy constructor, deleted.
void SetWidth(int width)
Set the Width attribute.
Definition renderer_map.h:88
void SetHeight(int height)
Set the Height attribute.
Definition renderer_map.h:81
GvaStatusTypes
HMI erro types, can be extended if needed.
Definition gva.h:186