VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSmokeElement.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvVrl/vrvVrl.h>
16 #include <vrvCore/DtUniqueID.h>
18 #include <vrvVrl/DtVrlinkElement.h>
20 
21 #include <boost/unordered_map.hpp>
22 
23 namespace makVrv
24 {
25 
26  namespace DT_PROTOCOL_NAMESPACE
27  {
28 
29  class DtVrlinkConnection;
30  class DtSmokeVisualizerSet;
31  class DtVrlinkSmokeStateListener;
32 
37  {
38  public:
39 
40  typedef boost::unordered_map<int, DtSmokeVisualizerSet*>
42 
46 
48  virtual ~DtSmokeElement();
49 
51  virtual void visualize(const DtSharedModelSetSettings::ModelSetVisualizedMap& sets);
52 
55  virtual void setModelSetEnabled( int modelSet, bool b );
56 
58  virtual const ModelSetMap& modelSetMap() const;
59 
61  inline DtVrlinkSmokeStateListener& listener();
62 
63  virtual DtElementEntry::ObjectType elementType() const;
64 
65  template <typename VisualizerClass>
66  void findVisualizers( std::vector<VisualizerClass*>& visualizers )
67  {
68  ModelSetMap::iterator i = mySmokeModelSetMap.begin();
69  ModelSetMap::iterator e = mySmokeModelSetMap.end();
70  for ( ; i != e; ++i )
71  {
72  i->second->findVisualizers(visualizers);
73  }
74  }
75 
77  virtual void setVisible( bool vis );
78 
79  protected:
80 
81  //Get the current definitions, in this class this function does nothing.
82  virtual void getDefinitions( std::vector<DtUnicode>& definitions );
83 
84  virtual void slot_SmokeEnabled( bool enabled );
85 
86  private:
90 
94 
97  DtSmokeElement& operator=( const DtSmokeElement& );
98 
99  protected:
100 
106  };
107 
108  }
109 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)