SUMO - Simulation of Urban MObility
GUITextureSubSys.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A class to manage gifs of SUMO
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GUITextureSubSys_h
21 #define GUITextureSubSys_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <fx.h>
34 #include "GUITextures.h"
35 #include "GUITexturesHelper.h"
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
40 
42 public:
45  static void init(FXApp* a);
46 
49  static GUIGlID getGif(GUITexture which);
50 
53  static void reset();
54 
56  static void close();
57 
58 private:
61  GUITextureSubSys(FXApp* a);
62 
65 
67  FXApp* myApp;
68 
71 
73  std::map<GUITexture, std::pair<bool, GUIGlID> > myTextures;
74 };
75 
76 
77 #endif
78 
79 /****************************************************************************/
80 
GUITextureSubSys(FXApp *a)
constructor
~GUITextureSubSys()
destructor
static void close()
close GUITextureSubSys
FXApp * myApp
to Fox App
static void reset()
Reset textures.
unsigned int GUIGlID
Definition: GUIGlObject.h:50
static GUITextureSubSys * myInstance
instance of GUITextureSubSys
static void init(FXApp *a)
Initiate GUITextureSubSys for textures.
static GUIGlID getGif(GUITexture which)
returns a texture Gif previously defined in the enum GUITexture
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:41