VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Attributes
makVrf::DtTerrainProfileDataProvider Class Referenceabstract

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

Inheritance diagram for makVrf::DtTerrainProfileDataProvider:
Inheritance graph
[legend]

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::DtDemyDe
 
bool myDataFrozen
 

Constructor & Destructor Documentation

makVrf::DtTerrainProfileDataProvider::DtTerrainProfileDataProvider ( makVrv::DtDe de)
inline

CTOR.

virtual makVrf::DtTerrainProfileDataProvider::~DtTerrainProfileDataProvider ( )
inlinevirtual

DTOR.

Member Function Documentation

virtual makVrv::DtUnicode makVrf::DtTerrainProfileDataProvider::name ( ) const
pure virtual

Override to provide the name of the object to display in the graph title bar.

Implemented in makVrf::DtTerrainProfileDataIntervisibilityListener, makVrf::DtTerrainProfileDataEnvironmentalListener, and makVrf::DtTerrainProfileDataStateView.

virtual std::vector<DtVector> makVrf::DtTerrainProfileDataProvider::points ( )
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::DtTerrainProfileDataEnvironmentalListener, and makVrf::DtTerrainProfileDataStateView.

virtual int makVrf::DtTerrainProfileDataProvider::color ( ) const
inlinevirtual
virtual bool makVrf::DtTerrainProfileDataProvider::allowsTracking ( ) const
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.

bool makVrf::DtTerrainProfileDataProvider::dataFrozen ( ) const
inline
virtual void makVrf::DtTerrainProfileDataProvider::setDataFrozen ( bool  b)
inlinevirtual
virtual bool makVrf::DtTerrainProfileDataProvider::allowsVertices ( ) const
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.

virtual bool makVrf::DtTerrainProfileDataProvider::reversePoints ( ) const
inlinevirtual

Member Data Documentation

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.

makVrv::DtDe& makVrf::DtTerrainProfileDataProvider::myDe
protected
bool makVrf::DtTerrainProfileDataProvider::myDataFrozen
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)