2022-11-14 11:19:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class DrawingContext;
|
|
|
|
|
|
|
|
class AbstractPainter
|
|
|
|
{
|
|
|
|
public:
|
2023-01-05 12:06:17 +00:00
|
|
|
AbstractPainter(DrawingContext* context)
|
|
|
|
: mDrawingContext(context)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-11-14 11:19:51 +00:00
|
|
|
virtual ~AbstractPainter() = default;
|
2023-01-05 12:06:17 +00:00
|
|
|
virtual void paint() = 0;
|
2023-01-11 10:21:18 +00:00
|
|
|
virtual bool supportsGeometryPrimitives() const { return false; };
|
2023-01-05 12:06:17 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
DrawingContext* mDrawingContext{ nullptr };
|
2022-11-14 11:19:51 +00:00
|
|
|
};
|