VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtAreaFacadeInterface.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrvCore/vrvCore.h
>
12
#include <
vrvCore/DtUniqueID.h
>
13
#include <
vrvCore/DtTacticalGraphicUtilities.h
>
14
#include <matrix/vlVector.h>
15
16
#include <string>
17
#include <vector>
18
19
namespace
makVrv
20
{
21
class
DtPolygonModelAgent;
22
class
DtSceneObjectAgent;
23
class
DtAgentManagerInterface;
24
28
class
DT_DLL_VRVCORE
DtAreaFacadeInterface
29
{
30
public
:
32
DtAreaFacadeInterface
(
DtAgentManagerInterface
&, DtSceneObjectAgent* agent,
33
DtElementID
id
,
int
modelSet);
34
36
DtAreaFacadeInterface
(
DtAgentManagerInterface
&,
int
modelSet,
DtElementID
id
,
bool
distribute =
true
);
37
39
virtual
~
DtAreaFacadeInterface
();
40
41
public
:
43
virtual
void
setModelDefinition(
const
std::string&);
44
47
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
48
50
virtual
void
setOutsideColor(
float
r,
float
g,
float
b,
float
a);
51
53
virtual
void
setInsideColor(
float
r,
float
g,
float
b,
float
a);
54
56
virtual
void
setLineWidth(
int
);
57
59
virtual
void
setFill(
bool
);
60
64
virtual
void
setFillPattern(
vrvTacticalGraphicUtilities::FillStyle
);
65
68
virtual
void
setPoints(
const
std::vector<DtVector>&,
const
DtVector
& withOffset = DtVector::zero());
69
71
virtual
void
addPoint(
int
index,
const
DtVector
&);
72
74
virtual
void
setSelected(
bool
);
75
77
virtual
void
removePoint(
int
);
78
80
virtual
void
setStipplePattern(
int
);
81
83
virtual
void
setOrigin(
const
DtVector
&);
84
86
virtual
const
DtVector
& origin()
const
;
87
90
virtual
void
setPoint(
int
iIndex,
const
DtVector
&);
91
93
virtual
void
setUseDynamicOrigin(
bool
);
94
96
virtual
void
setSolid(
bool
);
97
99
virtual
void
setLockUpdates(
bool
);
100
102
virtual
bool
updatesLocked()
const
;
103
105
virtual
void
setVisible(
bool
);
106
108
virtual
void
setPickable(
bool
);
109
111
virtual
const
std::vector<DtVector>& points()
const
;
112
114
virtual
makVrv::DtUniqueID
uniqueId()
const
;
115
117
virtual
makVrv::DtElementID
elementId()
const
;
118
120
virtual
int
modelSet()
const
;
121
125
virtual
void
setScribed(
bool
);
126
127
protected
:
128
DtPolygonModelAgent*
myArea
;
129
DtAgentManagerInterface
&
myAgentManagerInterface
;
130
DtSceneObjectAgent*
mySceneObjectAgent
;
131
bool
myOwnsSceneObjectAgent
;
132
133
float
myOutsideColor[4];
134
float
myInsideColor[4];
135
136
int
myLineWidth
;
137
int
myModelSet
;
138
139
bool
myFill
;
140
141
std::vector<DtVector>
myControlPoints
;
142
143
bool
myOriginSet
;
144
DtVector
myOrigin
;
145
bool
myUpdatesLocked
;
146
bool
mySelected
;
147
148
makVrv::DtElementID
myElementId
;
149
};
150
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)