Eclipse SUMO - Simulation of Urban MObility
|
#include <GUITextureSubSys.h>
Static Public Member Functions | |
static void | close () |
close GUITextureSubSys | |
static GUIGlID | getPOITexture (POIIcon POIIcon) |
returns texture associated to the given POI image | |
static GUIGlID | getTexture (GUITexture which) |
returns a texture previously defined in the enum GUITexture | |
static void | initTextures (FXApp *a) |
Initiate GUITextureSubSys for textures. | |
static void | resetTextures () |
Reset textures. | |
Private Member Functions | |
GUITextureSubSys (FXApp *app) | |
constructor private because is called by the static function init(FXApp* a | |
~GUITextureSubSys () | |
destructor | |
Private Attributes | |
FXApp * | myApp |
@pointer to Fox App | |
std::map< POIIcon, GUIGlID > | myPOITextures |
map with textures | |
std::map< GUITexture, GUIGlID > | myTextures |
vector with the Gifs | |
Static Private Attributes | |
static GUITextureSubSys * | myInstance = nullptr |
instance of GUITextureSubSys | |
Definition at line 33 of file GUITextureSubSys.h.
|
private |
constructor private because is called by the static function init(FXApp* a
Definition at line 73 of file GUITextureSubSys.cpp.
|
private |
destructor
Definition at line 78 of file GUITextureSubSys.cpp.
|
static |
close GUITextureSubSys
Definition at line 243 of file GUITextureSubSys.cpp.
References myInstance.
Referenced by GNEApplicationWindow::~GNEApplicationWindow().
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().
|
static |
returns a texture previously defined in the enum GUITexture
[in] | GUITexture | code 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(), GNEStopPlan::drawGL(), GNEAdditional::drawListedAdditional(), GNEViewNetHelper::LockIcon::drawLockIcon(), GNEAdditional::drawSquaredAdditional(), GNELane::drawTextures(), and GNEJunction::drawTLSIcon().
|
static |
Initiate GUITextureSubSys for textures.
[in] | a | FOX Toolkit APP |
Definition at line 83 of file GUITextureSubSys.cpp.
References myInstance.
Referenced by GNEApplicationWindow::GNEApplicationWindow(), and GUIApplicationWindow::GUIApplicationWindow().
|
static |
Reset textures.
Definition at line 228 of file GUITextureSubSys.cpp.
References GUITexturesHelper::clearTextures(), myInstance, myPOITextures, and myTextures.
Referenced by GNEApplicationWindow::closeAllWindows(), and GNEViewNet::GNEViewNet().
|
private |
@pointer to Fox App
Definition at line 65 of file GUITextureSubSys.h.
Referenced by getPOITexture(), and getTexture().
|
staticprivate |
instance of GUITextureSubSys
Definition at line 68 of file GUITextureSubSys.h.
Referenced by close(), getPOITexture(), getTexture(), initTextures(), and resetTextures().
map with textures
Definition at line 74 of file GUITextureSubSys.h.
Referenced by getPOITexture(), and resetTextures().
|
private |
vector with the Gifs
Definition at line 71 of file GUITextureSubSys.h.
Referenced by getTexture(), and resetTextures().