LuciadCPillar 2023.1.04
luciad::LayerEvent Class Referencefinal

Event that indicates that some property of a specific layer has changed. More...

#include <luciad/layers/Layer.h>

Public Member Functions

 LayerEvent (std::shared_ptr< Layer > layer, std::string changedProperty)
 Creates a new layer event that can be used to notify that the given property has changed for the given layer. More...
 
const std::string & getChangedProperty () const
 Returns the name of the property that changed. More...
 
const std::shared_ptr< Layer > & getLayer () const
 Returns the affected layer. More...
 

Detailed Description

Event that indicates that some property of a specific layer has changed.

Constructor & Destructor Documentation

◆ LayerEvent()

luciad::LayerEvent::LayerEvent ( std::shared_ptr< Layer layer,
std::string  changedProperty 
)

Creates a new layer event that can be used to notify that the given property has changed for the given layer.

Parameters
layera layer
changedPropertythe changed property

Member Function Documentation

◆ getChangedProperty()

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

Returns the name of the property that changed.

Returns
the name of the property that changed.

◆ getLayer()

const std::shared_ptr< Layer > & luciad::LayerEvent::getLayer ( ) const

Returns the affected layer.

Returns
the affected layer.