Go to the documentation of this file.
6#ifndef iview_CDrawBuffer_included
7#define iview_CDrawBuffer_included
11#include <QtGui/QPixmap>
12#include <QtGui/QPainter>
66 mutable std::unique_ptr<QPainter> m_drawContextPtr;
81 Q_ASSERT(m_drawContextPtr !=
nullptr);
83 return *m_drawContextPtr;
Simple rectangle with integer bounds.
Definition of simple 2D size based on integer values.
Index implementation for addressing elements in 2D-space.
void Create(const QPaintDevice &device, ibase::CSize size)
Create new buffer with the given size.
void Reset()
Reset state of this bitmap.
bool IsCreated() const
Check, if bitmap was created.
void CopyRectTo(const i2d::CRect &source, QPaintDevice &device, istd::CIndex2d devicePos) const
Copy rectangle area to specified native paint device.
void CopyRectTo(const i2d::CRect &source, QPainter &drawContext, istd::CIndex2d contextPos) const
Copy rectangle area to specified draw context.
QPainter & GetDrawContext()
Get used painter for drawing operations.
In this library is defined 2D view concept and standard visualisation objects.
© Witold Gantzke and Kirill Lepskiy