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

A vertex. More...

#include <easypc_classes_geometry.h>

Inheritance diagram for EASYPC::SOURCE_SEGMENT:
EASYPC::OBJECT EASYPC::SOURCE_COMMON_SEGMENT EASYPC::SOURCE_TRACK_SEGMENT

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
 

Detailed Description

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.

Member Function Documentation

◆ ItemFormat()

int EASYPC::OBJECT::ItemFormat ( const ARCHIVE & aAr) const
virtualinherited

◆ Load()

LOAD_TASK EASYPC::SOURCE_SEGMENT::Load ( ARCHIVE & aAr)
finalvirtual

◆ LoadTail()

LOAD_TASK EASYPC::SOURCE_SEGMENT::LoadTail ( ARCHIVE & aAr)
virtual

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().

Member Data Documentation

◆ Anticlockwise

bool EASYPC::SOURCE_SEGMENT::Anticlockwise = true

Definition at line 85 of file easypc_classes_geometry.h.

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

◆ ArcAngle

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().

◆ ClassName

const char* EASYPC::OBJECT::ClassName = "object"
inherited

◆ HasNextRef

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().

◆ Next

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().

◆ Offset

size_t EASYPC::OBJECT::Offset = 0
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().

◆ Schema

uint16_t EASYPC::OBJECT::Schema = 0
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().

◆ X

int32_t EASYPC::SOURCE_SEGMENT::X = 0

Definition at line 82 of file easypc_classes_geometry.h.

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

◆ Y

int32_t EASYPC::SOURCE_SEGMENT::Y = 0

Definition at line 83 of file easypc_classes_geometry.h.

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


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