VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCore
DtWidget.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtWidget.h,v $ $Revision: 1.10 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtWidget_H_
14
#define DtWidget_H_
15
16
#include <
vrvCore/vrvCore.h
>
17
#include <
vrvCore/DtUniqueID.h
>
18
#include <string>
19
20
namespace
makVrv
21
{
22
23
class
DtDe;
24
27
class
DT_DLL_VRVCORE
DtWidget
28
{
29
public
:
30
DtWidget
(
DtDe
& de,
DtUniqueID
id
);
31
32
virtual
~
DtWidget
();
33
35
virtual
void
setOverlay(
unsigned
int
overlay) = 0;
36
38
virtual
unsigned
int
overlay()
const
= 0;
39
41
virtual
void
setOrderGroup(
unsigned
int
group) = 0;
42
44
virtual
unsigned
int
orderGroup()
const
= 0;
45
47
virtual
void
setParentId(
DtUniqueID
id
);
48
50
virtual
void
setPosition(
float
x,
float
y,
float
z,
float
w = 0) = 0;
51
53
virtual
void
setBackgroundImage(
const
std::string& filename) = 0;
54
56
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a) = 0;
57
60
virtual
void
setOrigin(
float
originX,
float
originY) = 0;
61
63
virtual
void
setSize(
float
w,
float
h) = 0;
64
66
virtual
void
setPadding(
float
paddingX,
float
paddingY) = 0;
67
70
virtual
void
setModelDefinition(
const
std::string& str) = 0;
71
73
virtual
void
setEventsEnabled(
bool
enabled) = 0;
74
76
virtual
void
setVisible(
bool
visible) = 0;
77
78
protected
:
79
DtDe
&
myDe
;
80
DtUniqueID
myId
;
81
DtUniqueID
myParentId
;
82
83
};
84
}
85
86
#endif
87
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)