Simple drawing example.
This commit is contained in:
parent
d7fe11913f
commit
f0091f9e04
27 changed files with 450 additions and 68 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue