VR-Forces 4.0.4 Class Documentation
Settings Manager Extension Example

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

This example demonstrates how to install your own settings manager.

Usage

Select Settings, Plugins... and on the Plugins Editor page, use the combo box at the top of the page to select the plug-in. Then enable the Load Plugin checkbox and re-start VR-Forces.

After starting the back-end, the settingsManagerRemote example can be started to demonstrate remotely changing and querying the settings.

Classes

Plugin Entry Points

/*******************************************************************************
** Copyright (c) 2009 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
/*******************************************************************************
** $RCSfile: plugin.cxx,v $ $Revision: 1.3 $ $State: Exp $
*******************************************************************************/

#include "vrfcgf/vrfPluginExtension.h"
#include "vrfcgf/defVrfCreator.h"
#include "myObjectManager.h"
#include "vrfcgf/vrfCreator.h"
#include "testSettings.h"

#include "vrfcgf/cgf.h"
#include "vrfcore/simMgr.h"
#include "vrfcore/vrfSimSettingsManager.h"
#include "vrfcgf/factoryMgr.h"

extern "C" {

   DT_VRF_DLL_PLUGIN void DtPluginInformation(DtVrfPluginInformation& info)
   {
      info.pluginName = "settingsManagerSim";
      info.pluginVersion = "1.00";
      info.pluginCreator = "MAK Technologies";
      info.pluginCreatorEmail = "sales@mak.com";
      info.pluginContactWebPage = "www.mak.com";
      info.pluginContactMailingAddress = "68 Moulton Street - Cambridge, MA 02138";
      info.pluginContactPhone = "(617) 876-8085";
   }

   DT_VRF_DLL_PLUGIN bool DtInitializeVrfPlugin(DtCgf* cgf)
   {
      cgf->factoryManager()->settingsObjectFactory()->addCreatorFcn(
         "test-settings", DtTestSettings::create);
      cgf->vrfCreator()->setVrfObjectManagerCreatorFcn(
         MyObjectManager::creator);
      
      return true;
   }
}

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)