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 getPOITexture (POIIcon POIIcon)
 returns texture associated to the given POI image 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 *app)
 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< POIIcon, GUIGlIDmyPOITextures
 map with textures 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 33 of file GUITextureSubSys.h.

Constructor & Destructor Documentation

◆ GUITextureSubSys()

GUITextureSubSys::GUITextureSubSys ( FXApp *  app)
private

constructor private because is called by the static function init(FXApp* a

Definition at line 73 of file GUITextureSubSys.cpp.

Referenced by initTextures().

Here is the caller graph for this function:

◆ ~GUITextureSubSys()

GUITextureSubSys::~GUITextureSubSys ( )
private

destructor

Definition at line 78 of file GUITextureSubSys.cpp.

Member Function Documentation

◆ close()

void GUITextureSubSys::close ( )
static

close GUITextureSubSys

Definition at line 243 of file GUITextureSubSys.cpp.

References myInstance.

Referenced by GNEApplicationWindow::~GNEApplicationWindow().

Here is the caller graph for this function:

◆ getPOITexture()

GUIGlID GUITextureSubSys::getPOITexture ( POIIcon  POIIcon)
static

returns texture associated to the given POI image

Definition at line 200 of file GUITextureSubSys.cpp.

References GUITexturesHelper::add(), CHARGING_STATION, FUEL, HOTEL, myApp, myInstance, myPOITextures, NATURE, PIN, POITexture_Charging_station, POITexture_Fuel, POITexture_Hotel, POITexture_Nature, and POITexture_Pin.

Referenced by GUIPointOfInterest::drawInnerPOI().

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 90 of file GUITextureSubSys.cpp.

References GUITexturesHelper::add(), E3, E3_SELECTED, E3Selected, LANE_BIKE, LANE_BUS, LANE_PEDESTRIAN, LaneBike, LaneBus, LanePedestrian, LOCK, Lock, myApp, myInstance, myTextures, NOTMOVING, NotMoving, NOTMOVING_SELECTED, NotMovingSelected, REROUTER, REROUTER_CLOSINGLANEREROUTE, Rerouter_ClosingLaneReroute, REROUTER_CLOSINGREROUTE, Rerouter_ClosingReroute, REROUTER_DESTPROBREROUTE, Rerouter_DestProbReroute, REROUTER_INTERVAL, Rerouter_Interval, REROUTER_PARKINGAREAREROUTE, Rerouter_ParkingAreaReroute, REROUTER_ROUTEPROBREROUTE, Rerouter_RouteProbReroute, REROUTER_SELECTED, RerouterSelected, ROUTEPROBE, ROUTEPROBE_SELECTED, RouteProbeSelected, STOP, STOP_SELECTED, STOPCONTAINER, StopContainer, STOPCONTAINER_SELECTED, StopContainerSelected, STOPPERSON, StopPerson, STOPPERSON_SELECTED, StopPersonSelected, StopSelected, TL, TLS, TRACTIONSUBSTATION, TractionSubstation, TRACTIONSUBSTATION_SELECTED, TractionSubstationSelected, VAPORIZER, Vaporizer, VAPORIZER_SELECTED, VaporizerSelected, VARIABLESPEEDSIGN, VARIABLESPEEDSIGN_SELECTED, VARIABLESPEEDSIGN_STEP, VariableSpeedSign_Step, and VariableSpeedSignSelected.

Referenced by GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNEAdditional::drawListedAdditional(), GNEViewNetHelper::LockIcon::drawLockIcon(), GNEAdditional::drawSquaredAdditional(), GNEStopPlan::drawStopOverEdge(), GNEStopPlan::drawStopOverStoppingPlace(), GNELane::drawTextures(), and GNEJunction::drawTLSIcon().

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 83 of file GUITextureSubSys.cpp.

References GUITextureSubSys(), and myInstance.

Referenced by GNEApplicationWindow::GNEApplicationWindow(), and GUIApplicationWindow::GUIApplicationWindow().

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 228 of file GUITextureSubSys.cpp.

References GUITexturesHelper::clearTextures(), myInstance, myPOITextures, 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 65 of file GUITextureSubSys.h.

Referenced by getPOITexture(), and getTexture().

◆ myInstance

GUITextureSubSys * GUITextureSubSys::myInstance = nullptr
staticprivate

instance of GUITextureSubSys

Definition at line 68 of file GUITextureSubSys.h.

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

◆ myPOITextures

std::map<POIIcon, GUIGlID> GUITextureSubSys::myPOITextures
private

map with textures

Definition at line 74 of file GUITextureSubSys.h.

Referenced by getPOITexture(), and resetTextures().

◆ myTextures

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

vector with the Gifs

Definition at line 71 of file GUITextureSubSys.h.

Referenced by getTexture(), and resetTextures().


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