VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
exampleMultipleChannelText
multipleChannelTextUtilities.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2014 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvGraphics/DtFontManager.h
>
13
#include <
vrvGraphics/DtOverlayRenderer.h
>
14
15
#include <
vrvCore/DtChannelManager.h
>
16
#include <
vrvCore/DtOverlayManager.h
>
17
18
#include <
vrvUtil/DtChannelConfiguration.h
>
19
#include <
vrvUtil/DtDisplayConfiguration.h
>
20
#include <
vrvUtil/DtWindowConfiguration.h
>
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,
42
makVrv::DtOverlayManager::DefaultOverlays
layerId );
43
44
47
extern
void
createCustomMultiChannelOverlay
(
makVrv::DtDe
& de,
48
makVrv::DtChannelManager::ChannelMap
& channels,
49
makVrv::DtOverlayManager::DefaultOverlays
layerId );
50
53
extern
void
putTextOnOverlay
(
makVrv::DtDe
& de,
makVrv::DtOverlayRenderer
& renderer,
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
80
extern
makVrv::DtChannelConfiguration
makeChannelConfiguration
(
81
makVrv::DtDe
& de,
double
left=0,
double
right=100,
double
bottom=0,
82
double
top=100);
83
88
extern
makVrv::DtWindowConfiguration
makeWindowConfiguration
(
89
makVrv::DtDe
& de,
int
x=100,
int
y=100);
90
91
95
extern
makVrv::DtDisplayConfiguration
makeDisplayConfiguration
(
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);
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)