30 #include "../core/ContextItem.h"
31 #include "../../maptools/Canvas.h"
32 #include "../core/enum/Enums.h"
52 m_paperConfig(paperConfig)
81 m_paperConfig->getPaperSize(pw, ph);
100 m_shadowColor = color;
105 m_paperConfig = pConfig;
111 return m_paperConfig;
116 m_shadowPadding = padding;
121 return m_shadowPadding;
132 m_paperConfig->getPaperSize(pw, ph);
143 m_paperColor = color;
Class responsible for maintaining the drawing context of a MVC component. It is always used by the "M...
Class responsible for paper setting. Size, orientation, custom size, etc.
Class that represents a "Model" part of Paper MVC component. Its coordinate system is the same of sce...
virtual ~PaperModel()
Destructor.
virtual void setPaperColor(te::color::RGBAColor color)
virtual void setBox(te::gm::Envelope box)
Change the bounding rectangle.
bool m_border
true if should be drawn border, false otherwise
virtual void setShadowPadding(double padding)
An utility struct for representing 2D coordinates.
EnumType * m_type
type of the MVC component
virtual void setShadowColor(te::color::RGBAColor color)
te::color::RGBAColor m_shadowColor
void setPos(te::gm::Coord2D pos)
virtual void setPaperConfig(PaperConfig *pConfig)
double m_llx
Lower left corner x-coordinate.
static Enums & getInstance()
It returns a reference to the singleton instance.
An Envelope defines a 2D rectangular region.
void setChangePos(bool change)
virtual te::color::RGBAColor getPaperColor()
double m_lly
Lower left corner y-coordinate.
virtual double getShadowPadding()
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
virtual te::color::RGBAColor getShadowColor()
te::color::RGBAColor m_paperColor
virtual PaperConfig * getPaperConfig() const
te::color::RGBAColor m_borderColor
border color