VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Functions
multipleChannelUtilities.h File Reference

Go to the source code of this file.

Namespaces

 makVrv
 

Functions

makVrv::DtChannelConfiguration makeChannelConfiguration (makVrv::DtDe &de, double left=0, double right=100, double bottom=0, double top=100)
 
makVrv::DtWindowConfiguration makeWindowConfiguration (makVrv::DtDe &de, int x, int y, unsigned int numChannels=1)
 
makVrv::DtDisplayConfiguration makeDisplayConfiguration (makVrv::DtDe &de, const std::string &name="My Display Configuration")
 
void makeObserverConfigurations (makVrv::DtVrvApplicationConfiguration &config, makVrv::DtDe &de, const makVrv::DtDisplayConfiguration &displayConfig)
 
void inspectDisplayWindows (makVrv::DtDe &de)
 
std::string registerModelDefinition (makVrv::DtDe &de, const std::string &dataFile)
 
void addModelToTheScene (makVrv::DtDe &de, const std::string &modelName)
 
void loadTheScene (makVrv::DtDe &de)
 

Detailed Description

Prototypes of utility functions for exampleMultipleChannels.

Function Documentation

makVrv::DtChannelConfiguration makeChannelConfiguration ( makVrv::DtDe de,
double  left = 0,
double  right = 100,
double  bottom = 0,
double  top = 100 
)

Helper function creates a channel-configuration with a default name. Channel parameter values are percentages of the windows dimensions. This example creates a separate observer for each channel because the observer identifies the model-set to be rendered. Without creating separate observers, each channel would render exactly the same scene.

makVrv::DtWindowConfiguration makeWindowConfiguration ( makVrv::DtDe de,
int  x,
int  y,
unsigned int  numChannels = 1 
)

Helper function creates a window-configuration with a default name. The windows position must be specified, the number of channels is optional. These windows can be configured with one, two, three or four channels.

makVrv::DtDisplayConfiguration makeDisplayConfiguration ( makVrv::DtDe de,
const std::string &  name = "My Display Configuration" 
)

Helper function creates a display-configuration. This configuration creates multiple windows each with multiple channels.

void makeObserverConfigurations ( makVrv::DtVrvApplicationConfiguration config,
makVrv::DtDe de,
const makVrv::DtDisplayConfiguration displayConfig 
)

Helper function creates observer configurations for each channel This function iterates through the configurations in the display configuration provided and creates and installs an observer configuration for each channel. These configurations are set up with different observer modes, which in turn has them viewing different model sets.

void inspectDisplayWindows ( makVrv::DtDe de)

Helper function to inspect the structure of the display, windows, channels and observers. This function just prints their names to the console.

std::string registerModelDefinition ( makVrv::DtDe de,
const std::string &  dataFile 
)

Helper function populates a makVrv::DtModelDefinitionManager with a model- description for later use. Generally, the manager loads all the model- descriptions from the disk, however, this example demonstrates how it is populated through code. This function returns the unique name generated for the model definition.

void addModelToTheScene ( makVrv::DtDe de,
const std::string &  modelName 
)

Helper function to load a geometry file and add it to the scene. This function creates a makVrv::DtSceneObject which is used to position and move models around the scene. A makVrv::DtOsgSimpleModel is created to manage the model geometry. The makVrv::DtOsgSimpleModel is added to the makVrv::DtSceneObject to place the model geometry in to the scene.

void loadTheScene ( makVrv::DtDe de)

Helper function to load all the models into the scene. For each model filename, this function creates a model-definition, then creates a scene-object to load that definition into the scene.


Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)