VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
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 <
vrvUtil/signalslib.h
>
19
#include <
vrvCore/DtElementData.h
>
20
#include <
vrvCore/DtElementEntry.h
>
21
#include <
vrvCore/DtObserverObject.h
>
22
23
#include <
vrvUtil/DtSignalConnectionManager.h
>
24
namespace
makVrv
25
{
26
class
DtDe;
27
class
DtDriverManager;
28
class
DtObserver;
29
32
class
DT_DLL_VRVCORE
DtAttachManager
:
public
DtVirtualBaseClass
33
{
34
public
:
35
37
typedef
std::vector<DtElementEntry::ElementType>
ElementTypeList
;
38
typedef
std::vector<int>
PartList
;
39
41
static
DtAttachManager
& instance(
DtDe
& de);
42
44
~
DtAttachManager
();
45
47
void
setCurrentAttachableTypes(
const
ElementTypeList
& currentFilterType );
48
50
const
ElementTypeList
& currentAttachableTypes()
const
;
51
54
void
getAttachableParts(
DtElementID
id
,
PartList
& outputPartList)
const
;
55
57
void
toggleOrientToTargetConstraint(
DtObserver
* observer );
58
59
//Emitted when an observer's hide model flag changed
60
boost::signal< void (DtObserver*) >
signal_hideModelChanged
;
61
62
//Emitted when an observer's attached to list changes
63
boost::signal< void (DtObserver*) >
signal_attachedToChanged
;
64
65
//Emitted when an observer's attach type changes
66
boost::signal< void (DtObserver*) >
signal_attachTypeChanged
;
67
68
//Emitted when an observer's attach part changes
69
boost::signal< void (DtObserver*) >
signal_attachPartChanged
;
70
71
boost::signal< void (const ElementTypeList&) >
signal_currentFilterTypeChanged
;
72
73
protected
:
75
DtAttachManager
(
DtDe
& de);
76
77
void
slot_objectsRemoved(
const
DtElementData::UniqueIdList
& removedList );
78
79
void
slot_terrainClosed();
80
81
protected
:
82
DtDe
&
myDe
;
83
ElementTypeList
myCurrentFilterTypes
;
84
DtSignalConnectionManager
myConnections
;
85
};
86
87
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)