Hook up d2d offscreen rendering.
This commit is contained in:
parent
0c84a53643
commit
53a9f7bd15
9 changed files with 130 additions and 58 deletions
|
@ -6,10 +6,10 @@
|
|||
template<class T>
|
||||
class Grid;
|
||||
|
||||
namespace ntk{
|
||||
class Rectangle : public AbstractGeometricItem
|
||||
{
|
||||
public:
|
||||
|
||||
Rectangle(const Point& bottomLeft, const Point& topRight);
|
||||
Rectangle(const Point& bottomLeft, double width, double height);
|
||||
|
||||
|
@ -23,6 +23,11 @@ public:
|
|||
|
||||
Rectangle getBounds() const;
|
||||
|
||||
Type getType() const
|
||||
{
|
||||
return AbstractGeometricItem::Type::RECTANGLE;
|
||||
}
|
||||
|
||||
void sample(Grid<unsigned char>* grid) const override;
|
||||
|
||||
private:
|
||||
|
@ -30,3 +35,5 @@ private:
|
|||
double mWidth{0};
|
||||
double mHeight{0};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue