VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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
namespace
makVrv
24
{
25
class
DtDe;
26
class
DtDriverManager;
27
class
DtObserver;
28
31
class
DT_DLL_VRVCORE
DtAttachManager
:
public
DtVirtualBaseClass
32
{
33
public
:
34
36
typedef
std::vector<DtElementEntry::ElementType>
ElementTypeList
;
37
typedef
std::vector<int>
PartList
;
38
40
static
DtAttachManager
& instance(
DtDe
& de);
41
43
~
DtAttachManager
();
44
46
void
setCurrentAttachableTypes(
const
ElementTypeList
& currentFilterType );
47
49
const
ElementTypeList
& currentAttachableTypes()
const
;
50
53
void
getAttachableParts(
DtElementID
id
,
PartList
& outputPartList)
const
;
54
56
void
toggleOrientToTargetConstraint(
DtObserver
* observer );
57
58
//Emitted when an observer's hide model flag changed
59
boost::signal< void (DtObserver*) >
signal_hideModelChanged
;
60
61
//Emitted when an observer's attached to list changes
62
boost::signal< void (DtObserver*) >
signal_attachedToChanged
;
63
64
//Emitted when an observer's attach type changes
65
boost::signal< void (DtObserver*) >
signal_attachTypeChanged
;
66
67
//Emitted when an observer's attach part changes
68
boost::signal< void (DtObserver*) >
signal_attachPartChanged
;
69
70
boost::signal< void (const ElementTypeList&) >
signal_currentFilterTypeChanged
;
71
72
protected
:
74
DtAttachManager
(
DtDe
& de);
75
76
void
slot_objectsRemoved(
const
DtElementData::UniqueIdList
& removedList );
77
78
protected
:
79
DtDe
&
myDe
;
80
ElementTypeList
myCurrentFilterTypes
;
81
};
82
83
}
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
)