Overview
This example shows how to create an observer.
Expected Result
New Observer Result
Example details
To create an observer, you must first create an observer configuration.
TODO: This class is used to encapsulate a set of default observer settings and parameters.
Definition DtObserverConfiguration.h:23
The configuration is then added to the DtInputDriver, which will realize the observer immediately if the application is running, or realize it on start up.
vantageApp.de().driverManager().inputDriver().addObserverConfiguration(
observerConfig );
Building the Example
VR-Vantage includes pre-built versions of the example application. To build it yourself, follow the instructions at Building VR-Vantage Examples, Applications, and Plug-ins.
Running the Example
This example is an application. You can run it by running ./bin64/exampleCreateObserver.exe (on Windows) or ./bin64/exampleCreateObserver (on Linux). Go in the "menu->Settings->Display Settings->Observer Settings", in the drop down menu "Observer", you should see a new entry "Example Observer". For more information about running examples, please see Running Applications and Examples.
Example Source Files
exampleCreateObserver.cxx
#include <boost/bind/bind.hpp>
int main(int argc, char** argv)
{
vantageApp.installCommandLineProcessor(&vantageCommandLineParser);
vantageApp.preInitialize(argc,argv);
vantageApp.initialize();
vantageApp.de().driverManager().inputDriver().addObserverConfiguration(
observerConfig );
vantageApp.run();
return 0;
}
Contains makVrv::DtDe class.
Contains makVrv:DtMasterScene class.
Contains makVrv::DtObserverConfiguration class.
Contains DtVantageIgCommandLineProcessor class.
The MAK Vantage IG Application's command line processor.
Definition DtVantageIgCommandLineProcessor.h:22
The MAK VantageIG Application. This class contains the information to create and configure the DtVant...
Definition DtVantageIgConfiguration.h:20
The Root IG Application object. To run the IG simply create one, initialize it and call run.
Definition DtVrvApplication.h:58