Eclipse SUMO - Simulation of Urban MObility
GNEViewNetHelper::TestingMode Struct Reference

struct used to group all variables related with testing More...

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::TestingMode:
[legend]

Public Member Functions

void drawTestingElements (GUIMainWindow *mainWindow)
 draw testing element More...
 
void initTestingMode ()
 init testing mode More...
 
bool isTestingEnabled () const
 check if testing mode is enabled More...
 
 TestingMode (GNEViewNet *viewNet)
 default constructor More...
 

Private Attributes

bool myTestingEnabled
 flag to enable or disable testing mode More...
 
int myTestingHeight
 Height of net in testing mode. More...
 
int myTestingWidth
 Width of net in testing mode. More...
 
GNEViewNetmyViewNet
 pointer to net More...
 

Detailed Description

struct used to group all variables related with testing

Definition at line 993 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ TestingMode()

GNEViewNetHelper::TestingMode::TestingMode ( GNEViewNet viewNet)

default constructor

Definition at line 1583 of file GNEViewNetHelper.cpp.

Member Function Documentation

◆ drawTestingElements()

void GNEViewNetHelper::TestingMode::drawTestingElements ( GUIMainWindow mainWindow)

draw testing element

Definition at line 1608 of file GNEViewNetHelper.cpp.

References RGBColor::BLACK, GLHelper::drawTextBox(), GLO_TESTELEMENT, RGBColor::MAGENTA, GLHelper::setColor(), toString(), RGBColor::WHITE, Position::x(), and Position::y().

Referenced by GNEViewNet::doPaintGL().

Here is the caller graph for this function:

◆ initTestingMode()

void GNEViewNetHelper::TestingMode::initTestingMode ( )

init testing mode

Definition at line 1592 of file GNEViewNetHelper.cpp.

References OptionsCont::getOptions(), OptionsCont::getStringVector(), toString(), and WRITE_ERROR.

◆ isTestingEnabled()

bool GNEViewNetHelper::TestingMode::isTestingEnabled ( ) const

check if testing mode is enabled

Definition at line 1645 of file GNEViewNetHelper.cpp.

Referenced by GNEPOI::drawGL().

Here is the caller graph for this function:

Field Documentation

◆ myTestingEnabled

bool GNEViewNetHelper::TestingMode::myTestingEnabled
private

flag to enable or disable testing mode

Definition at line 1012 of file GNEViewNetHelper.h.

◆ myTestingHeight

int GNEViewNetHelper::TestingMode::myTestingHeight
private

Height of net in testing mode.

Definition at line 1018 of file GNEViewNetHelper.h.

◆ myTestingWidth

int GNEViewNetHelper::TestingMode::myTestingWidth
private

Width of net in testing mode.

Definition at line 1015 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::TestingMode::myViewNet
private

pointer to net

Definition at line 1009 of file GNEViewNetHelper.h.


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