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

#include <M3DStyledPointSymbolStore.h>

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

Public Member Functions

 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)
 
- Public Member Functions inherited from Maria::GenericGeoObjectProvider
virtual std::shared_ptr< GenericGeoObjectAdapterGetGeoObject (const Maria::ItemId &itemId) const =0
 

Protected Attributes

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

StyledPointSymbolStore - base class for styled point graphics. Implemented by TrackStore and DrawObjectPointStore

Member Function Documentation

◆ GetAllPoints()

virtual void Maria3D::StyledPointSymbolStore::GetAllPoints ( std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &  points)
pure virtual

Get all points in set.

Implemented in Maria3D::TrackStore, and Maria3D::PointSymbolStore.

◆ GetChangedPoints()

virtual void Maria3D::StyledPointSymbolStore::GetChangedPoints ( std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &  points,
int64_t  generation 
)
pure virtual

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.

Implemented in Maria3D::TrackStore, and Maria3D::PointSymbolStore.

◆ GetDeletedPoints()

virtual void Maria3D::StyledPointSymbolStore::GetDeletedPoints ( std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &  points)
pure virtual

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.

Implemented in Maria3D::TrackStore, and Maria3D::PointSymbolStore.

◆ GetRandomPoints()

virtual void Maria3D::StyledPointSymbolStore::GetRandomPoints ( int  numPoints,
std::vector< std::shared_ptr< Maria::GenericGeoObjectAdapter > > &  tracks 
)
pure virtual

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.

Implemented in Maria3D::PointSymbolStore, and Maria3D::TrackStore.

◆ HasActivePoints()

bool Maria3D::StyledPointSymbolStore::HasActivePoints ( ) const
inline

True if this point set has any active points in the symbol renderer. I.e if it has any points that should be rendered in the next frame.

◆ SetVisible()

void Maria3D::StyledPointSymbolStore::SetVisible ( bool  visible)
inline

Set if this point set should be visible. Setting this to false will cause all points in this set to be removed from the point symbol renderer.

◆ TryLock()

bool Maria3D::StyledPointSymbolStore::TryLock ( )
inline

Lock track manager for exclusive access. This method will try to get a lock on the track manager, preventing updates from the update thread while this lock is active. This must be done when synchronizing with the render thread.


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