|
KiCad PCB EDA Suite
|
A segment and winding information for an IDF outline. More...
#include <idf_common.h>
Public Member Functions | |
| IDF_OUTLINE () | |
| ~IDF_OUTLINE () | |
| bool | IsCCW () |
| bool | IsCircle () |
| void | Clear () |
| Clear the internal list of outline segments. | |
| size_t | size () |
| bool | empty () |
| IDF_SEGMENT *& | front () |
| IDF_SEGMENT *& | back () |
| std::list< IDF_SEGMENT * >::iterator | begin () |
| std::list< IDF_SEGMENT * >::iterator | end () |
| bool | push (IDF_SEGMENT *item) |
| Add a segment to the internal segment list. | |
Private Attributes | |
| double | dir |
| std::list< IDF_SEGMENT * > | outline |
A segment and winding information for an IDF outline.
Definition at line 550 of file idf_common.h.
|
inline |
Definition at line 553 of file idf_common.h.
References dir.
|
inline |
Definition at line 554 of file idf_common.h.
References Clear().
|
inline |
Definition at line 607 of file idf_common.h.
References outline.
Referenced by IDF3::GetOutline(), and BOARD_OUTLINE::writeOutline().
|
inline |
Definition at line 615 of file idf_common.h.
References outline.
Referenced by MatchCompOutline(), and BOARD_OUTLINE::writeOutline().
|
inline |
Clear the internal list of outline segments.
Definition at line 569 of file idf_common.h.
Referenced by IDF3::GetOutline(), idf_export_outline(), and ~IDF_OUTLINE().
|
inline |
Definition at line 591 of file idf_common.h.
References outline.
Referenced by IDF_EXPORTER::createOutlineFromExtrudedBody(), IDF_EXPORTER::exportFootprint(), and idf_export_outline().
|
inline |
Definition at line 623 of file idf_common.h.
References outline.
Referenced by MatchCompOutline(), and BOARD_OUTLINE::writeOutline().
|
inline |
Definition at line 599 of file idf_common.h.
References outline.
Referenced by IDF3::GetOutline(), BOARD_OUTLINE::readOutlines(), and BOARD_OUTLINE::writeOutline().
| bool IDF_OUTLINE::IsCCW | ( | ) |
Definition at line 1185 of file idf_common.cpp.
References std::abs(), dir, MIN_ANG, and outline.
Referenced by BOARD_OUTLINE::readOutlines(), and BOARD_OUTLINE::writeOutline().
| bool IDF_OUTLINE::IsCircle | ( | ) |
Definition at line 1267 of file idf_common.cpp.
References outline.
Referenced by BOARD_OUTLINE::readOutlines().
| bool IDF_OUTLINE::push | ( | IDF_SEGMENT * | item | ) |
Add a segment to the internal segment list.
Segments must be added in order so that startPoint[N] == endPoint[N - 1].
| item | is a pointer to the segment to add to the outline. |
Definition at line 1276 of file idf_common.cpp.
References dir, ERROR_IDF, IDF_SEGMENT::IsCircle(), M_PI, IDF_SEGMENT::MatchesStart(), MIN_ANG, outline, radius, IDF_SEGMENT::startPoint, IDF_POINT::x, and IDF_POINT::y.
Referenced by IDF3_BOARD::AddSlot(), IDF3_COMP_OUTLINE::CreateDefaultOutline(), IDF3::GetOutline(), idf_export_outline(), and BOARD_OUTLINE::readOutlines().
|
inline |
Definition at line 583 of file idf_common.h.
References outline.
Referenced by IDF3::GetOutline(), MatchCompOutline(), BOARD_OUTLINE::readOutlines(), and BOARD_OUTLINE::writeOutline().
|
private |
Definition at line 640 of file idf_common.h.
Referenced by Clear(), IDF_OUTLINE(), IsCCW(), and push().
|
private |