KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TWO_POINT_GEOMETRY_MANAGER Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ GetAngleSnap()

LEADER_MODE KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::GetAngleSnap ( ) const
inline

Definition at line 75 of file two_point_geom_manager.h.

◆ GetEnd()

VECTOR2I KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::GetEnd ( ) const
inline

Definition at line 68 of file two_point_geom_manager.h.

Referenced by MICROWAVE_TOOL::drawMicrowaveInductor().

◆ GetOrigin()

VECTOR2I KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::GetOrigin ( ) const
inline

Definition at line 50 of file two_point_geom_manager.h.

Referenced by MICROWAVE_TOOL::drawMicrowaveInductor().

◆ IsEmpty()

bool KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::IsEmpty ( ) const
inline

Definition at line 93 of file two_point_geom_manager.h.

◆ IsReset()

bool KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::IsReset ( ) const
inline
Returns
true if the manager is in the initial state

Definition at line 80 of file two_point_geom_manager.h.

◆ Reset()

void KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::Reset ( )
inline

Reset the manager to the initial state.

Definition at line 88 of file two_point_geom_manager.h.

◆ SetAngleSnap()

void KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::SetAngleSnap ( LEADER_MODE aSnap)
inline

Definition at line 73 of file two_point_geom_manager.h.

Referenced by MICROWAVE_TOOL::drawMicrowaveInductor().

◆ SetEnd()

void KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::SetEnd ( const VECTOR2I & aEnd)
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.

Referenced by MICROWAVE_TOOL::drawMicrowaveInductor().

◆ SetOrigin()

void KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::SetOrigin ( const VECTOR2I & aOrigin)
inline

< Set the origin of the ruler (the fixed end)

Definition at line 44 of file two_point_geom_manager.h.

Referenced by MICROWAVE_TOOL::drawMicrowaveInductor().

Member Data Documentation

◆ m_angleSnap

LEADER_MODE KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::m_angleSnap = LEADER_MODE::DIRECT
private

Definition at line 101 of file two_point_geom_manager.h.

◆ m_end

VECTOR2I KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::m_end
private

Definition at line 100 of file two_point_geom_manager.h.

◆ m_origin

VECTOR2I KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::m_origin
private

Definition at line 99 of file two_point_geom_manager.h.

◆ m_originSet

bool KIGFX::PREVIEW::TWO_POINT_GEOMETRY_MANAGER::m_originSet = false
private

Definition at line 102 of file two_point_geom_manager.h.


The documentation for this class was generated from the following file: