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.org/sumo
3 // Copyright (C) 2001-2020 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 
23 #include <fx.h>
24 #include "GUITextures.h"
25 #include "GUITexturesHelper.h"
26 
27 // ===========================================================================
28 // class definitions
29 // ===========================================================================
30 
32 public:
36  static void initTextures(FXApp* a);
37 
41  static GUIGlID getTexture(GUITexture which);
42 
46  static void resetTextures();
47 
49  static void close();
50 
51 private:
53  GUITextureSubSys(FXApp* a);
54 
57 
59  FXApp* myApp;
60 
63 
65  std::map<GUITexture, GUIGlID> myTextures;
66 };
unsigned int GUIGlID
Definition: GUIGlObject.h:40
GUITexture
An enumeration of gifs used by the gui applications.
Definition: GUITextures.h:31
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()
destructor
static GUITextureSubSys * myInstance
instance of GUITextureSubSys
FXApp * myApp
@pointer to Fox App
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
GUITextureSubSys(FXApp *a)
constructor private because is called by the static function init(FXApp* a