VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvCore
DtAttachManager.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtAttachManager.h,v $ $Revision: 1.22 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCore/vrvCore.h
>
16
#include <
vrvCore/DtUniqueID.h
>
17
#include <
vrvUtil/DtVirtualBaseClass.h
>
18
#include <
vrvCore/DtElementData.h
>
19
#include <
vrvCore/DtObserverObject.h
>
20
21
#include <
vrvUtil/DtSignalConnectionManager.h
>
22
namespace
makVrv
23
{
24
class
DtDe;
25
class
DtDriverManager;
26
class
DtObserver;
27
30
class
DT_DLL_VRVCORE
DtAttachManager
:
public
DtVirtualBaseClass
31
{
32
public
:
33
35
typedef
std::vector<DtElementEntry::ElementType>
ElementTypeList
;
36
typedef
std::vector<int>
PartList
;
37
39
static
DtAttachManager
& instance(
DtDe
& de);
40
42
virtual
~
DtAttachManager
();
43
45
void
setCurrentAttachableTypes(
const
ElementTypeList
& currentFilterType );
46
48
const
ElementTypeList
& currentAttachableTypes()
const
;
49
52
void
getAttachableParts(
DtElementID
id
,
PartList
& outputPartList)
const
;
53
55
void
toggleOrientToTargetConstraint(
DtObserver
* observer );
56
57
//Emitted when an observer's hide model flag changed
58
boost::signal< void (DtObserver*) >
signal_hideModelChanged
;
59
60
//Emitted when an observer's attached to list changes
61
boost::signal< void (DtObserver*) >
signal_attachedToChanged
;
62
63
//Emitted when an observer's attach type changes
64
boost::signal< void (DtObserver*) >
signal_attachTypeChanged
;
65
66
//Emitted when an observer's attach part changes
67
boost::signal< void (DtObserver*) >
signal_attachPartChanged
;
68
69
boost::signal< void (const ElementTypeList&) >
signal_currentFilterTypeChanged
;
70
71
protected
:
73
DtAttachManager
(
DtDe
& de);
74
75
void
slot_objectsRemoved(
const
DtElementData::UniqueIdList
& removedList );
76
77
void
slot_terrainClosed();
78
79
protected
:
80
DtDe
&
myDe
;
81
ElementTypeList
myCurrentFilterTypes
;
82
DtSignalConnectionManager
myConnections
;
83
};
84
85
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)