VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Add Entity Info Page (addEntityInfoPage)

The Add Entity Info Page example demonstrates the following:

The Add Entity Info Page example demonstrates how to add a new page to the Entity Information dialog. The page that is added is blank and is designed to be a starting point. For an example of adding items to the page, see the addAttr example.

Usage

In the Launcher, click the Plug-ins button to bring up the Plug-ins Selection dialog. Enable the plugin. Then launch VR-Forces.

  1. Start vrfGui.
  2. Start vrfSim.
  3. Load a scenario.
  4. Open the Entity Information dialog for an entity

The dialog will have an extra page at the bottom. The tab for the page is a green arrow.

Classes

DtExampleInfoPageThe new blank page which is subclassed from DtInformationDialogPage

Plugin Entry Points

/*******************************************************************************
** Copyright (c) 2012 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
//\file guiLocalCreateObject.cxx
//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 <vrvCore/DtDe.h>
#include <QtGui/QMenu>
#include <QtGui/QMessageBox>
#include <boost/bind.hpp>
using namespace makVrf;
using namespace exampleInfoPage;
{
DtInformationDialogManager& dialogManager =
DtInformationDialogManager::instance(*de);
dialogManager.informationPageAssembler().registerPageCreator(
DtVrfGuiApplication* vrfApp = dynamic_cast<DtVrfGuiApplication*>(
if (vrfApp)
{
informationPageConfiguration().addPagePath(
DtInformationPagePath::section("DtEntityExpandedData").page("DtExampleInfoPage"));
}
return true;
}
{
info.pluginName = "Add Entity Info Page";
info.pluginDescription = "";
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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)