VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtIntervisibilityElement.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: $ $Revision: $ $State: $
7
******************************************************************************/
8
12
13
#pragma once
14
#include <
vrvCore/vrvCore.h
>
15
#include <
vrvCore/DtUniqueID.h
>
16
#include <
vrvCore/DtSharedModelSetSettings.h
>
17
#include <
vrvCore/DtElementEntry.h
>
18
#include <
vrvCore/DtBaseConnection.h
>
19
#include <
vrvUtil/DtUnicode.h
>
20
#include <
vrvUtil/DtSignalConnectionManager.h
>
21
#include <boost/unordered_map.hpp>
22
23
class
DtVector
;
24
25
namespace
makVrv
26
{
27
class
DtDe;
28
class
DtIntervisibilityVisualizerSet;
29
class
DtIntervisibilityStateListener;
30
class
DtStateVisualizer;
31
35
class
DT_DLL_VRVCORE
DtIntervisibilityElement
36
{
37
public
:
38
typedef
boost::unordered_map<int, DtIntervisibilityVisualizerSet*>
39
ModelSetMap
;
40
42
DtIntervisibilityElement
(
DtDe
& de,
DtBaseConnection
& connection,
43
DtIntervisibilityStateListener
&,
const
DtUnicode
& elementDefName,
44
DtElementEntry::ElementType
type,
bool
distribute =
true
);
45
47
virtual
~
DtIntervisibilityElement
();
48
50
virtual
void
setVisible(
bool
visible );
51
53
bool
visible()
const
;
54
57
DtElementID
elementID();
58
61
const
DtUnicode
& definition()
const
;
62
63
inline
const
ModelSetMap
& modelSetMap()
const
64
{
65
return
myModelSetMap;
66
}
67
68
DtIntervisibilityStateListener
& listener()
69
{
70
return
myListener;
71
}
72
73
virtual
void
setSelected(
bool
);
74
inline
bool
selected()
const
75
{
76
return
mySelected;
77
}
78
81
virtual
int
indexOfVertex(
DtUniqueID
id
,
82
DtStateVisualizer
*& visualizer)
const
;
83
86
virtual
void
setVertexSelected(
int
iIndex,
bool
);
87
89
virtual
void
visualizeModelSets();
90
93
virtual
void
setPickable(
bool
);
94
bool
pickable()
const
;
95
99
virtual
bool
circleSelected()
const
;
100
103
virtual
bool
hasCircle()
const
;
104
105
protected
:
106
108
virtual
void
setModelSetEnabled(
int
modelSet,
bool
enabled );
109
111
virtual
DtIntervisibilityVisualizerSet
* createVisualizerSet(
112
int
modelSet)
const
;
113
114
protected
:
115
116
DtDe
&
myDe
;
117
DtBaseConnection
&
myBaseConnection
;
118
DtIntervisibilityStateListener
&
myListener
;
119
DtUnicode
myElementDefinitionName
;
120
DtSignalConnectionManager
myConnections
;
121
ModelSetMap
myModelSetMap
;
122
DtElementEntry::ElementType
myObjectType
;
123
124
bool
myCircleMode
;
125
bool
myDistribute
;
126
bool
myPickable
;
127
bool
mySelected
;
128
bool
myVisible
;
129
};
130
}
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
)