VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>
18 #include <vrvCore/DtElementData.h>
20 
22 namespace makVrv
23 {
24  class DtDe;
25  class DtDriverManager;
26  class DtObserver;
27 
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:
83  };
84 
85 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)