VR-Forces 5.0.2 Developer's Guide
 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 
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::signals2::connection myElementIDConnection;
88  boost::signals2::connection myCompleteRateChangeConnection;
89  boost::signals2::connection myStateViewUpdateConnection;
92  };
93 }
94 
95 #include <vrfGuiCore/terrainProfileDataStateView.inl>
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
virtual bool setElementID(makVrv::DtUniqueID id)
The ID of the element to provide data for. If there is an existing ID will switch to the new data...
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...
bool myReversePoints
Definition: terrainProfileDataStateView.h:91
boost::signals2::connection myCompleteRateChangeConnection
Definition: terrainProfileDataStateView.h:88
Contains makVrv::DtSimData class.
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.
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:22
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. Fill in myGeocentricPo...
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
boost::signals2::connection myElementIDConnection
Definition: terrainProfileDataStateView.h:87
DtTerrainProfileDataStateView(makVrv::DtDe &de, makVrv::DtUniqueID id)
CTOR.
boost::signals2::connection myStateViewUpdateConnection
Definition: terrainProfileDataStateView.h:89
Contains makVrv::DtDataBankSignaler class.
Base class to provide boost signal/slot management.
virtual std::vector< DtVector > points()
The list of points to be used to plot for the profile line in the graph. Note that these points must ...
virtual void setReversePoints(bool b)
virtual ~DtTerrainProfileDataStateView()
DTOR.
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:70
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. This class is a common base class for all ob...
Definition: terrainProfileDataProvider.h:41
virtual const makVrv::DtStateView< _View > * findStateView(makVrv::DtElementID id)=0
Called to find the state view. Use the DtVrfStateViewCollectionManager to find the appropriate state ...

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)