VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfArtPartRequestor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 
15 #include <vrfGuiCore/vrfGuiCore.h>
17 #include <vrfutil/rwUUID.h>
18 
20 
21 #include <vrvCore/DtSimEntry.h>
22 
23 #include <vector>
24 
25 namespace makVrv
26 {
27  class DtSimEntry;
28  class DtDe;
29  class DtSimObjectEntry;
30 }
31 
32 class DtVrfObjectMessage;
33 
34 namespace makVrf
35 {
37  {
38  DtArtParamCurrMinAndMax() : curr(0), min(0), max(0) {};
39  DtArtParamCurrMinAndMax(double c, double m, double x) : curr(c), min(m), max(x) {};
40 
41  double curr;
42  double min;
43  double max;
44  };
45 
46  typedef std::map<DtArtParamType, DtArtParamCurrMinAndMax> DtArtParamCurrMinAndMaxMap;
47  typedef std::map<DtArtPartType, DtArtParamCurrMinAndMaxMap> DtArtPartCurrMinAndMaxMap;
48  typedef std::map<DtUUID, DtArtPartCurrMinAndMaxMap> DtArtPartCurrMinAndMaxByUuid;
49 
52  {
53  public:
55  virtual ~DtVrfArtPartRequestor();
56 
58  static DtVrfArtPartRequestor& instance(makVrv::DtDe& de);
59 
60  virtual void updateAvailableArtParts(makVrv::DtUniqueID);
61  virtual void updateAvailableArtParts(const DtUUID&);
62 
63  const DtArtPartCurrMinAndMaxMap& artPartsFor(makVrv::DtUniqueID) const;
64  const DtArtPartCurrMinAndMaxMap& artPartsFor(const DtUUID&) const;
65 
66  boost::signals2::signal<void (const DtUUID&)> signal_artPartsReceived;
67 
68  virtual bool hasArtPartsFor(makVrv::DtUniqueID) const;
69  virtual bool hasArtPartsFor(const DtUUID&) const;
70 
71  protected:
72 
73  virtual void processAvailableArtParts(const DtVrfObjectMessage* msg);
74 
75  virtual void slot_onSimDataRemoved(makVrv::DtSimObjectEntry&);
76 
77  protected:
78 
81  };
82 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
double curr
Definition: vrfArtPartRequestor.h:39
DtArtPartCurrMinAndMaxByUuid myArtPartTable
Definition: vrfArtPartRequestor.h:80
The class that is the interface between the GUI and the back-end.
Definition: vrfArtPartRequestor.h:51
Contains the DtUUID class declaration.
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
double max
Definition: vrfArtPartRequestor.h:43
std::map< DtUUID, DtArtPartCurrMinAndMaxMap > DtArtPartCurrMinAndMaxByUuid
Definition: vrfArtPartRequestor.h:48
Contains makVrv::DtVirtualBaseClass class.
double min
Definition: vrfArtPartRequestor.h:42
Contains makVrv::DtSimEntry class.
A DtSimObjectEntry is an entry for a persistent simulation object like an entity. ...
Definition: DtSimObjectEntry.h:22
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtArtParamCurrMinAndMax()
Definition: vrfArtPartRequestor.h:38
std::map< DtArtParamType, DtArtParamCurrMinAndMax > DtArtParamCurrMinAndMaxMap
Definition: vrfArtPartRequestor.h:46
std::map< DtArtPartType, DtArtParamCurrMinAndMaxMap > DtArtPartCurrMinAndMaxMap
Definition: vrfArtPartRequestor.h:47
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
Definition: vrfArtPartRequestor.h:36
makVrv::DtDe & myDe
Definition: vrfArtPartRequestor.h:79
boost::signals2::signal< void(const DtUUID &)> signal_artPartsReceived
Definition: vrfArtPartRequestor.h:66

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)