Aimsun Next Scripting  22
Public Member Functions | List of all members
ANGApp Class Reference
Inheritance diagram for ANGApp:

Public Member Functions

 ANGApp ()
 
 ANGApp (const QString newAimsunNextHome)
 
void initConsole ()
 
void initGui ()
 
void initConsoleGui ()
 
bool open (const QString &fileName)
 
bool save (const QString &fileName)
 
void close ()
 
void quit ()
 
void run ()
 
void processEvents ()
 
void runScript (const QString &scriptFile) const
 
GKModelgetActiveModel () const
 
GGuigetGui () const
 

Constructor & Destructor Documentation

◆ ANGApp() [1/2]

ANGApp::ANGApp ( )

◆ ANGApp() [2/2]

ANGApp::ANGApp ( const QString  newAimsunNextHome)

You can force the Aimsun Next home (where Aimsun Next is) if you pass a non empty string. If empty Aimsun Next will look for the correct path using the information at installation or the current path.

Member Function Documentation

◆ close()

void ANGApp::close ( )

Closes the current model.

◆ getActiveModel()

GKModel * ANGApp::getActiveModel ( ) const

Returns the current model, if any

◆ getGui()

GGui * ANGApp::getGui ( ) const

Returns the current GUI, if any

◆ initConsole()

void ANGApp::initConsole ( )

Inits the application in NON GUI mode

◆ initConsoleGui()

void ANGApp::initConsoleGui ( )

Inits the application in NON GUI mode but creates a GUI (not shown) to allow some GUI only operations (mainly save a screenshot using modes(

◆ initGui()

void ANGApp::initGui ( )

Inits the application in GUI mode

◆ open()

bool ANGApp::open ( const QString &  fileName)

Opens a file creating a new model, returns false if the file cannot be read.

◆ processEvents()

void ANGApp::processEvents ( )

Process all the current application events (if any) and returns the control to python. In GUI only mode.

◆ quit()

void ANGApp::quit ( )

Quits the application.

◆ run()

void ANGApp::run ( )

Runs the application entering in interactive mode. In GUI only mode.

◆ runScript()

void ANGApp::runScript ( const QString &  scriptFile) const

Executes a GUI script stored in a file.

◆ save()

bool ANGApp::save ( const QString &  fileName)

Saves the current model in a file, returns false if the file cannot be saved. The file, if exists, is overwritten.

© Aimsun SLU
Aimsun ®