|
KiCad PCB EDA Suite
|
#include <easypc_classes_geometry.h>
Public Member Functions | |
| LOAD_TASK | Load (ARCHIVE &aAr) override |
| Read this object's fields. | |
| LOAD_TASK | LoadShape (ARCHIVE &aAr, int aFormat) |
| bool | IsClosed () const |
| The last vertex links back to the first (formats 1 and 2) or the closed byte is set (format 3) | |
| virtual int | ItemFormat (const ARCHIVE &aAr) const |
| The version this object gates on; the base is the archive's current read format. | |
Public Attributes | |
| int | Format = 0 |
| std::vector< OBJECT * > | Segments |
| the vertex list as read | |
| bool | Closed = false |
| bool | HasClosed = false |
| const char * | ClassName = "object" |
| registered class name | |
| uint16_t | Schema = 0 |
| object schema from the class tag, 0 for an embedded member | |
| size_t | Offset = 0 |
| stream offset of the tag or of an embedded member's first field | |
A vertex list.
Definition at line 104 of file easypc_classes_geometry.h.
| bool EASYPC::SOURCE_SHAPE::IsClosed | ( | ) | const |
The last vertex links back to the first (formats 1 and 2) or the closed byte is set (format 3)
Definition at line 157 of file easypc_classes_geometry.cpp.
References Closed, HasClosed, EASYPC::SOURCE_SEGMENT::Next, and Segments.
Referenced by EASYPC_PCB::AddShapeItem(), EASYPC::ConvertShape(), and EASYPC_PCB::ShapeItemArea().
|
virtualinherited |
The version this object gates on; the base is the archive's current read format.
Reimplemented in EASYPC::DESIGN_MEMBER, EASYPC::SOURCE_COMMON_SEGMENT, EASYPC::SOURCE_COMMON_SHAPE, EASYPC::SOURCE_DESIGN, EASYPC::SOURCE_DESIGN_DATA, EASYPC::SOURCE_DESIGN_ITEM, EASYPC::SOURCE_DESIGN_LIST, EASYPC::SOURCE_PCB_COMPONENT, EASYPC::SOURCE_SCM_COMPONENT, and EASYPC::SOURCE_SYMBOL.
Definition at line 85 of file easypc_archive.cpp.
References EASYPC::ARCHIVE::CurrentReadFormat().
Referenced by EASYPC::SOURCE_COMMON_SEGMENT::ItemFormat().
Read this object's fields.
Reimplemented from EASYPC::OBJECT.
Reimplemented in EASYPC::SOURCE_TRACK.
Definition at line 151 of file easypc_classes_geometry.cpp.
References LoadShape(), and EASYPC::ARCHIVE::ShapeFormat().
Definition at line 107 of file easypc_classes_geometry.cpp.
References Closed, EASYPC::ARCHIVE::Count(), Format, HasClosed, EASYPC::SOURCE_SEGMENT::Next, EASYPC::ARCHIVE::Object(), Segments, EASYPC::ARCHIVE::SetShapeFormat(), EASYPC::ARCHIVE::ShapeFormat(), and EASYPC::ARCHIVE::U8().
Referenced by EASYPC::SOURCE_COMMON_SHAPE::Load(), and Load().
|
inherited |
registered class name
Definition at line 130 of file easypc_archive.h.
Referenced by EASYPC::ARCHIVE::drive(), EASYPC::ARCHIVE::Embedded(), EASYPC::SOURCE_DESIGN_ITEM::ItemFormat(), EASYPC::ARCHIVE::MapObject(), EASYPC::ARCHIVE::readTag(), and EASYPC::ARCHIVE::throwBadClass().
| bool EASYPC::SOURCE_SHAPE::Closed = false |
Definition at line 114 of file easypc_classes_geometry.h.
Referenced by IsClosed(), and LoadShape().
| int EASYPC::SOURCE_SHAPE::Format = 0 |
Definition at line 112 of file easypc_classes_geometry.h.
Referenced by LoadShape().
| bool EASYPC::SOURCE_SHAPE::HasClosed = false |
Definition at line 115 of file easypc_classes_geometry.h.
Referenced by IsClosed(), and LoadShape().
|
inherited |
stream offset of the tag or of an embedded member's first field
Definition at line 132 of file easypc_archive.h.
Referenced by EASYPC::ARCHIVE::drive(), EASYPC::SOURCE_DESIGN_ITEM::ItemFormat(), EASYPC::ARCHIVE::readTag(), and EASYPC::ARCHIVE::throwBadClass().
|
inherited |
object schema from the class tag, 0 for an embedded member
Definition at line 131 of file easypc_archive.h.
Referenced by EASYPC::SOURCE_COMMON_SHAPE::Load(), and EASYPC::ARCHIVE::readTag().
| std::vector<OBJECT*> EASYPC::SOURCE_SHAPE::Segments |
the vertex list as read
Definition at line 113 of file easypc_classes_geometry.h.
Referenced by IsClosed(), LoadShape(), and EASYPC::ShapeVertices().