LibreCAD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lc::Draggable Class Referenceabstract

#include <draggable.h>

Inheritance diagram for lc::Draggable:

Public Member Functions

virtual std::map< unsigned int,
lc::geo::Coordinate
dragPoints () const =0
 Get all points of the entity that can be dragged. More...
 
virtual lc::entity::CADEntity_CSPtr setDragPoints (std::map< unsigned int, lc::geo::Coordinate > dragPoints) const =0
 Return modified entity. More...
 

Detailed Description

Any entity that we can modify by dragging some of its points

Definition at line 11 of file draggable.h.

Member Function Documentation

virtual std::map<unsigned int, lc::geo::Coordinate> lc::Draggable::dragPoints ( ) const
pure virtual
virtual lc::entity::CADEntity_CSPtr lc::Draggable::setDragPoints ( std::map< unsigned int, lc::geo::Coordinate dragPoints) const
pure virtual

Return modified entity.

Parameters
dragPointsModified points
Returns
New entity or same entity if an error occurred Return the new entity which corresponds to the given points. Points must be associated to the same number given in dragPoints().

Implemented in lc::entity::LWPolyline, lc::entity::Text, lc::entity::DimLinear, lc::entity::DimRadial, lc::entity::DimDiametric, lc::entity::Spline, lc::entity::DimAngular, lc::entity::DimAligned, lc::entity::Arc, lc::entity::Line, lc::entity::Insert, and lc::entity::CustomEntity.


The documentation for this class was generated from the following file: