Simple drawing example.

This commit is contained in:
James Grogan 2022-12-05 10:59:45 +00:00
parent d7fe11913f
commit f0091f9e04
27 changed files with 450 additions and 68 deletions

View file

@ -10,7 +10,9 @@ public:
Path,
Rectangle,
Circle,
Arc
Arc,
Line,
Polyline
};
public:
@ -29,4 +31,19 @@ protected:
bool mGeometryIsDirty{true};
};
class LineNode : public GeometryNode
{
public:
LineNode(const DiscretePoint& location)
: GeometryNode(location)
{
}
Type getType()
{
return Type::Line;
}
};
using GeometryNodePtr = std::unique_ptr<GeometryNode>;