LuciadCPillar 2023.1.04
luciad::MapEvent Class Referencefinal

Event that indicates that some property of the map has changed. More...

#include <luciad/maps/Map.h>

Public Member Functions

 MapEvent (std::shared_ptr< Map > map, std::string changedProperty)
 Creates a new map event for the given map and changed property. More...
 
const std::string & getChangedProperty () const
 Returns the name of the property that changed. More...
 
const std::shared_ptr< Map > & getMap () const
 Returns the map. More...
 

Detailed Description

Event that indicates that some property of the map has changed.

Since
2023.1

Constructor & Destructor Documentation

◆ MapEvent()

luciad::MapEvent::MapEvent ( std::shared_ptr< Map map,
std::string  changedProperty 
)

Creates a new map event for the given map and changed property.

Parameters
mapthe Map from which the event originates
changedPropertythe changed property

Member Function Documentation

◆ getChangedProperty()

const std::string & luciad::MapEvent::getChangedProperty ( ) const

Returns the name of the property that changed.

Possible values are defined on the Map class. Examples are Map::propertyBackgroundColor and Map::propertyCamera.

Returns
the name of the property that changed.

◆ getMap()

const std::shared_ptr< Map > & luciad::MapEvent::getMap ( ) const

Returns the map.

Returns
the map.