ug4
ug.cpp File Reference
#include <stack>
#include <cstdlib>
#include <string>
#include "ug.h"
#include "common/error.h"
#include "common/log.h"
#include "common/util/path_provider.h"
#include "common/util/os_info.h"
#include "common/profiler/profiler.h"
#include "common/profiler/profile_node.h"
#include "common/profiler/memtracker.h"
#include "pcl/pcl.h"

Namespaces

 ug
 the ug namespace
 

Functions

void ug::AbortRun ()
 sets a flag, that the current run shall be aborted during the next call of TerminateAbortedRun() More...
 
void ug::ClearAbortRunFlag ()
 clears the abort-run-flag. More...
 
std::string gUGVersionString ("4.0.2")
 
bool ug::InitPaths (const char *argv0)
 Initializes the pathes of ug::PathProvider. More...
 
void ug::SetAppsPath (const char *c_strApps)
 
void ug::SetAppsPath (const std::string &strApps)
 Initializes the APPS_PATH of ug::PathProvider. More...
 
void ug::SetPluginPath (const char *c_strPlugin)
 
void ug::SetPluginPath (const std::string &strPlugin)
 Initializes the PLUGIN_PATH of ug::PathProvider. More...
 
void ug::SetRootPath (const char *c_strRoot)
 
void ug::SetRootPath (const std::string &strRoot)
 Initializes the paths of ug::PathProvider. More...
 
void ug::SetScriptPath (const char *c_strScript)
 
void ug::SetScriptPath (const std::string &strScript)
 Initializes the SCRIPT_PATH of ug::PathProvider. More...
 
void ug::TerminateAbortedRun ()
 Terminates the current run if AbortRun() was called and the abort-run-flag is thus set to true. More...
 
int ug::UGFinalize ()
 finalizes ug More...
 
int ug::UGFinalizeNoPCLFinalize ()
 
void ug::UGForceExit ()
 Calls UGFinalize and terminates the application. More...
 
UG_API std::string ug::UGGetVersionString ()
 Returns the version number of the current ug-version. More...
 
int ug::UGInit (int *argcp, char ***argvp, int parallelOutputProcRank)
 initializes ug More...
 
bool ug::UGInitPlugins ()
 Init (if UG_PLUGINS is set) embedded or non-shared plugins. More...
 
void ug::UGOutputProfileStatsOnExit (bool bEnable)
 Call with true, if profiling output is desired at the end of the show. More...
 

Variables

static bool outputProfileStats = false
 
static bool ug::s_abortRun = false
 

Function Documentation

◆ gUGVersionString()

std::string gUGVersionString ( "4.0.2"  )

Current ug version

Referenced by ug::UGGetVersionString().

Variable Documentation

◆ outputProfileStats

bool outputProfileStats = false
static

Tells whether profile-output is desired on exit.

Referenced by ug::UGFinalizeNoPCLFinalize(), and ug::UGOutputProfileStatsOnExit().