VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
multipleChannelTextUtilities.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
14 
17 
21 
22 #include <matrix/vlVector.h>
23 
24 #include <string>
25 
26 namespace makVrv
27 {
28  class DtDe;
29  class DtChannel;
30 }
31 
32 // This example provides examples of multiple ways to create and use 2D overlays
33 // in VR-Vantage. It creates a window with two channels. It then creates a custom
34 // channel-specific overlay for the second channel, and a second overlay that is
35 // drawn on all channels. It then shows how to put text objects onto the custom
36 // overlays, as well as text onto the default channel-specific for first channel.
37 //
38 
41 extern void createCustomOverlay( makVrv::DtDe& de, makVrv::DtChannel* channel,
43 
44 
50 
54  const std::string& text, const DtVector& position, makVrv::DtFontSP font );
55 
59 extern void create2dOverlays(makVrv::DtDe& de);
60 
67 extern void populate2dOverlays(makVrv::DtDe& de);
68 
72 
73 
81  makVrv::DtDe& de, double left=0, double right=100, double bottom=0,
82  double top=100);
83 
89  makVrv::DtDe& de, int x=100, int y=100);
90 
91 
96  makVrv::DtDe& de, const std::string& name = "My Display Configuration");
97 
104 extern std::string registerModelDefinition(
105  makVrv::DtDe& de, const std::string& dataFile);
106 
107 
114 extern void addModelToTheScene(makVrv::DtDe& de, const std::string& modelName);
115 
116 
121 void loadTheScene(makVrv::DtDe& de);
Contains makVrv::DtChannelManager class.
void putTextOnOverlay(makVrv::DtDe &de, makVrv::DtOverlayRenderer &renderer, const std::string &text, const DtVector &position, makVrv::DtFontSP font)
Place a 2D graphic (in this case text) onto an overlay.
void loadTheScene(makVrv::DtDe &de)
Helper function to load all the models into the scene.
void create2dOverlays(makVrv::DtDe &de)
Helper function to call createCustomOverlay() and createCustomMultiChannelOverlay().
void addModelToTheScene(makVrv::DtDe &de, const std::string &modelName)
Helper function to load a geometry file and add it to the scene.
Contains makVrv::DtChannelConfiguration class.
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:31
Contains makVrv::DtFontManager class.
The abstract Channel Class.
Definition: DtChannel.h:29
void createCustomMultiChannelOverlay(makVrv::DtDe &de, makVrv::DtChannelManager::ChannelMap &channels, makVrv::DtOverlayManager::DefaultOverlays layerId)
Create a custom overlay that will be displayed on all channels.
This owns a list of window configurations.
Definition: DtDisplayConfiguration.h:47
DefaultOverlays
Definition: DtOverlayManager.h:35
Contains makVrv::DtDisplayConfiguration class.
boost::shared_ptr< DtFont > DtFontSP
Definition: DtFontManager.h:20
Configuration for a single channel Serialized and sent to remote displays as necessary to configure r...
Definition: DtChannelConfiguration.h:26
void createCustomOverlay(makVrv::DtDe &de, makVrv::DtChannel *channel, makVrv::DtOverlayManager::DefaultOverlays layerId)
Create a custom overlay on the specified channel.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
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.
std::string registerModelDefinition(makVrv::DtDe &de, const std::string &dataFile)
Helper function populates a makVrv::DtModelDefinitionManager with a model- description for later use...
void populate2dOverlays(makVrv::DtDe &de)
Populate the 2D Overlays with different text for different overlays.
makVrv::DtWindowConfiguration makeWindowConfiguration(makVrv::DtDe &de, int x, int y, unsigned int numChannels=1)
Helper function creates a window-configuration with a default name.
Contains makVrv::DtViewConfiguration class.
std::map< std::string, DtChannel * > ChannelMap
Definition: DtChannelManager.h:45
makVrv::DtDisplayConfiguration makeDisplayConfiguration(makVrv::DtDe &de, const std::string &name="My Display Configuration")
Helper function creates a display-configuration.
The DtOverlayRenderer implements the overlay concept.
Definition: DtOverlayRenderer.h:23

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)