Eclipse SUMO - Simulation of Urban MObility
GUITextureSubSys Class Reference

#include <GUITextureSubSys.h>

Collaboration diagram for GUITextureSubSys:
[legend]

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 31 of file GUITextureSubSys.h.

Constructor & Destructor Documentation

◆ GUITextureSubSys()

GUITextureSubSys::GUITextureSubSys ( FXApp *  a)
private

◆ ~GUITextureSubSys()

GUITextureSubSys::~GUITextureSubSys ( )
private

destructor

Definition at line 88 of file GUITextureSubSys.cpp.

Member Function Documentation

◆ close()

void GUITextureSubSys::close ( )
static

close GUITextureSubSys

Definition at line 184 of file GUITextureSubSys.cpp.

References myInstance.

Referenced by GNEApplicationWindow::~GNEApplicationWindow().

Here is the caller graph for this function:

◆ getTexture()

GUIGlID GUITextureSubSys::getTexture ( GUITexture  which)
static

returns a texture previously defined in the enum GUITexture

Parameters
[in]GUITexturecode of texture to use

Definition at line 100 of file GUITextureSubSys.cpp.

References GUITexturesHelper::add(), GNETexture_E3, GNETEXTURE_E3, GNETexture_E3Selected, GNETEXTURE_E3SELECTED, GNETexture_Empty, GNETEXTURE_EMPTY, GNETexture_EmptySelected, GNETEXTURE_EMPTYSELECTED, GNETexture_LaneBike, GNETEXTURE_LANEBIKE, GNETexture_LaneBus, GNETEXTURE_LANEBUS, GNETexture_LanePedestrian, GNETEXTURE_LANEPEDESTRIAN, GNETexture_Lock, GNETEXTURE_LOCK, GNETexture_LockSelected, GNETEXTURE_LOCKSELECTED, GNETexture_NotMoving, GNETEXTURE_NOTMOVING, GNETexture_NotMovingSelected, GNETEXTURE_NOTMOVINGSELECTED, GNETexture_Rerouter, GNETEXTURE_REROUTER, GNETexture_RerouterSelected, GNETEXTURE_REROUTERSELECTED, GNETexture_RouteProbe, GNETEXTURE_ROUTEPROBE, GNETexture_RouteProbeSelected, GNETEXTURE_ROUTEPROBESELECTED, GNETexture_TLS, GNETEXTURE_TLS, GNETexture_Vaporizer, GNETEXTURE_VAPORIZER, GNETexture_VaporizerSelected, GNETEXTURE_VAPORIZERSELECTED, GNETexture_VariableSpeedSign, GNETEXTURE_VARIABLESPEEDSIGN, GNETexture_VariableSpeedSignSelected, GNETEXTURE_VARIABLESPEEDSIGNSELECTED, myApp, myInstance, and myTextures.

Referenced by GNEDetectorE3::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNELane::drawTextures(), GNEJunction::drawTLSIcon(), and GNEViewNetHelper::LockIcon::getLockIcon().

Here is the caller graph for this function:

◆ initTextures()

void GUITextureSubSys::initTextures ( FXApp *  a)
static

Initiate GUITextureSubSys for textures.

Parameters
[in]aFOX Toolkit APP

Definition at line 93 of file GUITextureSubSys.cpp.

References GUITextureSubSys(), and myInstance.

Referenced by GNEApplicationWindow::GNEApplicationWindow().

Here is the caller graph for this function:

◆ resetTextures()

void GUITextureSubSys::resetTextures ( )
static

Reset textures.

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

Definition at line 174 of file GUITextureSubSys.cpp.

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

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

Here is the caller graph for this function:

Field Documentation

◆ myApp

FXApp* GUITextureSubSys::myApp
private

@pointer to Fox App

Definition at line 59 of file GUITextureSubSys.h.

Referenced by getTexture().

◆ myInstance

GUITextureSubSys * GUITextureSubSys::myInstance = nullptr
staticprivate

instance of GUITextureSubSys

Definition at line 62 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 65 of file GUITextureSubSys.h.

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


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