KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EASYPC::SCH_FRAME Struct Reference

Design to KiCad mapping: X shifted, Y negated about the origin. More...

#include <easypc_sch_items.h>

Public Member Functions

VECTOR2I Map (int64_t aX, int64_t aY) const
 

Public Attributes

int32_t OriginX = 0
 
int32_t OriginY = 0
 

Detailed Description

Design to KiCad mapping: X shifted, Y negated about the origin.

Definition at line 60 of file easypc_sch_items.h.

Member Function Documentation

◆ Map()

VECTOR2I EASYPC::SCH_FRAME::Map ( int64_t aX,
int64_t aY ) const
Exceptions
IO_ERRORwhen the point lies outside KiCad's coordinate range

Definition at line 77 of file easypc_sch_items.cpp.

References _, std::abs(), EASYPC::COORD_LIMIT, OriginX, OriginY, and THROW_IO_ERROR.

Referenced by EASYPC::ApplyTextPosition(), EASYPC::ConvertShape(), EASYPC::mapD(), and EASYPC::SCH_BUILDER::toSheet().

Member Data Documentation

◆ OriginX

int32_t EASYPC::SCH_FRAME::OriginX = 0

Definition at line 62 of file easypc_sch_items.h.

Referenced by EASYPC::ConvertShape(), and Map().

◆ OriginY

int32_t EASYPC::SCH_FRAME::OriginY = 0

Definition at line 63 of file easypc_sch_items.h.

Referenced by EASYPC::ConvertShape(), and Map().


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