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 1112 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ TestingMode()

GNEViewNetHelper::TestingMode::TestingMode ( GNEViewNet viewNet)

default constructor

Definition at line 1793 of file GNEViewNetHelper.cpp.

Member Function Documentation

◆ drawTestingElements()

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

draw testing element

Definition at line 1818 of file GNEViewNetHelper.cpp.

References RGBColor::BLUE, GLO_TESTELEMENT, RGBColor::MAGENTA, GLHelper::popMatrix(), GLHelper::pushMatrix(), GLHelper::setColor(), Position::x(), Position::y(), and RGBColor::YELLOW.

Referenced by GNEViewNet::doPaintGL().

Here is the caller graph for this function:

◆ initTestingMode()

void GNEViewNetHelper::TestingMode::initTestingMode ( )

init testing mode

Definition at line 1802 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 1872 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 1131 of file GNEViewNetHelper.h.

◆ myTestingHeight

int GNEViewNetHelper::TestingMode::myTestingHeight
private

Height of net in testing mode.

Definition at line 1137 of file GNEViewNetHelper.h.

◆ myTestingWidth

int GNEViewNetHelper::TestingMode::myTestingWidth
private

Width of net in testing mode.

Definition at line 1134 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::TestingMode::myViewNet
private

pointer to net

Definition at line 1128 of file GNEViewNetHelper.h.


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