VR-Forces 5.0.3 Developer's Guide
 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 
13 #include <matrix/vlVector.h>
14 #include <vrvUtil/DtUnicode.h>
15 #include <boost/signals2.hpp>
16 
17 namespace makVrv
18 {
19  class DtDe;
20 }
21 
22 namespace makVrf
23 {
40 
42  {
43  public:
44 
47  : myDe(de)
48  , myDataFrozen(false)
49  {
50  }
51 
54  {
55  }
56 
58  virtual makVrv::DtUnicode name() const = 0;
59 
62  virtual std::vector<DtVector> points() = 0;
63 
65  virtual int color() const
66  {
67  return 255 << 8;
68  }
69 
73  virtual bool allowsTracking() const
74  {
75  return true;
76  }
77 
78  bool dataFrozen() const
79  {
80  return myDataFrozen;
81  }
82 
83  virtual void setDataFrozen(bool b)
84  {
85  if (b != myDataFrozen)
86  {
87  myDataFrozen = b;
88  signal_dataFrozen(b);
89  }
90  }
91 
95  virtual bool allowsVertices() const
96  {
97  return true;
98  }
99 
100  virtual bool reversePoints() const
101  {
102  return false;
103  }
104 
106  boost::signals2::signal<void ()> signal_dataUpdated;
107 
109  boost::signals2::signal<void ()> signal_dataRemoved;
110 
112  boost::signals2::signal<void (bool)> signal_dataFrozen;
113 
114  protected:
117  };
118 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
boost::signals2::signal< void()> signal_dataRemoved
Signal emitted when the source data has been removed.
Definition: terrainProfileDataProvider.h:109
makVrv::DtDe & myDe
Definition: terrainProfileDataProvider.h:115
virtual ~DtTerrainProfileDataProvider()
DTOR.
Definition: terrainProfileDataProvider.h:53
bool dataFrozen() const
Definition: terrainProfileDataProvider.h:78
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
virtual void setDataFrozen(bool b)
Definition: terrainProfileDataProvider.h:83
boost::signals2::signal< void()> signal_dataUpdated
Signal emitted when there is updated data to provide to the graph.
Definition: terrainProfileDataProvider.h:106
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:95
DtTerrainProfileDataProvider(makVrv::DtDe &de)
CTOR.
Definition: terrainProfileDataProvider.h:46
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
virtual int color() const
Returns the rgba value color of the line. Default is green.
Definition: terrainProfileDataProvider.h:65
Contains the makVrf::DtTerrainProfileDataProvider class. This class is a common base class for all ob...
Definition: terrainProfileDataProvider.h:41
boost::signals2::signal< void(bool)> signal_dataFrozen
Signal when data is frozen/unfrozen.
Definition: terrainProfileDataProvider.h:112
virtual bool allowsTracking() const
For some providers it does not make sense to allow symbol tracking (i.e. when you are creating a line...
Definition: terrainProfileDataProvider.h:73
virtual bool reversePoints() const
Definition: terrainProfileDataProvider.h:100
bool myDataFrozen
Definition: terrainProfileDataProvider.h:116

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)