VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
taskVisualizationShowHideProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
15 
16 #include <vl/globalObjectDesignator.h>
17 
19 
20 namespace makVrv
21 {
22  namespace DT_PROTOCOL_NAMESPACE
23  {
24  class DtVrlinkConnection;
25  class DtEntityElementProcessor;
26  class DtAggregateElementProcessor;
27  class DtVrlinkEnvironmentalStateListenerInterface;
28  }
29 }
30 
31 namespace makVrf
32 {
33  namespace VRF_PROTOCOL_NAMESPACE
34  {
37  {
38  public:
39 
42 
44  static DtTaskVisualizationShowHideProcessor& instance(
46 
48  virtual void showOrHideTaskVisualization(makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEnvironmentalStateListenerInterface* listener);
49 
51  virtual void removeTaskVisualization(makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEnvironmentalStateListenerInterface* listener);
52 
54  virtual void showTasksForObject(makVrv::DtUniqueID obj, bool show);
55 
60 
61  typedef void (*SignalUpdateFunction) (
63  void* usr);
64 
68  virtual void addSignalUpdateFunction(int kind, int category, SignalUpdateFunction func, void* usr);
69 
70  protected:
71 
74 
76  virtual makVrv::DtUniqueID mapTaskedEntityIdToEntityUniqueId(const DtGlobalObjectDesignator& host) const;
77 
79  virtual void addStandardSignalUpdateFunctions();
80 
81  protected:
82 
87 
88  typedef std::set<makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEnvironmentalStateListenerInterface*> TaskVisualizationStateListenerSet;
89 
91  std::set<makVrv::DtUniqueID> myShownTaskedEntities;
92 
95 
97  {
98  SignalUpdateFunction func;
99  void* usr;
100  };
101 
102  typedef std::pair<int, int> KindAndCategory;
103  typedef std::map<KindAndCategory, SignalUpdateFunctionInfo> SignalUpdateFunctionMap;
104 
106  };
107  }
108 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)