Fire Core  8.0.0.alpha
GIS framework per tutti gli usi
 Tutto Classi Namespace Funzioni Variabili Ridefinizioni di tipo (typedef) Tipi enumerati (enum) Valori del tipo enumerato Friend
LabelPainter.hpp
1 // Copyright © 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef FIRE_GRAPHICS_LABELPAINTER_HPP_INCLUDED
5 #define FIRE_GRAPHICS_LABELPAINTER_HPP_INCLUDED
6 
7 #include <exception>
8 #include <string>
9 
10 #include "fire/graphics/Painter.hpp"
11 #include "fire/graphics/IGraphicContext.hpp"
12 
19 namespace fire {
26 namespace graphics {
33 class LabelPainter : public Painter {
34  public:
41  static std::string FLD_PATTERN_START;
48  static std::string FLD_PATTERN_END;
55  int _hAlign;
62  int _vAlign;
69  int _hOffset;
76  int _vOffset;
83  std::string _txt;
90  std::string _txtColor;
97  std::string _font;
111  std::string _borderColor;
125  std::string _shadowColor;
149  void draw(const IGraphicContext& grph, const gear::geom::Geometry& geom);
171  void draw(const IGraphicContext& grph, const gear::geom::Geometry& geom, const source::vector::DataRow& data);
178  LabelPainter();
185  ~LabelPainter();
197  LabelPainter(const LabelPainter& source);
214  LabelPainter& operator=(const LabelPainter& source);
215 };
216 } // namespace graphics
217 } // namespace fire
218 
219 #endif
Definition: IGraphicContext.hpp:15
Definition: LabelPainter.hpp:33
std::string _txt
Definition: LabelPainter.hpp:83
static std::string FLD_PATTERN_START
Definition: LabelPainter.hpp:41
int _shadowWidth
Definition: LabelPainter.hpp:118
int _hAlign
Definition: LabelPainter.hpp:55
std::string _borderColor
Definition: LabelPainter.hpp:111
static std::string FLD_PATTERN_END
Definition: LabelPainter.hpp:48
Definition: Geometry.hpp:69
int _borderWidth
Definition: LabelPainter.hpp:104
LabelPainter & operator=(const LabelPainter &source)
std::string _shadowColor
Definition: LabelPainter.hpp:125
int _hOffset
Definition: LabelPainter.hpp:69
std::string _txtColor
Definition: LabelPainter.hpp:90
void draw(const IGraphicContext &grph, const gear::geom::Geometry &geom)
Definition: Painter.hpp:33
int _vAlign
Definition: LabelPainter.hpp:62
int _vOffset
Definition: LabelPainter.hpp:76
std::string _font
Definition: LabelPainter.hpp:97
Oggetto per l'accesso alle colonne di una riga di dati.
Definition: DataRow.hpp:32
int _shadowOffset
Definition: LabelPainter.hpp:132