VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Interface Content (interfaceContentGui)

The Interface Content example demonstrates the following:

The Interface Content example creates a new type of VRF interface message class MyInterfaceContent which demonstrates how to send and receive interface content messages from the front and back-end.

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

To view the new behavior:

  1. Start vrfSim.
  2. Start vrfGui.

A menu item to send the interface content message will be created under the Simulation menu. Type in a message. The back-end will receive the message and send an acknowledgement to the front-end

Classes

MyInterfaceContentThe interface content message.

Plugin Entry Points

/*******************************************************************************
** Copyright (c) 2014 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
//\file interfaceContentPlugin.cxx
//\brief Contains plugin function
//This file defines the generic DT_DLL_VRF_PLUGIN_EXPORT_MACRO. Use that macro when
//you want to export symbols. Also, in your CMakeLists.txt file, make sure to
//define the VRFPLUGIN_EXPORTS define to tell the compiler to define the macro as an
//export
#include "../interfaceContentSim/myInterfaceContent.h"
#include <vrvCore/DtDe.h>
using namespace makVrf;
{
makVrv::DtMenuPath::mainMenu(DtSimulationMenuId).item("DtInterfaceContentMenuItem"),
//Register the creator for MyInterfaceContentType with the
//DtInterfaceContentFactory
MyInterfaceContentType).connect(boost::bind(&vrfInterfaceContentExample::
DtInterfaceContentMenuItem::processInterfaceMessage, menuItem, _1));
return true;
}
{
}
{
boost::bind(&slot_onObjectAdded, _1, &de));
}
{
info.pluginName = "interfaceContentGui";
info.pluginDescription = "This is an example of how to add a new interface message in the VRF back-end.";
info.pluginVersion = "1.00";
info.pluginCreator = "MAK Technologies";
info.pluginCreatorEmail = "sales@mak.com";
info.pluginContactWebPage = "www.mak.com";
info.pluginContactMailingAddress = "150 Cambridge Park Drive 3rd Floor - Cambridge, MA 02140 USA";
info.pluginContactPhone = "(617) 876 8085";
}

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)