|
KiCad PCB EDA Suite
|
#include <easypc_classes_geometry.h>
Public Member Functions | |
| LOAD_TASK | Load (ARCHIVE &aAr) final |
| Read this object's fields. | |
| virtual LOAD_TASK | LoadTail (ARCHIVE &aAr) |
| The fields a subclass reads after the next vertex. | |
| virtual int | ItemFormat (const ARCHIVE &aAr) const |
| The version this object gates on; the base is the archive's current read format. | |
Public Attributes | |
| int32_t | X = 0 |
| int32_t | Y = 0 |
| int32_t | ArcAngle = 0 |
| swept angle, 0 for a straight span | |
| bool | Anticlockwise = true |
| bool | HasNextRef = false |
| the stream carried a next vertex (shape format below 3) | |
| SOURCE_SEGMENT * | Next = nullptr |
| null on an open shape's terminator | |
| 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.
Below shape format 3 each vertex is followed by its next vertex, written in full at that point, so a shape's vertices nest; the frame stack keeps that off the C stack.
Definition at line 75 of file easypc_classes_geometry.h.
|
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.
Definition at line 70 of file easypc_classes_geometry.cpp.
References Anticlockwise, ArcAngle, HasNextRef, EASYPC::ARCHIVE::I32(), EASYPC::ARCHIVE::InBool(), LoadTail(), Next, EASYPC::ARCHIVE::ObjectAs(), EASYPC::ARCHIVE::ShapeFormat(), X, and Y.
The fields a subclass reads after the next vertex.
Reimplemented in EASYPC::SOURCE_COMMON_SEGMENT, and EASYPC::SOURCE_TRACK_SEGMENT.
Definition at line 87 of file easypc_classes_geometry.cpp.
Referenced by Load().
| bool EASYPC::SOURCE_SEGMENT::Anticlockwise = true |
Definition at line 85 of file easypc_classes_geometry.h.
Referenced by EASYPC::ConvertShape(), and Load().
| int32_t EASYPC::SOURCE_SEGMENT::ArcAngle = 0 |
swept angle, 0 for a straight span
Definition at line 84 of file easypc_classes_geometry.h.
Referenced by EASYPC::ConvertShape(), 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_SEGMENT::HasNextRef = false |
the stream carried a next vertex (shape format below 3)
Definition at line 86 of file easypc_classes_geometry.h.
Referenced by Load(), and EASYPC::ShapeVertices().
| SOURCE_SEGMENT* EASYPC::SOURCE_SEGMENT::Next = nullptr |
null on an open shape's terminator
Definition at line 87 of file easypc_classes_geometry.h.
Referenced by EASYPC::SOURCE_SHAPE::IsClosed(), Load(), and EASYPC::SOURCE_SHAPE::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().
| int32_t EASYPC::SOURCE_SEGMENT::X = 0 |
Definition at line 82 of file easypc_classes_geometry.h.
Referenced by EASYPC::ConvertShape(), and Load().
| int32_t EASYPC::SOURCE_SEGMENT::Y = 0 |
Definition at line 83 of file easypc_classes_geometry.h.
Referenced by EASYPC::ConvertShape(), and Load().