REntityExportListener
Class in Core Module
Header: #include <src/core/REntityExportListener.h>
Description
Section titled “Description”Abstract base class for classes that wish to be notified when an entity is exported.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”| virtual | ~REntityExportListener() |
| virtual bool | checkCustomProperty(REntity *e) const |
| virtual void | exportEntity(RExporter *exporter, REntity *entity)=0 = 0Called by the document whenever an entity is exporter with one of the registered custom properties. |
| virtual void | registerCustomProperty(const QString &title, const QString ®Exp)Registers the given custom property as trigger. |
Private Attributes
Section titled “Private Attributes”| QSet< QPair< QString, QString > > | registeredProperties |
Member Documentation
Section titled “Member Documentation”~REntityExportListener
Section titled “~REntityExportListener”virtual REntityExportListener::~REntityExportListener()virtual
checkCustomProperty
Section titled “checkCustomProperty”virtual bool REntityExportListener::checkCustomProperty(REntity *e) constvirtual const
exportEntity
Section titled “exportEntity”virtual void REntityExportListener::exportEntity(RExporter *exporter, REntity *entity)=0 = 0pure 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.
registerCustomProperty
Section titled “registerCustomProperty”virtual void REntityExportListener::registerCustomProperty(const QString &title, const QString ®Exp)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.
registeredProperties
Section titled “registeredProperties”QSet<QPair<QString, QString> > REntityExportListener::registeredPropertiesprivate