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-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // A class to manage gifs of SUMO
16 /****************************************************************************/
17 #ifndef GUITextureSubSys_h
18 #define GUITextureSubSys_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <fx.h>
27 #include "GUITextures.h"
28 #include "GUITexturesHelper.h"
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
33 
35 public:
39  static void initTextures(FXApp* a);
40 
44  static GUIGlID getTexture(GUITexture which);
45 
49  static void resetTextures();
50 
52  static void close();
53 
54 private:
56  GUITextureSubSys(FXApp* a);
57 
60 
62  FXApp* myApp;
63 
66 
68  std::map<GUITexture, GUIGlID> myTextures;
69 };
70 
71 
72 #endif
73 
74 /****************************************************************************/
75 
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
static void resetTextures()
Reset textures.
GUITextureSubSys(FXApp *a)
constructor private because is called by the static function init(FXApp* a
~GUITextureSubSys()
destructor
static void close()
close GUITextureSubSys
FXApp * myApp
to Fox App
unsigned int GUIGlID
Definition: GUIGlObject.h:43
static GUITextureSubSys * myInstance
instance of GUITextureSubSys
std::map< GUITexture, GUIGlID > myTextures
vector with the Gifs
static void initTextures(FXApp *a)
Initiate GUITextureSubSys for textures.
GUITexture
An enumeration of gifs used by the gui applications.
Definition: GUITextures.h:34