Skip to content

REntityExportListener

Class in Core Module
Header: #include <src/core/REntityExportListener.h>

Abstract base class for classes that wish to be notified when an entity is exported.

Scriptable: This class is available in script environments.

virtual ~REntityExportListener()
virtual bool checkCustomProperty(REntity *e) const
virtual void exportEntity(RExporter *exporter, REntity *entity)=0 = 0
Called by the document whenever an entity is exporter with one of the registered custom properties.
virtual void registerCustomProperty(const QString &title, const QString &regExp)
Registers the given custom property as trigger.
QSet< QPair< QString, QString > > registeredProperties

virtual REntityExportListener::~REntityExportListener()

virtual

virtual bool REntityExportListener::checkCustomProperty(REntity *e) const

virtual const

virtual void REntityExportListener::exportEntity(RExporter *exporter, REntity *entity)=0 = 0

pure virtual

Called by the document whenever an entity is exporter with one of the registered custom properties.

Can be used to for example to ‘decorate’ the entity.

Parameters:

  • exporter: The exporter to use to export decorations to.
  • entity: The entity currently being drawn.

virtual void REntityExportListener::registerCustomProperty(const QString &title, const QString &regExp)

virtual inline

Registers the given custom property as trigger.

The exportEntity function is only called for entities with a custom property that matches the given title and regular expression.

QSet<QPair<QString, QString> > REntityExportListener::registeredProperties

private