Class StringPlugin

Inheritance Relationships

Base Type

  • public mapviz::MapvizPlugin

Class Documentation

class StringPlugin : public mapviz::MapvizPlugin

Public Types

enum Anchor

Values:

enumerator TOP_LEFT
enumerator TOP_CENTER
enumerator TOP_RIGHT
enumerator CENTER_LEFT
enumerator CENTER
enumerator CENTER_RIGHT
enumerator BOTTOM_LEFT
enumerator BOTTOM_CENTER
enumerator BOTTOM_RIGHT
enum Units

Values:

enumerator PIXELS
enumerator PERCENT

Public Functions

StringPlugin()
~StringPlugin() override = default
bool Initialize(QGLWidget *canvas) override
inline void Shutdown() override
virtual void Draw(double x, double y, double scale) override
virtual void Paint(QPainter *painter, double x, double y, double scale) override
inline void Transform() override
void LoadConfig(const YAML::Node &node, const std::string &path) override
void SaveConfig(YAML::Emitter &emitter, const std::string &path) override
QWidget *GetConfigWidget(QWidget *parent) override
inline virtual bool SupportsPainting() override
void SetText(const QString &text)

Protected Functions

void PaintText(QPainter *painter)
void PrintError(const std::string &message) override
void PrintInfo(const std::string &message) override
void PrintWarning(const std::string &message) override

Protected Slots

void SelectColor()
void SelectFont()
void SelectTopic()
void TopicEdited()
void SetAnchor(QString anchor)
void SetUnits(QString units)
void SetOffsetX(int offset)
void SetOffsetY(int offset)