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 (bool aSnap) |
bool | 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 |
bool | m_angleSnap = false |
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 77 of file two_point_geom_manager.h.
References m_angleSnap.
|
inline |
Definition at line 67 of file two_point_geom_manager.h.
References m_end.
Referenced by MICROWAVE_TOOL::drawMicrowaveInductor(), KIGFX::PREVIEW::CENTRELINE_RECT_ITEM::drawPreviewShape(), DRAWING_TOOL::drawShape(), KIGFX::PREVIEW::RULER_ITEM::GetDimensionStrings(), KIGFX::PREVIEW::CENTRELINE_RECT_ITEM::getOutline(), POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), updateSegmentFromGeometryMgr(), KIGFX::PREVIEW::RULER_ITEM::ViewBBox(), KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), and KIGFX::PREVIEW::TWO_POINT_ASSISTANT::ViewDraw().
|
inline |
Definition at line 51 of file two_point_geom_manager.h.
References m_origin.
Referenced by MICROWAVE_TOOL::drawMicrowaveInductor(), KIGFX::PREVIEW::CENTRELINE_RECT_ITEM::drawPreviewShape(), DRAWING_TOOL::drawShape(), KIGFX::PREVIEW::RULER_ITEM::GetDimensionStrings(), KIGFX::PREVIEW::CENTRELINE_RECT_ITEM::getOutline(), POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), updateSegmentFromGeometryMgr(), KIGFX::PREVIEW::RULER_ITEM::ViewBBox(), KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), and KIGFX::PREVIEW::TWO_POINT_ASSISTANT::ViewDraw().
|
inline |
Definition at line 98 of file two_point_geom_manager.h.
References m_end, m_origin, and m_originSet.
Referenced by DRAWING_TOOL::drawShape().
|
inline |
Definition at line 85 of file two_point_geom_manager.h.
References m_originSet.
Referenced by updateSegmentFromGeometryMgr(), KIGFX::PREVIEW::TWO_POINT_ASSISTANT::ViewBBox(), and KIGFX::PREVIEW::TWO_POINT_ASSISTANT::ViewDraw().
|
inline |
Reset the manager to the initial state.
Definition at line 93 of file two_point_geom_manager.h.
References m_originSet.
Referenced by DRAWING_TOOL::drawShape().
|
inline |
Definition at line 72 of file two_point_geom_manager.h.
References m_angleSnap.
Referenced by MICROWAVE_TOOL::drawMicrowaveInductor(), DRAWING_TOOL::drawShape(), GERBVIEW_INSPECTION_TOOL::MeasureTool(), PCB_VIEWER_TOOLS::MeasureTool(), and POSITION_RELATIVE_TOOL::PositionRelativeInteractively().
|
inline |
Set the current end of the rectangle (the end that moves with the cursor.
Definition at line 59 of file two_point_geom_manager.h.
References GetVectorSnapped45(), m_angleSnap, m_end, and m_origin.
Referenced by MICROWAVE_TOOL::drawMicrowaveInductor(), DRAWING_TOOL::drawShape(), GERBVIEW_INSPECTION_TOOL::MeasureTool(), PCB_VIEWER_TOOLS::MeasureTool(), and POSITION_RELATIVE_TOOL::PositionRelativeInteractively().
|
inline |
< Set the origin of the ruler (the fixed end)
Definition at line 45 of file two_point_geom_manager.h.
References m_origin, and m_originSet.
Referenced by MICROWAVE_TOOL::drawMicrowaveInductor(), DRAWING_TOOL::drawShape(), GERBVIEW_INSPECTION_TOOL::MeasureTool(), PCB_VIEWER_TOOLS::MeasureTool(), and POSITION_RELATIVE_TOOL::PositionRelativeInteractively().
|
private |
Definition at line 107 of file two_point_geom_manager.h.
Referenced by GetAngleSnap(), SetAngleSnap(), and SetEnd().
|
private |
Definition at line 106 of file two_point_geom_manager.h.
|
private |
Definition at line 105 of file two_point_geom_manager.h.
Referenced by GetOrigin(), IsEmpty(), SetEnd(), and SetOrigin().
|
private |
Definition at line 108 of file two_point_geom_manager.h.
Referenced by IsEmpty(), IsReset(), Reset(), and SetOrigin().