VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainProfileDataProvider.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfGuiCore/vrfGuiCore.h>
12 #include <vrvUtil/signalslib.h>
13 #include <matrix/vlVector.h>
14 #include <vrvUtil/DtUnicode.h>
15 
16 namespace makVrv
17 {
18  class DtDe;
19 }
20 
21 namespace makVrf
22 {
39 
41  {
42  public:
43 
46  : myDe(de)
47  , myDataFrozen(false)
48  {
49  }
50 
53  {
54  }
55 
57  virtual makVrv::DtUnicode name() const = 0;
58 
61  virtual std::vector<DtVector> points() = 0;
62 
64  virtual int color() const
65  {
66  return 255 << 8;
67  }
68 
72  virtual bool allowsTracking() const
73  {
74  return true;
75  }
76 
77  bool dataFrozen() const
78  {
79  return myDataFrozen;
80  }
81 
82  virtual void setDataFrozen(bool b)
83  {
84  if (b != myDataFrozen)
85  {
86  myDataFrozen = b;
87  signal_dataFrozen(b);
88  }
89  }
90 
94  virtual bool allowsVertices() const
95  {
96  return true;
97  }
98 
99  virtual bool reversePoints() const
100  {
101  return false;
102  }
103 
105  boost::signals2::signal<void ()> signal_dataUpdated;
106 
108  boost::signals2::signal<void ()> signal_dataRemoved;
109 
111  boost::signals2::signal<void (bool)> signal_dataFrozen;
112 
113  protected:
116  };
117 }
A unicode string.
Definition: DtUnicode.h:33
boost::signals2::signal< void()> signal_dataRemoved
Signal emitted when the source data has been removed.
Definition: terrainProfileDataProvider.h:108
makVrv::DtDe & myDe
Definition: terrainProfileDataProvider.h:114
virtual ~DtTerrainProfileDataProvider()
DTOR.
Definition: terrainProfileDataProvider.h:52
bool dataFrozen() const
Definition: terrainProfileDataProvider.h:77
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
virtual void setDataFrozen(bool b)
Definition: terrainProfileDataProvider.h:82
boost::signals2::signal< void()> signal_dataUpdated
Signal emitted when there is updated data to provide to the graph.
Definition: terrainProfileDataProvider.h:105
virtual bool allowsVertices() const
For some providers it does not make sense to allow vertices to be displayed on the graph due to the f...
Definition: terrainProfileDataProvider.h:94
DtTerrainProfileDataProvider(makVrv::DtDe &de)
CTOR.
Definition: terrainProfileDataProvider.h:45
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual int color() const
Returns the rgba value color of the line. Default is green.
Definition: terrainProfileDataProvider.h:64
Contains the makVrf::DtTerrainProfileDataProvider class.
Definition: terrainProfileDataProvider.h:40
boost::signals2::signal< void(bool)> signal_dataFrozen
Signal when data is frozen/unfrozen.
Definition: terrainProfileDataProvider.h:111
virtual bool allowsTracking() const
For some providers it does not make sense to allow symbol tracking (i.e.
Definition: terrainProfileDataProvider.h:72
virtual bool reversePoints() const
Definition: terrainProfileDataProvider.h:99
bool myDataFrozen
Definition: terrainProfileDataProvider.h:115

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)