Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria3D::TrackStore Class Reference

#include <M3DTrackStore.h>

Inheritance diagram for Maria3D::TrackStore:
Maria3D::StyledPointSymbolStore Maria::GenericGeoObjectProvider

Public Member Functions

 TrackStore (const std::string &listId, std::shared_ptr< Maria::TrackDataFactory > dataFactory, std::shared_ptr< Maria::StyleSet > styleSet, const std::string &styleCategoryName)
 
void UpdateTracks (const TPG::Proto3::Track::PackedTracksResult &result)
 
void UpdateTrack (std::shared_ptr< Maria::TrackFieldDefinitions > fieldDefs, const TPG::Proto3::Track::PackedTrackMessage &ptm, long generation)
 
void UpdateTrack (const TPG::Proto3::Track::PackedTrackMessage &ptm, long generation)
 
void UpdateFieldDefinitions (const TPG::Proto3::Track::FieldDefinitionsMessage &fdm)
 
const std::shared_ptr< Maria::TrackFieldDefinitions > & GetFieldDefs ()
 
bool GetTrackFields (const Maria::TrackData &track, std::vector< Maria::TrackField > &fields)
 
std::string GetFieldValue (const Maria::TrackData &track, const std::string &fieldName)
 
std::shared_ptr< Maria::TrackDataGetTrack (const Maria::ItemId &itemId) const
 
void EraseTrack (const Maria::ItemId &itemId)
 
std::shared_ptr< Maria::GenericGeoObjectAdapterGetGeoObject (const Maria::ItemId &itemId) const override
 
int GetNumPoints () const override
 
void GetChangedPoints (std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &points, int64_t generation) override
 
void GetDeletedPoints (std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &points) override
 
void GetRandomPoints (int numPoints, std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &tracks) override
 
void GetAllPoints (std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &points) override
 
- Public Member Functions inherited from Maria3D::StyledPointSymbolStore
 StyledPointSymbolStore (const std::string &listId, std::shared_ptr< Maria::StyleSet > styleSet, const std::string &styleCategoryName)
 
const std::string & GetListId () const
 
virtual int GetNumPoints () const =0
 
virtual void GetChangedPoints (std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &points, int64_t generation)=0
 
virtual void GetRandomPoints (int numPoints, std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &tracks)=0
 
virtual void GetDeletedPoints (std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &points)=0
 
virtual void GetAllPoints (std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &points)=0
 
virtual bool GetPosition (const Maria::ItemId &itemId, double &lat, double &lon, double &alt)
 
bool TryLock ()
 
void Lock ()
 
void Unlock ()
 
int64_t GetLastKnownGeneration () const
 
void SetLastKnownGeneration (int64_t gen)
 
const std::map< Maria::ItemId, std::shared_ptr< Maria::CompositeStyleItem > > & GetResolvedStyles () const
 
std::shared_ptr< Maria::CompositeStyleItemGetResolvedStyle (const Maria::ItemId &id)
 
std::string GetStyleCategoryName () const
 
void SetStyleCategoryName (const std::string &styleCategoryName)
 
void setStyleSet (const std::shared_ptr< Maria::StyleSet > &styleSet)
 
void UpdateStyling (bool forceFullUpdate=false)
 
void UpdateRedraw ()
 
bool NeedsRedraw () const
 
void SelectPoint (const Maria::ItemId &itemId)
 
void DeselectPoint (const Maria::ItemId &itemId)
 
const std::set< Maria::ItemId > & GetSelectedPoints () const
 
const std::set< Maria::ItemId > & GetDeselectedPoints () const
 
void ClearDeselectedPoints ()
 
bool IsVisible () const
 True if this point set is visible.
 
void SetVisible (bool visible)
 
bool HasActivePoints () const
 
void SetActivePoints (bool activePoints)
 Set to false when the point symbol set is invisible and all active points have been removed.
 
void clearItemStates (const std::string &instanceId)
 
void setItemState (const std::string &key, const std::string &instanceId, Maria::ItemContext::ItemState itemState)
 
void setGlobalState (const std::string &key, Maria::ItemContext::ItemState globalState)
 
void setContextVariable (const std::string &key, const std::string &value)
 
virtual std::shared_ptr< GenericGeoObjectAdapterGetGeoObject (const Maria::ItemId &itemId) const =0
 

Additional Inherited Members

- Protected Attributes inherited from Maria3D::StyledPointSymbolStore
std::string _listId
 
std::mutex _mutex
 
int64_t _lastKnownGeneration
 
int64_t _styleUpdateGeneration
 
int64_t _redrawGeneration
 
std::string _styleCategoryName
 
std::shared_ptr< Maria::ItemContext_styleContext
 
std::shared_ptr< Maria::StyleSet_styleSet
 
std::map< Maria::ItemId, std::shared_ptr< Maria::CompositeStyleItem > > _resolvedStyles
 
std::set< Maria::ItemId_selectedItems
 
std::set< Maria::ItemId_deselectedItems
 
bool _dirty
 
bool _visible
 
bool _activePoints
 

Detailed Description

TrackStore - Short description. Detailed description.

Member Function Documentation

◆ GetAllPoints()

void Maria3D::TrackStore::GetAllPoints ( std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &  points)
inlineoverridevirtual

Get all points in set.

Implements Maria3D::StyledPointSymbolStore.

◆ GetChangedPoints()

void Maria3D::TrackStore::GetChangedPoints ( std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &  points,
int64_t  generation 
)
inlineoverridevirtual

Get list of points. This method returns a list of points that have been changed later than the given generation ID. If no generation ID is given, all tracks are returned.

Implements Maria3D::StyledPointSymbolStore.

◆ GetDeletedPoints()

void TrackStore::GetDeletedPoints ( std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &  points)
overridevirtual

Get all points marked for deletion. This method should also clear the list of deleted points, so the next call to this method should return an empty list.

Implements Maria3D::StyledPointSymbolStore.

◆ GetFieldValue()

std::string TrackStore::GetFieldValue ( const Maria::TrackData track,
const std::string &  fieldName 
)

Get a specific field value for a track

◆ GetGeoObject()

std::shared_ptr< Maria::GenericGeoObjectAdapter > Maria3D::TrackStore::GetGeoObject ( const Maria::ItemId itemId) const
inlineoverridevirtual

◆ GetNumPoints()

int Maria3D::TrackStore::GetNumPoints ( ) const
inlineoverridevirtual

◆ GetRandomPoints()

void Maria3D::TrackStore::GetRandomPoints ( int  numPoints,
std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &  tracks 
)
inlineoverridevirtual

Get a chunk of points from the point list. This method is used to get a new chunk of the track list at regular intervals. Each call to this method will return a new chunk until we have visisted the whole list, after which we start at the beginning again.

Implements Maria3D::StyledPointSymbolStore.

◆ GetTrackFields()

bool TrackStore::GetTrackFields ( const Maria::TrackData track,
std::vector< Maria::TrackField > &  fields 
)

Get all fields for a track.


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