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

EDIT_CONSTRAINT for a EDIT_LINE, that constrains the line to move perpendicular to the line itself. More...

#include <edit_constraints.h>

Inheritance diagram for EC_PERPLINE:
EDIT_CONSTRAINT< EDIT_LINE >

Public Member Functions

 EC_PERPLINE (EDIT_LINE &aLine)
 
virtual ~EC_PERPLINE ()
 Correct coordinates of the constrained edit handle.
 
virtual void Apply (EDIT_LINE &aHandle, const GRID_HELPER &aGrid) override
 Correct coordinates of the constrained edit handle.
 
void Apply (const GRID_HELPER &aGrid)
 Correct coordinates of the constrained edit handle.
 

Protected Attributes

EDIT_LINEm_constrained
 Point that is constrained by rules implemented by Apply().
 

Private Attributes

VECTOR2I m_mid
 
VECTOR2I m_line
 

Detailed Description

EDIT_CONSTRAINT for a EDIT_LINE, that constrains the line to move perpendicular to the line itself.

Definition at line 250 of file edit_constraints.h.

Constructor & Destructor Documentation

◆ EC_PERPLINE()

EC_PERPLINE::EC_PERPLINE ( EDIT_LINE aLine)

◆ ~EC_PERPLINE()

virtual EC_PERPLINE::~EC_PERPLINE ( )
inlinevirtual

Correct coordinates of the constrained edit handle.

Definition at line 256 of file edit_constraints.h.

Member Function Documentation

◆ Apply() [1/2]

void EDIT_CONSTRAINT< EDIT_LINE >::Apply ( const GRID_HELPER aGrid)
inlineinherited

Correct coordinates of the constrained edit handle.

Definition at line 82 of file edit_constraints.h.

◆ Apply() [2/2]

void EC_PERPLINE::Apply ( EDIT_LINE aHandle,
const GRID_HELPER aGrid 
)
overridevirtual

Member Data Documentation

◆ m_constrained

EDIT_LINE & EDIT_CONSTRAINT< EDIT_LINE >::m_constrained
protectedinherited

Point that is constrained by rules implemented by Apply().

Definition at line 88 of file edit_constraints.h.

◆ m_line

VECTOR2I EC_PERPLINE::m_line
private

Definition at line 264 of file edit_constraints.h.

Referenced by Apply(), and EC_PERPLINE().

◆ m_mid

VECTOR2I EC_PERPLINE::m_mid
private

Definition at line 263 of file edit_constraints.h.

Referenced by Apply(), and EC_PERPLINE().


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