Eclipse SUMO - Simulation of Urban MObility
GUITextureSubSys Class Reference

#include <GUITextureSubSys.h>

Collaboration diagram for GUITextureSubSys:

Static Public Member Functions

static void close ()
 close GUITextureSubSys More...
 
static GUIGlID getTexture (GUITexture which)
 returns a texture previously defined in the enum GUITexture More...
 
static void initTextures (FXApp *a)
 Initiate GUITextureSubSys for textures. More...
 
static void resetTextures ()
 Reset textures. More...
 

Private Member Functions

 GUITextureSubSys (FXApp *a)
 constructor private because is called by the static function init(FXApp* a More...
 
 ~GUITextureSubSys ()
 destructor More...
 

Private Attributes

FXApp * myApp
 @pointer to Fox App More...
 
std::map< GUITexture, GUIGlIDmyTextures
 vector with the Gifs More...
 

Static Private Attributes

static GUITextureSubSysmyInstance = nullptr
 instance of GUITextureSubSys More...
 

Detailed Description

Definition at line 34 of file GUITextureSubSys.h.

Constructor & Destructor Documentation

◆ GUITextureSubSys()

◆ ~GUITextureSubSys()

GUITextureSubSys::~GUITextureSubSys ( )
private

destructor

Definition at line 90 of file GUITextureSubSys.cpp.

Member Function Documentation

◆ close()

void GUITextureSubSys::close ( )
static

close GUITextureSubSys

Definition at line 186 of file GUITextureSubSys.cpp.

References myInstance.

Referenced by GNEApplicationWindow::~GNEApplicationWindow().

◆ getTexture()

GUIGlID GUITextureSubSys::getTexture ( GUITexture  which)
static

◆ initTextures()

void GUITextureSubSys::initTextures ( FXApp *  a)
static

Initiate GUITextureSubSys for textures.

Parameters
[in]aFOX Toolkit APP

Definition at line 95 of file GUITextureSubSys.cpp.

References GUITextureSubSys(), and myInstance.

Referenced by GNEApplicationWindow::GNEApplicationWindow().

◆ resetTextures()

void GUITextureSubSys::resetTextures ( )
static

Reset textures.

Note
Necessary to avoid problems with textures (ej: white empty)

Definition at line 176 of file GUITextureSubSys.cpp.

References GUITexturesHelper::clearTextures(), myInstance, and myTextures.

Referenced by GNEApplicationWindow::closeAllWindows(), and GNEViewNet::GNEViewNet().

Field Documentation

◆ myApp

FXApp* GUITextureSubSys::myApp
private

@pointer to Fox App

Definition at line 62 of file GUITextureSubSys.h.

Referenced by getTexture().

◆ myInstance

GUITextureSubSys * GUITextureSubSys::myInstance = nullptr
staticprivate

instance of GUITextureSubSys

Definition at line 65 of file GUITextureSubSys.h.

Referenced by close(), getTexture(), initTextures(), and resetTextures().

◆ myTextures

std::map<GUITexture, GUIGlID> GUITextureSubSys::myTextures
private

vector with the Gifs

Definition at line 68 of file GUITextureSubSys.h.

Referenced by getTexture(), GUITextureSubSys(), and resetTextures().


The documentation for this class was generated from the following files: