VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Add Entity Info Page (addEntityInfoPage)

Table of Contents

The Add Entity Info Page example demonstrates the following:

Adding a New Page to the Entity Information Dialog

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 addStateProperty example.

How to Run the Example

This example demonstrates how to add a new page to the Entity Information Dialog.

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 VR-Forces GUI and SIM.
  2. Load a scenario - e.g. HawaiiGround.scnx.
  3. Open the Entity Information dialog for an entity
  4. The dialog will have an extra page at the bottom. The tab for the page is named 'Example Page' and has a green arrow icon.

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/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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)