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

A vertex list. More...

#include <easypc_classes_geometry.h>

Inheritance diagram for EASYPC::SOURCE_SHAPE:
EASYPC::OBJECT EASYPC::SOURCE_COMMON_SHAPE EASYPC::SOURCE_DESIGN_SHAPE EASYPC::SOURCE_TRACK

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
 

Detailed Description

A vertex list.

Definition at line 104 of file easypc_classes_geometry.h.

Member Function Documentation

◆ IsClosed()

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

◆ ItemFormat()

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

◆ Load()

LOAD_TASK EASYPC::SOURCE_SHAPE::Load ( ARCHIVE & aAr)
overridevirtual

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

◆ LoadShape()

Member Data Documentation

◆ ClassName

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

◆ Closed

bool EASYPC::SOURCE_SHAPE::Closed = false

Definition at line 114 of file easypc_classes_geometry.h.

Referenced by IsClosed(), and LoadShape().

◆ Format

int EASYPC::SOURCE_SHAPE::Format = 0

Definition at line 112 of file easypc_classes_geometry.h.

Referenced by LoadShape().

◆ HasClosed

bool EASYPC::SOURCE_SHAPE::HasClosed = false

Definition at line 115 of file easypc_classes_geometry.h.

Referenced by IsClosed(), and 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().

◆ Segments

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


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