VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
Dt2DRectangleStateVisualizer.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2012 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <
vrvCore/DtStateVisualizer.h
>
14
#include <
vrvCore/DtRemoteGraphicVisualizerAttributes.h
>
15
#include <vrvCore/DtWindowPolygonAgent.hpp>
16
#include <
vrvCore/Dt2DRectangleStateListener.h
>
17
#include <
vrvCore/DtVisibilityAdapter.h
>
18
19
namespace
makVrv
20
{
23
class
DT_DLL_VRVCORE
Dt2DRectangleStateVisualizer
:
public
DtStateVisualizer
,
24
public
DtRemoteGraphicVisualizerAttributes
25
{
26
public
:
28
Dt2DRectangleStateVisualizer
(
DtBaseConnection
& simulation,
29
DtStateListener
& listener,
int
modelSet);
30
32
virtual
~
Dt2DRectangleStateVisualizer
();
33
35
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
36
38
virtual
void
setFlashing(
bool
flashing);
39
42
virtual
void
setDimensions(
double
xLength,
double
yLength);
43
46
virtual
void
setBottomLeftCorner(
double
x,
double
y);
47
50
virtual
void
setRotation(
double
rotation);
51
53
virtual
void
setScale(
double
scale);
54
57
virtual
void
setFillPattern(
unsigned
int
pattern);
58
60
virtual
void
setFill(
bool
fill);
61
64
virtual
void
updateVertices();
65
67
virtual
const
DtStateVisualizer::TypeInfo
& typeInfo()
const
;
68
70
static
const
DtStateVisualizer::TypeInfo
& theTypeInfo();
71
72
protected
:
76
virtual
void
setVisible(
bool
yesNo);
77
79
virtual
void
createModelAgents();
80
89
virtual
void
destroyModelAgents();
90
92
virtual
void
setModelDefinitionForAgents();
93
94
protected
:
95
96
DtWindowPolygonAgent*
myPolygonAgent
;
97
DtVisibilityAdapter<DtWindowPolygonAgent>
*
myVisibilityAdapter
;
98
99
double
myWidth
;
100
double
myHeight
;
101
double
myBottomLeftX
;
102
double
myBottomLeftY
;
103
};
104
107
typedef
DtStateVisualizerCreatorTemplate<Dt2DRectangleStateVisualizer>
108
Dt2DRectangleStateVisualizerCreator
;
109
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)