VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Settings Manager Extension (settingsManagerSim)

Table of Contents

The Settings Manager Extension example demonstrates the following:

Since this example is loaded as a plugin, it can be used in conjunction with the released VR-Forces application

How to Run the Example

This example demonstrates how to install your own settings manager.

Usage

To view the new behavior:

  1. Open a command prompt window, navigate to the VR-Forces /bin64/ directory and start just the VR-Forces vrfSIM (backend) through the Launcher - using "vrfLauncher -B".
  2. In the Launcher, set the settingsManager plugin to load and start VR Forces using the preconfigured DIS (7) connection (rather than "DIS (7) localhost").
  3. Open a separate command prompt window, navigate to the VR-Forces /bin64/ directory and start settingsManagerRemoteDIS.exe from the command prompt.
  4. After starting, the settingsManagerRemote executable will connect to the sim engine and demonstrate remotely changing and querying some test settings added by the plugin.
  5. The vrfSim console window should display text similar to the following:

    Double value set to 17184
    Bool value set to 1

  6. The settingsManagerRemote console window should display text similar to the following:

    Calling modifyBackEndSetting setting with double = 17184 bool = 1
    Response received from back-end 1:3001 : double = 17184 bool = 1
    Settings received;

Plugin Entry Points

/*******************************************************************************
** Copyright (c) 2012 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
#include "myObjectManager.h"
#include "testSettings.h"
#include "vrfcgf/cgf.h"
extern "C" {
{
info.pluginName = "settingsManagerSim";
info.pluginVersion = "1.00";
info.pluginCreator = "MAK Technologies";
info.pluginCreatorEmail = "sales@mak.com";
info.pluginContactWebPage = "www.mak.com";
info.pluginContactMailingAddress = "10 Fawcett Street, Suite 204, Cambridge, MA 02138 USA";
info.pluginContactPhone = "(617) 876-8085";
}
DT_VRF_DLL_PLUGIN bool DtInitializeVrfPlugin(DtCgf* cgf)
{
"test-settings", DtTestSettings::create);
return true;
}
}

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)