VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVrlink2DLaserDesignatorVisualizer.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 
12 #ifndef DT_PROTOCOL_NAMESPACE
13 #error Namespace Protocol Macro DT_PROTOCOL_NAMESPACE not defined.
14 #endif
15 
18 #include <boost/function.hpp>
19 
20 namespace makVrv
21 {
22  namespace DT_PROTOCOL_NAMESPACE
23  {
26  {
27  public:
31  DtStateListener& listener, int modelSet);
32 
34 
36  virtual void setDesignatorId( const std::string& designator );
37 
39  virtual void setDesignatedObjectId( const std::string& designee );
40 
41  protected:
42 
44  {
45  FunctionID_setDesignatorId = 0
46  , FunctionID_setDesignatedObjectId = 1
47  , FunctionIdsSize = 2
48  };
49 
52  virtual bool findSceneObjectId( const std::string& globalObjectDesignator,
53  DtUniqueID& sceneObjId );
54 
55  // These methods are all used to deal with designators and designees
56  // that haven't been discovered yet
57 
60  virtual void waitForEntity(const std::string& idSought, FunctionIDs funcToCall);
61 
64  virtual void slot_entityCreated( DtVrlinkEntityStateListener& esl,
65  const std::string& idSought, FunctionIDs funcToCall );
66 
67  protected:
69 
70  // This is used to track connections to the existence listener for the discovery
71  // of specific entities (used for designator and designee when needed)
73 
74  // This is a vector of the calls that can be made when an entity is discovered
75  typedef std::vector<boost::function<void (DtUniqueID )> > DiscoveredEntityFunctions;
77  };
78 
82  }
83 }

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)