KiCad PCB EDA Suite
|
#include "tool/construction_manager.h"
#include <chrono>
#include <condition_variable>
#include <thread>
#include <advanced_config.h>
#include <hash.h>
Go to the source code of this file.
Classes | |
class | ACTIVATION_HELPER< T > |
A helper class to manage the activation of a "proposal" after a timeout. More... | |
struct | CONSTRUCTION_MANAGER::PENDING_BATCH |
Functions | |
static std::size_t | HashConstructionBatchSources (const CONSTRUCTION_MANAGER::CONSTRUCTION_ITEM_BATCH &aBatch, bool aIsPersistent) |
Construct a hash based on the sources of the items in the batch. | |
static bool | pointHasEscapedSnapLineX (const VECTOR2I &aCursor, const VECTOR2I &aSnapLineOrigin, int aEscapeRange, EDA_ANGLE aLongRangeEscapeAngle) |
Check if the cursor has moved far enough away from the snap line origin to escape snapping in the X direction. | |
static bool | pointHasEscapedSnapLineY (const VECTOR2I &aCursor, const VECTOR2I &aSnapLineOrigin, int aEscapeRange, EDA_ANGLE aLongRangeEscapeAngle) |
As above, but for the Y direction. | |
|
static |
Construct a hash based on the sources of the items in the batch.
Definition at line 200 of file construction_manager.cpp.
References hash_combine(), and hash_val().
Referenced by CONSTRUCTION_MANAGER::ProposeConstructionItems().
|
static |
Check if the cursor has moved far enough away from the snap line origin to escape snapping in the X direction.
This is defined as within aEscapeRange of the snap line origin, and within aLongRangeEscapeAngle of the vertical line passing through the snap line origin.
Definition at line 432 of file construction_manager.cpp.
References std::abs(), DEGREES_T, EDA_ANGLE::Normalize90(), and VECTOR2< T >::x.
Referenced by SNAP_LINE_MANAGER::GetNearestSnapLinePoint().
|
static |
As above, but for the Y direction.
Definition at line 446 of file construction_manager.cpp.
References std::abs(), EDA_ANGLE::Normalize90(), and VECTOR2< T >::y.
Referenced by SNAP_LINE_MANAGER::GetNearestSnapLinePoint().