| 
    KiCad PCB EDA Suite
    
   | 
 
#include "tool/construction_manager.h"#include <algorithm>#include <chrono>#include <cmath>#include <limits>#include <numeric>#include <utility>#include <wx/timer.h>#include <wx/debug.h>#include <wx/log.h>#include <advanced_config.h>#include <math/util.h>#include <hash.h>#include <trace_helpers.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 VECTOR2I | normalizeDirection (const VECTOR2I &aDir) | 
| static std::optional< int > | findDirectionIndex (const std::vector< VECTOR2I > &aDirections, const VECTOR2I &aDelta) | 
      
  | 
  static | 
Definition at line 432 of file construction_manager.cpp.
References normalizeDirection(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by SNAP_LINE_MANAGER::SetDirections(), SNAP_LINE_MANAGER::SetSnapLineEnd(), and SNAP_LINE_MANAGER::SetSnappedAnchor().
      
  | 
  static | 
Construct a hash based on the sources of the items in the batch.
Definition at line 206 of file construction_manager.cpp.
References hash_combine(), and hash_val().
Referenced by CONSTRUCTION_MANAGER::ProposeConstructionItems().
Definition at line 406 of file construction_manager.cpp.
References std::abs(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by findDirectionIndex(), and SNAP_LINE_MANAGER::SetDirections().