MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / canStartFollowing

Method canStartFollowing

src/tools/tool_helpers.cpp:543–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541// ### FollowPathToolHelper ###
542
543bool FollowPathToolHelper::canStartFollowing(const SnappingToolHelperSnapInfo& snap_info) const noexcept
544{
545 return (snap_info.type == SnappingToolHelper::ObjectCorners
546 || snap_info.type == SnappingToolHelper::ObjectPaths
547 || snap_info.type == SnappingToolHelper::LineBorders)
548 && snap_info.object->getType() == Object::Path; // type implies object != nullptr
549}
550
551void FollowPathToolHelper::startFollowing(const SnappingToolHelperSnapInfo& snap_info)
552{

Callers 1

mousePressEventMethod · 0.80

Calls 1

getTypeMethod · 0.45

Tested by

no test coverage detected