|
| TemplateImage (const QString &path, Map *map) |
|
| ~TemplateImage () override |
|
const char * | getTemplateType () const override |
| Returns a string which should identify the type of the template uniquely: the class name. More...
|
|
bool | isRasterGraphics () const override |
| Returns true if the template is raster graphics. More...
|
|
bool | saveTemplateFile () const override |
| Saves the template itself, returns true if successful. More...
|
|
void | saveTypeSpecificTemplateConfiguration (QXmlStreamWriter &xml) const override |
| Hook for saving parameters needed by the actual template type. More...
|
|
bool | loadTypeSpecificTemplateConfiguration (QXmlStreamReader &xml) override |
| Hook for loading parameters needed by the actual template type. More...
|
|
bool | loadTemplateFileImpl (bool configuring) override |
| Hook for loading the actual template file non-interactively. More...
|
|
bool | postLoadConfiguration (QWidget *dialog_parent, bool &out_center_in_view) override |
| Does configuration after the actual template is loaded. More...
|
|
void | unloadTemplateFileImpl () override |
| Hook for unloading the template file. More...
|
|
void | drawTemplate (QPainter *painter, const QRectF &clip_rect, double scale, bool on_screen, float opacity) const override |
| Draws the template using the given painter with the given opacity. More...
|
|
QRectF | getTemplateExtent () const override |
| Returns the extent of the template in template coordinates. More...
|
|
bool | canBeDrawnOnto () const override |
| Must return if freehand drawing onto the template is possible. More...
|
|
QPointF | calcCenterOfGravity (QRgb background_color) |
| Calculates the image's center of gravity in template coordinates by iterating over all pixels, leaving out the pixels with background_color. More...
|
|
const QImage & | getImage () const |
| Returns the internal QImage. More...
|
|
const GeoreferencingOptions & | availableGeoreferencing () const |
| Returns which georeferencing methods are known to be available. More...
|
|
bool | canChangeTemplateGeoreferenced () override |
| Returns if the template allows the georefencing state to be changed at all. More...
|
|
bool | trySetTemplateGeoreferenced (bool value, QWidget *dialog_parent) override |
| Tries to change the usage of georeferencing data. More...
|
|
| ~Template () override |
|
Template * | duplicate () const |
| Creates a duplicate of the template. More...
|
|
QString | errorString () const |
| Returns a description of the last error that occurred. More...
|
|
void | saveTemplateConfiguration (QXmlStreamWriter &xml, bool open, const QDir *map_dir=nullptr) const |
| Saves template parameters. More...
|
|
void | switchTemplateFile (const QString &new_path, bool load_file) |
| Changes a template's file without changing the parameters. More...
|
|
bool | execSwitchTemplateFileDialog (QWidget *dialog_parent) |
| Shows the dialog to find a moved template. More...
|
|
bool | configureAndLoad (QWidget *dialog_parent, MapView *view) |
| Does everything needed to load a template. More...
|
|
LookupResult | tryToFindTemplateFile (const QString &map_path) |
| Tries to find the template file non-interactively. More...
|
|
bool | tryToFindAndReloadTemplateFile (const QString &map_path) |
| Tries to find and load the template file non-interactively. More...
|
|
virtual bool | preLoadConfiguration (QWidget *dialog_parent) |
| Does configuration before the actual template is loaded. More...
|
|
bool | loadTemplateFile (bool configuring) |
| Loads the template file. More...
|
|
void | unloadTemplateFile () |
| Unloads the template file. More...
|
|
virtual QRectF | calculateTemplateBoundingBox () const |
| Calculates the template's bounding box in map coordinates. More...
|
|
virtual int | getTemplateBoundingBoxPixelBorder () |
| Returns the extra extent of the template out of the bounding box. More...
|
|
virtual void | setTemplateAreaDirty () |
| Marks the whole area of the template as needing a redraw. More...
|
|
void | drawOntoTemplate (not_null< MapCoordF *> coords, int num_coords, QColor color, float width, QRectF map_bbox) |
| Draws onto the template. More...
|
|
void | applyTemplateTransform (QPainter *painter) const |
| Changes the painter's transformation so it can be used to draw in template coordinates. More...
|
|
void | scale (double factor, const MapCoord ¢er) |
| Scales the template with the given scaling center. More...
|
|
void | rotate (double rotation, const MapCoord ¢er) |
| Rotates the template around the given point. More...
|
|
MapCoordF | mapToTemplate (const MapCoordF &coords) const |
|
MapCoordF | mapToTemplateOther (const MapCoordF &coords) const |
|
MapCoordF | templateToMap (const QPointF &coords) const |
|
MapCoordF | templateToMapOther (const QPointF &coords) const |
|
const PassPointList & | getPassPointList () const |
|
PassPointList & | getPassPointList () |
|
int | getNumPassPoints () const |
|
PassPoint * | getPassPoint (int i) |
|
void | addPassPoint (const PassPoint &point, int pos) |
|
void | deletePassPoint (int pos) |
|
void | clearPassPoints () |
|
void | switchTransforms () |
| Change from adjusted into original state or the other way round. More...
|
|
void | getTransform (TemplateTransform &out) const |
|
void | setTransform (const TemplateTransform &transform) |
|
void | getOtherTransform (TemplateTransform &out) const |
|
void | setOtherTransform (const TemplateTransform &transform) |
|
Map * | getMap () const |
|
const QString & | getTemplateFilename () const |
|
void | setTemplateFileInfo (const QFileInfo &file_info) |
| Changes the path and filename only. Does not do any reloading etc. More...
|
|
const QString & | getTemplatePath () const |
|
void | setTemplatePath (const QString &value) |
| Changes the path and filename only. Does not do any reloading etc. More...
|
|
const QString & | getTemplateRelativePath () const |
|
void | setTemplateRelativePath (const QString &value) |
|
State | getTemplateState () const |
|
void | setTemplateState (State state) |
|
int | getTemplateGroup () const |
|
void | setTemplateGroup (int value) |
|
bool | hasUnsavedChanges () const |
|
void | setHasUnsavedChanges (bool value) |
|
bool | isTemplateGeoreferenced () const |
|
MapCoord | templatePosition () const |
|
void | setTemplatePosition (const MapCoord &coord) |
|
MapCoord | templatePositionOffset () const |
|
void | setTemplatePositionOffset (const MapCoord &offset) |
|
void | applyTemplatePositionOffset () |
|
void | resetTemplatePositionOffset () |
|
qint64 | getTemplateX () const |
|
void | setTemplateX (qint64 x) |
|
qint64 | getTemplateY () const |
|
void | setTemplateY (qint64 y) |
|
double | getTemplateScaleX () const |
|
void | setTemplateScaleX (double scale_x) |
|
double | getTemplateScaleY () const |
|
void | setTemplateScaleY (double scale_y) |
|
double | getTemplateShear () const |
|
void | setTemplateShear (double shear) |
|
double | getTemplateRotation () const |
|
void | setTemplateRotation (double rotation) |
|
bool | isAdjustmentApplied () const |
|
bool | isAdjustmentDirty () const |
|
void | setAdjustmentDirty (bool value) |
|
virtual bool | hasAlpha () const |
| Returns true if the template has elements which are not opaque. More...
|
|
virtual const QMetaObject * | metaObject () const const |
|
| QObject (QObject *parent) |
|
virtual | ~QObject () |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
QString | objectName () const const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const const |
|
bool | isWindowType () const const |
|
bool | signalsBlocked () const const |
|
bool | blockSignals (bool block) |
|
QThread * | thread () const const |
|
void | moveToThread (QThread *targetThread) |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
|
void | killTimer (int id) |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
|
const QObjectList & | children () const const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
|
bool | disconnect (const QObject *receiver, const char *method) const const |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () const const |
|
void | dumpObjectInfo () const const |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const const |
|
QList< QByteArray > | dynamicPropertyNames () const const |
|
void | destroyed (QObject *obj) |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const const |
|
bool | inherits (const char *className) const const |
|
void | deleteLater () |
|
| Q_DISABLE_COPY (Class) |
|
| Q_DISABLE_MOVE (Class) |
|
| Q_DISABLE_COPY_MOVE (Class) |
|
T | qobject_cast (QObject *object) |
|
T | qobject_cast (const QObject *object) |
|
T | qFindChild (const QObject *obj, const QString &name) |
|
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
|
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
|
| Q_CLASSINFO (Name, Value) |
|
| Q_INTERFACES (...) |
|
| Q_PROPERTY (...) |
|
| Q_ENUMS (...) |
|
| Q_FLAGS (...) |
|
| Q_ENUM (...) |
|
| Q_FLAG (...) |
|
| Q_ENUM_NS (...) |
|
| Q_FLAG_NS (...) |
|
| Q_OBJECT Q_OBJECT |
|
| Q_GADGET Q_GADGET |
|
| Q_NAMESPACE Q_NAMESPACE |
|
| Q_SIGNALS Q_SIGNALS |
|
| Q_SIGNAL Q_SIGNAL |
|
| Q_SLOTS Q_SLOTS |
|
| Q_SLOT Q_SLOT |
|
| Q_EMIT Q_EMIT |
|
| Q_INVOKABLE Q_INVOKABLE |
|
| Q_REVISION Q_REVISION |
|
| Q_SET_OBJECT_NAME (Object) |
|
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT |
|
|
static const std::vector< QByteArray > & | supportedExtensions () |
| Returns the filename extensions supported by this template class. More...
|
|
static std::unique_ptr< Template > | loadTemplateConfiguration (QXmlStreamReader &xml, Map &map, bool &open) |
| Creates and returns a template from the configuration in the XML stream. More...
|
|
static const std::vector< QByteArray > & | supportedExtensions () |
| Returns the filename extensions supported by known subclasses. More...
|
|
static std::unique_ptr< Template > | templateForFile (const QString &path, Map *map) |
| Creates a Template instance for the given path. More...
|
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
Template showing a raster image.
Can be georeferenced or non-georeferenced.