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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // A class to manage gifs of SUMO
18 /****************************************************************************/
19 #ifndef GUITextureSubSys_h
20 #define GUITextureSubSys_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <fx.h>
33 #include "GUITextures.h"
34 #include "GUITexturesHelper.h"
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
39 
41 public:
45  static void initTextures(FXApp* a);
46 
50  static GUIGlID getTexture(GUITexture which);
51 
55  static void resetTextures();
56 
58  static void close();
59 
60 private:
62  GUITextureSubSys(FXApp* a);
63 
66 
68  FXApp* myApp;
69 
72 
74  std::map<GUITexture, std::pair<bool, GUIGlID> > myTextures;
75 };
76 
77 
78 #endif
79 
80 /****************************************************************************/
81 
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:49
static GUITextureSubSys * myInstance
instance of GUITextureSubSys
static void initTextures(FXApp *a)
Initiate GUITextureSubSys for textures.
std::map< GUITexture, std::pair< bool, GUIGlID > > myTextures
vector with the Gifs
GUITexture
An enumeration of gifs used by the gui applications.
Definition: GUITextures.h:40