5 #include "rs_entitycontainer.h"
8 * Holds the data that defines a leader.
14 RS_LeaderData(bool arrowHeadFlag)
16 arrowHead = arrowHeadFlag;
19 friend std::ostream & operator<<(std::ostream & os, const RS_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 RS_Leader: public RS_EntityContainer
37 RS_Leader(RS_EntityContainer * parent = NULL);
38 RS_Leader(RS_EntityContainer * parent, const RS_LeaderData & d);
41 virtual RS_Entity * clone();
42 virtual RS2::EntityType rtti() const;
43 virtual void update();
44 RS_LeaderData getData() const;
46 virtual RS_Entity * addVertex(const Vector & v);
47 virtual void addEntity(RS_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 RS_Leader & l);