#include <rs_leader.h>
Inheritance diagram for RS_Leader:

Public Member Functions | |
| RS_Leader (RS_EntityContainer *parent=NULL) | |
| Constructor. | |
| RS_Leader (RS_EntityContainer *parent, const RS_LeaderData &d) | |
| Constructor. | |
| virtual | ~RS_Leader () |
| Destructor. | |
| virtual RS_Entity * | clone () |
| virtual RS2::EntityType | rtti () const |
| virtual void | update () |
| Implementation of update. | |
| RS_LeaderData | getData () const |
| bool | hasArrowHead () |
| virtual RS_Entity * | addVertex (const RS_Vector &v) |
| Adds a vertex from the endpoint of the last element or sets the startpoint to the point 'v'. | |
| virtual void | addEntity (RS_Entity *entity) |
| Reimplementation of the addEntity method for a normal container. | |
| virtual double | getLength () |
| virtual RS_VectorSolutions | getRefPoints () |
| Must be overwritten to get all reference points of the entity. | |
| virtual RS_Vector | getNearestRef (const RS_Vector &coord, double *dist=NULL) |
| Must be overwritten to get the nearest reference point for this entity. | |
| virtual RS_Vector | getNearestSelectedRef (const RS_Vector &coord, double *dist=NULL) |
| Gets the nearest reference point of this entity if it is selected. | |
| virtual void | move (const RS_Vector &offset) |
| Implementations must move the entity by the given vector. | |
| virtual void | rotate (const RS_Vector ¢er, double angle) |
| Implementations must rotate the entity by the given angle around the given center. | |
| virtual void | scale (const RS_Vector ¢er, const RS_Vector &factor) |
| Implementations must scale the entity by the given factors. | |
| virtual void | mirror (const RS_Vector &axisPoint1, const RS_Vector &axisPoint2) |
| Implementations must mirror the entity by the given axis. | |
| virtual void | moveRef (const RS_Vector &ref, const RS_Vector &offset) |
| Implementations must drag the reference point(s) of all (sub-)entities that are very close to ref by offset. | |
| virtual void | stretch (const RS_Vector &firstCorner, const RS_Vector &secondCorner, const RS_Vector &offset) |
| Implementations must stretch the given range of the entity by the given offset. | |
Protected Attributes | |
| RS_LeaderData | data |
| bool | empty |
|
||||||||||||
|
Constructor.
|
|
|
Reimplementation of the addEntity method for a normal container. This reimplementation deletes the given entity! To add entities use addVertex() instead. Reimplemented from RS_EntityContainer. |
|
|
Adds a vertex from the endpoint of the last element or sets the startpoint to the point 'v'. The very first vertex added is the starting point.
|
|
|
|
|
|
Reimplemented from RS_EntityContainer. |
|
||||||||||||
|
Must be overwritten to get the nearest reference point for this entity.
Reimplemented from RS_EntityContainer. |
|
||||||||||||
|
Gets the nearest reference point of this entity if it is selected. Containers re-implement this method to return the nearest reference point of a selected sub entity.
Reimplemented from RS_EntityContainer. |
|
|
|
|
|
Reimplemented from RS_EntityContainer. |
|
||||||||||||||||
|
Implementations must stretch the given range of the entity by the given offset. This default implementation moves the whole entity if it is completely inside the given range. Reimplemented from RS_EntityContainer. |
|
|
Implementation of update. Updates the arrow. Reimplemented from RS_EntityContainer. |
1.4.4