Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUICursorSubSys Class Reference

#include <GUICursorSubSys.h>

Collaboration diagram for GUICursorSubSys:
[legend]

Static Public Member Functions

static void close ()
 close GUICursorSubSys
 
static FXCursor * getCursor (GUICursor which)
 returns a cursor previously defined in the enum GUICursor
 
static void initCursors (FXApp *a)
 Initiate GUICursorSubSys.
 

Private Member Functions

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

Private Attributes

std::map< GUICursor, FXCursor * > myCursors
 vector with the icons
 

Static Private Attributes

static GUICursorSubSysmyInstance = nullptr
 instance of GUICursorSubSys
 

Detailed Description

Definition at line 32 of file GUICursorSubSys.h.

Constructor & Destructor Documentation

◆ GUICursorSubSys()

GUICursorSubSys::GUICursorSubSys ( FXApp *  a)
private

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

Definition at line 44 of file GUICursorSubSys.cpp.

References DEFAULT, Delete_cursor, DELETE_CURSOR, INSPECT, Inspect_cursor, INSPECT_LANE, InspectLane_cursor, MOVEELEMENT, MoveElement_cursor, MOVEVIEW, myCursors, SELECT, Select_cursor, SELECT_LANE, and SelectLane_cursor.

◆ ~GUICursorSubSys()

GUICursorSubSys::~GUICursorSubSys ( )
private

destructor

Definition at line 67 of file GUICursorSubSys.cpp.

References DEFAULT, MOVEVIEW, and myCursors.

Member Function Documentation

◆ close()

void GUICursorSubSys::close ( )
static

close GUICursorSubSys

Definition at line 94 of file GUICursorSubSys.cpp.

References myInstance.

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

Here is the caller graph for this function:

◆ getCursor()

FXCursor * GUICursorSubSys::getCursor ( GUICursor  which)
static

returns a cursor previously defined in the enum GUICursor

Parameters
[in]whichGUICursor enum

Definition at line 88 of file GUICursorSubSys.cpp.

References myCursors, and myInstance.

Referenced by GUISUMOAbstractView::onMiddleBtnPress(), GUISUMOAbstractView::onMiddleBtnRelease(), and GNEViewNet::updateCursor().

Here is the caller graph for this function:

◆ initCursors()

void GUICursorSubSys::initCursors ( FXApp *  a)
static

Initiate GUICursorSubSys.

Parameters
[in]aFOX Toolkit APP

Definition at line 78 of file GUICursorSubSys.cpp.

References myInstance.

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

Here is the caller graph for this function:

Field Documentation

◆ myCursors

std::map<GUICursor, FXCursor*> GUICursorSubSys::myCursors
private

vector with the icons

Definition at line 58 of file GUICursorSubSys.h.

Referenced by getCursor(), GUICursorSubSys(), and ~GUICursorSubSys().

◆ myInstance

GUICursorSubSys * GUICursorSubSys::myInstance = nullptr
staticprivate

instance of GUICursorSubSys

Definition at line 55 of file GUICursorSubSys.h.

Referenced by close(), getCursor(), and initCursors().


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