本文整理汇总了C++中InterfaceBlackboard::GetComputerSettings方法的典型用法代码示例。如果您正苦于以下问题:C++ InterfaceBlackboard::GetComputerSettings方法的具体用法?C++ InterfaceBlackboard::GetComputerSettings怎么用?C++ InterfaceBlackboard::GetComputerSettings使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InterfaceBlackboard
的用法示例。
在下文中一共展示了InterfaceBlackboard::GetComputerSettings方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: task_manager
static void
Main()
{
const Waypoints way_points;
InterfaceBlackboard blackboard;
blackboard.SetComputerSettings().SetDefaults();
blackboard.SetComputerSettings().polar.glide_polar_task = GlidePolar(fixed(1));
blackboard.SetUISettings().SetDefaults();
TaskBehaviour task_behaviour;
task_behaviour.SetDefaults();
TaskManager task_manager(task_behaviour, way_points);
task_manager.SetGlidePolar(blackboard.GetComputerSettings().polar.glide_polar_task);
GlideComputerTaskEvents task_events;
task_manager.SetTaskEvents(task_events);
Airspaces airspace_database;
ProtectedTaskManager protected_task_manager(task_manager,
blackboard.GetComputerSettings().task);
LoadFiles(airspace_database);
const TaskFactoryType task_type_default =
blackboard.GetComputerSettings().task.task_type_default;
OrderedTask *task =
protected_task_manager.TaskCreateDefault(&way_points, task_type_default);
if (task != nullptr) {
protected_task_manager.TaskCommit(*task);
delete task;
}
GlideComputer glide_computer(way_points, airspace_database,
protected_task_manager,
task_events);
glide_computer.ReadComputerSettings(blackboard.GetComputerSettings());
glide_computer.SetTerrain(terrain);
glide_computer.SetContestIncremental(false);
glide_computer.Initialise();
LoadReplay(replay, glide_computer, blackboard);
delete replay;
SingleWindow main_window;
main_window.Create(_T("RunAnalysis"),
{640, 480});
dlgAnalysisShowModal(main_window, *look, blackboard, glide_computer,
&protected_task_manager,
&airspace_database,
terrain);
delete terrain;
}
示例2: GetComputerSettings
/**
* Returns the InterfaceBlackboard.ComputerSettings (read-only)
* @return The InterfaceBlackboard.ComputerSettings
*/
gcc_const
static const ComputerSettings& GetComputerSettings()
{ return blackboard.GetComputerSettings(); }
示例3: args
int WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
#ifdef _WIN32_WCE
LPWSTR lpCmdLine,
#else
LPSTR lpCmdLine2,
#endif
int nCmdShow)
#endif
{
#ifdef WIN32
Args args(GetCommandLine(), "DRIVER FILE");
#else
Args args(argc, argv, "DRIVER FILE");
#endif
DebugReplay *replay = CreateDebugReplay(args);
if (replay == NULL)
return EXIT_FAILURE;
args.ExpectEnd();
InitialiseDataPath();
Profile::SetFiles(_T(""));
Profile::Load();
const Waypoints way_points;
InterfaceBlackboard blackboard;
blackboard.SetComputerSettings().SetDefaults();
GlideComputerTaskEvents task_events;
TaskManager task_manager(way_points);
task_manager.SetTaskEvents(task_events);
Airspaces airspace_database;
AirspaceWarningManager airspace_warning(airspace_database);
ProtectedTaskManager protected_task_manager(task_manager,
blackboard.GetComputerSettings().task);
LoadFiles(airspace_database);
GlideComputer glide_computer(way_points, airspace_database,
protected_task_manager,
task_events);
glide_computer.SetTerrain(terrain);
glide_computer.Initialise();
glide_computer.ReadComputerSettings(blackboard.GetComputerSettings());
ScreenGlobalInit screen_init;
LoadReplay(replay, glide_computer, blackboard);
delete replay;
#ifdef WIN32
ResourceLoader::Init(hInstance);
#endif
Layout::Initialize(640, 480);
SingleWindow main_window;
main_window.set(_T("STATIC"), _T("RunAnalysis"),
PixelRect{0, 0, 640, 480});
Fonts::Initialize();
dialog_settings.SetDefaults();
Look *look = new Look();
look->Initialise();
look->InitialiseConfigured(blackboard.GetUISettings());
SetXMLDialogLook(look->dialog);
dialog_look = &look->dialog;
main_window.show();
dlgAnalysisShowModal(main_window, *look, blackboard, glide_computer,
&protected_task_manager,
&airspace_database,
terrain);
delete look;
Fonts::Deinitialize();
delete terrain;
DeinitialiseDataPath();
return 0;
}