VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 <QtWidgets/QMenu>
#include <QtWidgets/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 = "10 Fawcett Street, Suite 204, Cambridge, MA 02138 USA";
info.pluginContactPhone = "(617) 876 8085";
}

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)