![]() |
VR-Forces Developer's Guide
|
Contains the makVrf::DtTerrainProfileDataProvider class. This class is a common base class for all objects that wish to provide data to a terrain profile widget. Implement the pure virtual methods lists below, and, be sure to provide support for the provided boost signals in order to assure that your data will be shown correctly in the terrain profile graph.
The following classes use this as a base:
DtTerrainProfileDataStateView DtTerrainProfileDataEnvironmentalListener DtTerrainProfileDataIntervisibilityListener DtTerrainProfileDataTrackHistory – Note that the track history is only valid for the time this object is being used. Once the graph that represents this track history is removed the track history will be deleted. The next time the graph is opened the track history will start again

Public Member Functions | |
| DtTerrainProfileDataProvider (makVrv::DtDe &de) | |
| virtual | ~DtTerrainProfileDataProvider () |
| virtual makVrv::DtUnicode | name () const =0 |
| virtual std::vector< DtVector > | points ()=0 |
| virtual int | color () const |
| virtual bool | allowsTracking () const |
| bool | dataFrozen () const |
| virtual void | setDataFrozen (bool b) |
| virtual bool | allowsVertices () const |
| virtual bool | reversePoints () const |
Public Attributes | |
| boost::signals2::signal< void()> | signal_dataUpdated |
| boost::signals2::signal< void()> | signal_dataRemoved |
| boost::signals2::signal< void(bool)> | signal_dataFrozen |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| bool | myDataFrozen |
|
inline |
CTOR.
|
inlinevirtual |
DTOR.
|
pure virtual |
Override to provide the name of the object to display in the graph title bar.
Implemented in makVrf::DtTerrainProfileDataIntervisibilityListener, makVrf::DtTerrainProfileDataStateView< _View >, makVrf::DtTerrainProfileDataStateView< DtVrlinkSimulatedEnvironmentProcess >, makVrf::DtTerrainProfileDataStateView< makVrv::DtVrlinkSimulatedEntityState >, and makVrf::DtTerrainProfileDataEnvironmentalListener.
|
pure virtual |
Override to provide the list of points to be used to plot for the profile line in the graph. Note that these points must be returned in geocentric form.
Implemented in makVrf::DtTerrainProfileDataIntervisibilityListener, makVrf::DtTerrainProfileDataStateView< _View >, makVrf::DtTerrainProfileDataStateView< DtVrlinkSimulatedEnvironmentProcess >, makVrf::DtTerrainProfileDataStateView< makVrv::DtVrlinkSimulatedEntityState >, and makVrf::DtTerrainProfileDataEnvironmentalListener.
|
inlinevirtual |
Returns the rgba value color of the line. Default is green.
Reimplemented in makVrf::DtTerrainProfileDataEnvironmentalListener, makVrf::DtTerrainProfileDataTrackHistory, and makVrf::DtTerrainProfileDataEnvironmentalStateView.
|
inlinevirtual |
For some providers it does not make sense to allow symbol tracking (i.e. when you are creating a line), so, this method will return whether or not the provider has support for tracking.
Reimplemented in makVrf::DtTerrainProfileDataEnvironmentalListener.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
For some providers it does not make sense to allow vertices to be displayed on the graph due to the fact there could be many of them (i.e. track history profile). By default data providers will show vertices if enabled.
Reimplemented in makVrf::DtTerrainProfileDataTrackHistory.
|
inlinevirtual |
| boost::signals2::signal<void ()> makVrf::DtTerrainProfileDataProvider::signal_dataUpdated |
Signal emitted when there is updated data to provide to the graph.
| boost::signals2::signal<void ()> makVrf::DtTerrainProfileDataProvider::signal_dataRemoved |
Signal emitted when the source data has been removed.
| boost::signals2::signal<void (bool)> makVrf::DtTerrainProfileDataProvider::signal_dataFrozen |
Signal when data is frozen/unfrozen.
|
protected |
|
protected |