VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCore
DtWidgetClasses.hpp
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
7
8
#ifndef DtWidgetClasses_H_
9
#define DtWidgetClasses_H_
10
11
#include <
vrvCore/vrvCore.h
>
12
13
#include <
vrvCore/DtAgent.h
>
14
#include <
vrvCore/DtWidgetAgent.hpp
>
15
16
namespace
makVrv
17
{
18
20
class
DT_DLL_VRVCORE
DtWidgetAgentImplementation
:
public
virtual
DtWidgetAgent
21
{
22
public
:
24
DtWidgetAgentImplementation
();
25
27
virtual
~
DtWidgetAgentImplementation
();
29
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
30
32
virtual
void
setSize(
float
width,
float
height);
33
36
virtual
void
setOverlay(
unsigned
int
overlayId);
37
39
virtual
void
setBackgroundImage(
const
std::string& filename);
40
42
virtual
void
setModelDefinition(
const
std::string& str);
43
45
virtual
void
setEventsEnabled(
bool
enabled);
46
48
virtual
void
setVisible(
bool
visible);
49
52
virtual
void
setOrigin(
float
originX,
float
originY);
53
55
virtual
void
setPadding(
float
paddingX,
float
paddingY);
56
58
virtual
void
setPosition(
float
x,
float
y,
float
z,
float
w);
59
61
virtual
void
setOrderGroup(
unsigned
int
group);
62
63
64
protected
:
65
virtual
DtWidget
* findObjectAsDtWidget();
66
67
};
68
69
}
70
71
#include <
vrvCore/DtAgentDefinition.h
>
72
#include <
vrvCore/DtWidget.h
>
73
74
namespace
makVrv
75
{
76
78
class
DT_DLL_VRVCORE
DtWidgetClassDefinition
:
public
makVrv::DtAgentDefinition
<DtWidget>
79
{
80
public
:
82
DtWidgetClassDefinition
(
const
std::string& className =
"DtWidget"
);
83
85
virtual
~
DtWidgetClassDefinition
();
86
88
enum
FunctionIds
89
{
90
function_setColor
,
91
function_setSize
,
92
function_setOverlay
,
93
function_setBackgroundImage
,
94
function_setModelDefinition
,
95
function_setEventsEnabled
,
96
function_setVisible
,
97
function_setOrigin
,
98
function_setPadding
,
99
function_setPosition
,
100
function_setOrderGroup
,
101
end_FunctionIds
102
};
103
104
};
105
106
}
107
#include <
vrvCore/DtAgentCreator.h
>
108
#include <
vrvCore/DtAgentFactory.h
>
109
110
namespace
makVrv
111
{
112
113
class
DtWidgetClassDefinition;
114
116
class
DT_DLL_VRVCORE
DtWidgetClassesCreator
:
public
makVrv::DtAgentCreator
117
{
118
public
:
119
121
DtWidgetClassesCreator
();
122
124
virtual
~
DtWidgetClassesCreator
();
125
126
static
makVrv::DtAgentCreator
* create();
127
129
virtual
makVrv::DtAgent
* createAgent(
makVrv::DtAgentManagerInterface
& sceneInterface);
130
132
virtual
makVrv::DtAgentUpdateResolverInterface
* createResolver(
makVrv::DtDe
& de,
makVrv::DtUniqueID
id
);
133
134
protected
:
135
DtWidgetClassDefinition
*
myDefinition
;
136
137
static
bool
theRegisteredFlag
;
138
static
makVrv::DtAgentFactory::DtAutoUnregistrar
theAutoUnregistrar
;
139
};
140
141
}
142
143
#endif
144
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)