VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainProfileDataStateView.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
12 
13 #pragma once
14 
15 #include <vrvUtil/signalslib.h>
16 #include <vrfGuiCore/vrfGuiCore.h>
18 #include <vrvCore/DtDataBank.h>
19 #include <vrvCore/DtSimData.h>
22 #include <vrvCore/DtStateView.h>
24 
25 namespace makVrv
26 {
27  class DtDe;
28  class DtSimObjectEntry;
29 }
30 
31 namespace makVrf
32 {
33  template <typename _View>
35  {
36  public:
37 
40 
43 
45  virtual makVrv::DtUnicode name() const;
46 
49  virtual std::vector<DtVector> points();
50 
53  virtual bool setElementID(makVrv::DtUniqueID id);
54 
56  {
57  return myElementID;
58  }
59 
60  virtual void setReversePoints(bool b);
61  virtual bool reversePoints() const
62  {
63  return myReversePoints;
64  }
65 
66  protected:
69 
73 
76  virtual void slot_onStateViewUpdated() = 0;
77 
79  virtual void slot_onUpdateRateChanged(makVrv::DtUniqueID id, int rate);
80 
81  virtual void completeRateChange();
82 
83  protected:
86  std::vector<DtVector> myGeocentricPoints;
87  boost::signalslib::connection myElementIDConnection;
88  boost::signalslib::connection myCompleteRateChangeConnection;
89  boost::signalslib::connection myStateViewUpdateConnection;
92  };
93 }
94 
95 #include <vrfGuiCore/terrainProfileDataStateView.inl>
A unicode string.
Definition: DtUnicode.h:33
virtual bool setElementID(makVrv::DtUniqueID id)
The ID of the element to provide data for.
virtual void slot_simObjectEntryAboutToBeRemoved(makVrv::DtSimObjectEntry &e)
Called when an object is about to be removed, will remove this dialog if the ID is the ID being profi...
boost::signalslib::connection myElementIDConnection
Definition: terrainProfileDataStateView.h:87
bool myReversePoints
Definition: terrainProfileDataStateView.h:91
Contains makVrv::DtSimData class.
boost::signalslib::connection myCompleteRateChangeConnection
Definition: terrainProfileDataStateView.h:88
makVrv::DtElementID id() const
Definition: terrainProfileDataStateView.h:55
virtual void slot_onUpdateRateChanged(makVrv::DtUniqueID id, int rate)
Called when the update rate has changed, make sure we at least keep the 1Hz update rate...
Contains makVrv::DtStateView class.
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
std::vector< DtVector > myGeocentricPoints
Definition: terrainProfileDataStateView.h:86
virtual bool reversePoints() const
Definition: terrainProfileDataStateView.h:61
makVrv::DtSignalConnectionManager myConnections
Definition: terrainProfileDataStateView.h:90
Definition: terrainProfileDataStateView.h:34
A DtSimObjectEntry is an entry for a persistent simulation object like an entity. ...
Definition: DtSimObjectEntry.h:25
makVrv::DtUniqueID myElementID
Definition: terrainProfileDataStateView.h:84
Contains makVrv::DtSimObjectEntry class.
virtual void slot_onStateViewUpdated()=0
Called when the state view is updated, signal that new data has been received.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
DtTerrainProfileDataStateView(makVrv::DtDe &de, makVrv::DtUniqueID id)
CTOR.
Contains makVrv::DtDataBankSignaler class.
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
Base class to provide boost signal/slot management.
boost::signalslib::connection myStateViewUpdateConnection
Definition: terrainProfileDataStateView.h:89
virtual std::vector< DtVector > points()
The list of points to be used to plot for the profile line in the graph.
virtual void setReversePoints(bool b)
virtual ~DtTerrainProfileDataStateView()
DTOR.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
makVrv::DtStateView< _View > * myStateView
Definition: terrainProfileDataStateView.h:85
virtual makVrv::DtUnicode name() const
The name of the object to display in the graph title bar.
Contains makVrv::DtDataBank class.
Contains the makVrf::DtTerrainProfileDataProvider class.
Definition: terrainProfileDataProvider.h:40
virtual const makVrv::DtStateView< _View > * findStateView(makVrv::DtElementID id)=0
Called to find the state view.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)