Eclipse SUMO - Simulation of Urban MObility
GUITextureSubSys.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3 // Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
18 // A class to manage gifs of SUMO
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
25 
26 #include "GUITextures.h"
27 #include "GUITexturesHelper.h"
28 
29 // ===========================================================================
30 // class definitions
31 // ===========================================================================
32 
34 
35 public:
39  static void initTextures(FXApp* a);
40 
44  static GUIGlID getTexture(GUITexture which);
45 
48 
52  static void resetTextures();
53 
55  static void close();
56 
57 private:
59  GUITextureSubSys(FXApp* app);
60 
63 
65  FXApp* myApp;
66 
69 
71  std::map<GUITexture, GUIGlID> myTextures;
72 
74  std::map<POIIcon, GUIGlID> myPOITextures;
75 };
unsigned int GUIGlID
Definition: GUIGlObject.h:43
GUITexture
An enumeration of gifs used by the gui applications.
Definition: GUITextures.h:31
POIIcon
POI icons.
static void close()
close GUITextureSubSys
static void resetTextures()
Reset textures.
std::map< GUITexture, GUIGlID > myTextures
vector with the Gifs
static void initTextures(FXApp *a)
Initiate GUITextureSubSys for textures.
GUITextureSubSys(FXApp *app)
constructor private because is called by the static function init(FXApp* a
~GUITextureSubSys()
destructor
static GUIGlID getPOITexture(POIIcon POIIcon)
returns texture associated to the given POI image
static GUITextureSubSys * myInstance
instance of GUITextureSubSys
std::map< POIIcon, GUIGlID > myPOITextures
map with textures
FXApp * myApp
@pointer to Fox App
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture