5 #include "entitycontainer.h"
8 * Holds the data that defines a leader.
14 LeaderData(bool arrowHeadFlag)
16 arrowHead = arrowHeadFlag;
19 friend std::ostream & operator<<(std::ostream & os, const LeaderData & /*ld*/)
25 /** true: leader has an arrow head. false: no arrow. */
30 * Class for a leader entity (kind of a polyline arrow).
32 * @author Andrew Mustun
34 class Leader: public EntityContainer
37 Leader(EntityContainer * parent = NULL);
38 Leader(EntityContainer * parent, const LeaderData & d);
41 virtual Entity * clone();
42 virtual RS2::EntityType rtti() const;
43 virtual void update();
44 LeaderData getData() const;
46 virtual Entity * addVertex(const Vector & v);
47 virtual void addEntity(Entity * entity);
48 virtual double getLength();
49 virtual void move(Vector offset);
50 virtual void rotate(Vector center, double angle);
51 virtual void scale(Vector center, Vector factor);
52 virtual void mirror(Vector axisPoint1, Vector axisPoint2);
53 virtual void stretch(Vector firstCorner, Vector secondCorner, Vector offset);
55 friend std::ostream & operator<<(std::ostream & os, const Leader & l);