| 
    KiCad PCB EDA Suite
    
   | 
 
Represent a very simple geometry manager for items that have a start and end point. More...
#include <two_point_geom_manager.h>
Public Member Functions | |
| void | SetOrigin (const VECTOR2I &aOrigin) | 
| < Set the origin of the ruler (the fixed end)   | |
| VECTOR2I | GetOrigin () const | 
| void | SetEnd (const VECTOR2I &aEnd) | 
| Set the current end of the rectangle (the end that moves with the cursor.   | |
| VECTOR2I | GetEnd () const | 
| void | SetAngleSnap (LEADER_MODE aSnap) | 
| LEADER_MODE | GetAngleSnap () const | 
| bool | IsReset () const | 
| void | Reset () | 
| Reset the manager to the initial state.   | |
| bool | IsEmpty () const | 
Private Attributes | |
| VECTOR2I | m_origin | 
| VECTOR2I | m_end | 
| LEADER_MODE | m_angleSnap = LEADER_MODE::DIRECT | 
| bool | m_originSet = false | 
Represent a very simple geometry manager for items that have a start and end point.
Definition at line 40 of file two_point_geom_manager.h.
      
  | 
  inline | 
Definition at line 75 of file two_point_geom_manager.h.
References m_angleSnap.
      
  | 
  inline | 
Definition at line 68 of file two_point_geom_manager.h.
References m_end.
Referenced by DRAWING_TOOL::drawShape(), POSITION_RELATIVE_TOOL::InteractiveOffset(), and updateSegmentFromGeometryMgr().
      
  | 
  inline | 
Definition at line 50 of file two_point_geom_manager.h.
References m_origin.
Referenced by DRAWING_TOOL::drawShape(), POSITION_RELATIVE_TOOL::InteractiveOffset(), and updateSegmentFromGeometryMgr().
      
  | 
  inline | 
Definition at line 93 of file two_point_geom_manager.h.
References m_end, m_origin, and m_originSet.
Referenced by DRAWING_TOOL::drawShape().
      
  | 
  inline | 
Definition at line 80 of file two_point_geom_manager.h.
References m_originSet.
Referenced by updateSegmentFromGeometryMgr().
      
  | 
  inline | 
Reset the manager to the initial state.
Definition at line 88 of file two_point_geom_manager.h.
References m_originSet.
Referenced by DRAWING_TOOL::drawShape(), and POSITION_RELATIVE_TOOL::InteractiveOffset().
      
  | 
  inline | 
Definition at line 73 of file two_point_geom_manager.h.
References m_angleSnap.
Referenced by DRAWING_TOOL::drawShape(), POSITION_RELATIVE_TOOL::InteractiveOffset(), GERBVIEW_INSPECTION_TOOL::MeasureTool(), and PCB_VIEWER_TOOLS::MeasureTool().
      
  | 
  inline | 
Set the current end of the rectangle (the end that moves with the cursor.
Definition at line 58 of file two_point_geom_manager.h.
References DEG45, DEG90, GetVectorSnapped45(), GetVectorSnapped90(), m_angleSnap, m_end, and m_origin.
Referenced by DRAWING_TOOL::drawShape(), POSITION_RELATIVE_TOOL::InteractiveOffset(), GERBVIEW_INSPECTION_TOOL::MeasureTool(), and PCB_VIEWER_TOOLS::MeasureTool().
      
  | 
  inline | 
< Set the origin of the ruler (the fixed end)
Definition at line 44 of file two_point_geom_manager.h.
References m_origin, and m_originSet.
Referenced by DRAWING_TOOL::drawShape(), POSITION_RELATIVE_TOOL::InteractiveOffset(), GERBVIEW_INSPECTION_TOOL::MeasureTool(), and PCB_VIEWER_TOOLS::MeasureTool().
      
  | 
  private | 
Definition at line 101 of file two_point_geom_manager.h.
Referenced by GetAngleSnap(), SetAngleSnap(), and SetEnd().
      
  | 
  private | 
Definition at line 100 of file two_point_geom_manager.h.
      
  | 
  private | 
Definition at line 99 of file two_point_geom_manager.h.
Referenced by GetOrigin(), IsEmpty(), SetEnd(), and SetOrigin().
      
  | 
  private | 
Definition at line 102 of file two_point_geom_manager.h.
Referenced by IsEmpty(), IsReset(), Reset(), and SetOrigin().