16 Insert(Insert_CSPtr other,
bool sameID =
false);
21 const Document_SPtr&
document()
const;
25 CADEntity_CSPtr
rotate(
const geo::Coordinate& rotation_center,
const double rotation_angle)
const override;
34 std::map<unsigned int, geo::Coordinate>
dragPoints()
const override;
38 double minDistanceToSnap,
int maxNumberOfSnapPoints)
const override;
virtual std::vector< EntityCoordinate > snapPoints(const geo::Coordinate &coord, const SimpleSnapConstrain &simpleSnapConstrain, double minDistanceToSnap, int maxNumberOfSnapPoints) const override
Find a number of snap points the line has available This function returns a ordered list...
CADEntity_CSPtr setDragPoints(std::map< unsigned int, lc::geo::Coordinate > dragPoints) const override
Return modified entity.
Block_CSPtr _displayBlock
Layer_CSPtr layer() const
layer return the layer this entity is placed on
Insert(Insert_CSPtr other, bool sameID=false)
const Block_CSPtr & displayBlock() const
MetaInfo_CSPtr metaInfo() const
DECLARE_SHORT_SHARED_PTR(Document)
void dispatch(EntityDispatch &dispatch) const override
std::map< unsigned int, geo::Coordinate > dragPoints() const override
Get all points of the entity that can be dragged.
CADEntity_CSPtr scale(const geo::Coordinate &scale_center, const geo::Coordinate &scale_factor) const override
Function implementation for Scale.
const geo::Area boundingBox() const override
boundingBox Return the bounding box of this entity. This should be as tight around the entity as poss...
CADEntity_CSPtr modify(Layer_CSPtr layer, const MetaInfo_CSPtr metaInfo, Block_CSPtr block) const override
modify Return a new entity with the same ID bit with possible modified metainfo and/pr layer informat...
CADEntity_CSPtr mirror(const geo::Coordinate &axis1, const geo::Coordinate &axis2) const override
CADEntity_CSPtr copy(const geo::Coordinate &offset) const override
Function for Copy.
Block_CSPtr block() const
Return the current entity block.
const geo::Coordinate & position() const
void calculateBoundingBox()
const Document_SPtr & document() const
virtual geo::Coordinate nearestPointOnPath(const geo::Coordinate &coord) const override
Find the nearest point on the path for this entity for the coordinate coord The path of a entity that...
geo::Coordinate _position
CADEntity_CSPtr move(const geo::Coordinate &offset) const override
Function for Move.
void on_addEntityEvent(const lc::AddEntityEvent &)
void on_removeEntityEvent(const lc::RemoveEntityEvent &)
CADEntity_CSPtr rotate(const geo::Coordinate &rotation_center, const double rotation_angle) const override
Function implementation for rotate.