SimpleFastOpenAtomicVisualiser
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
console.h File Reference
#include <memory>
#include <vector>
#include <chrono>
#include <string>
#include <sstream>
#include <jLog/jLog.h>
#include <lua.h>
#include <LuaNumber.h>
#include <LuaString.h>
#include <LuaTable.h>
#include <LuaArray.h>
#include <LuaVec.h>
#include <LuaBool.h>
#include <visualisationState.h>
#include <commandLine.h>
#include <camera.h>
Include dependency graph for console.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LuaExtraSpace
 Store for lua global state. For the console to have access to these classes they must be set into LuaExtraSpace and set via Console::luaStore. More...
 
class  Console
 Lua console. More...
 

Typedefs

typedef int(VisualisationState::* VisualisationStateMember) (lua_State *lua)
 A Lua binding in VisualisationState;.
 
typedef int(Camera::* CameraMember) (lua_State *lua)
 A Lua binding in Camera;.
 
typedef int(CommandLine::* CommandLineMember) (lua_State *lua)
 A Lua binding in CommandLine;.
 

Functions

template<VisualisationStateMember function>
int dispatchVisualisationState (lua_State *lua)
 Dispath to a Lua binding of VisualisationState.
 
template<CameraMember function>
int dispatchCamera (lua_State *lua)
 Dispath to a Lua binding of Camera.
 
template<CommandLineMember function>
int dispatchCommandLine (lua_State *lua)
 Dispath to a Lua binding of CommandLine.
 
int lua_startRecord (lua_State *lua)
 Start video recording (if not already recording).
 
int lua_stopRecord (lua_State *lua)
 Stop video recording (if already recording).
 
int lua_play (lua_State *lua)
 Start playing frames.
 
int lua_exit (lua_State *lua)
 Exit SFOAV.
 
int lua_pause (lua_State *lua)
 Stop playing frames.
 

Typedef Documentation

◆ CameraMember

typedef int(Camera::* CameraMember) (lua_State *lua)

A Lua binding in Camera;.

◆ CommandLineMember

typedef int(CommandLine::* CommandLineMember) (lua_State *lua)

A Lua binding in CommandLine;.

◆ VisualisationStateMember

typedef int(VisualisationState::* VisualisationStateMember) (lua_State *lua)

A Lua binding in VisualisationState;.

Function Documentation

◆ dispatchCamera()

template<CameraMember function>
int dispatchCamera ( lua_State lua)

Dispath to a Lua binding of Camera.

See also
LuaExtraSpace.
Template Parameters
functionthe Lua binding to dispatch.
Parameters
luathe Lua context.
Returns
int the return code.

◆ dispatchCommandLine()

template<CommandLineMember function>
int dispatchCommandLine ( lua_State lua)

Dispath to a Lua binding of CommandLine.

See also
LuaExtraSpace.
Template Parameters
functionthe Lua binding to dispatch.
Parameters
luathe Lua context.
Returns
int the return code.

◆ dispatchVisualisationState()

template<VisualisationStateMember function>
int dispatchVisualisationState ( lua_State lua)

Dispath to a Lua binding of VisualisationState.

See also
LuaExtraSpace.
Template Parameters
functionthe Lua binding to dispatch.
Parameters
luathe Lua context.
Returns
int the return code.

◆ lua_exit()

int lua_exit ( lua_State lua)

Exit SFOAV.

Parameters
luathe Lua context.
Returns
int the return code.

◆ lua_pause()

int lua_pause ( lua_State lua)

Stop playing frames.

Parameters
luathe Lua context.
Returns
int the return code.

◆ lua_play()

int lua_play ( lua_State lua)

Start playing frames.

Parameters
luathe Lua context.
Returns
int the return code.

◆ lua_startRecord()

int lua_startRecord ( lua_State lua)

Start video recording (if not already recording).

Parameters
luathe Lua context.
Returns
int the return code.

◆ lua_stopRecord()

int lua_stopRecord ( lua_State lua)

Stop video recording (if already recording).

Parameters
luathe Lua context.
Returns
int the return code.