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

Also design cutouts. More...

#include <easypc_classes_geometry.h>

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

Public Member Functions

LOAD_TASK Load (ARCHIVE &aAr) override
 Read this object's fields.
 
int ItemFormat (const ARCHIVE &aAr) const override
 The version this object gates on; the base is the archive's current read format.
 
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)
 

Public Attributes

std::vector< OBJECT * > Cutouts
 
OBJECT * Parent = nullptr
 
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

Also design cutouts.

Definition at line 129 of file easypc_classes_geometry.h.

Member Function Documentation

◆ IsClosed()

bool EASYPC::SOURCE_SHAPE::IsClosed ( ) const
inherited

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::SOURCE_COMMON_SHAPE::ItemFormat ( const ARCHIVE & aAr) const
overridevirtualinherited

The version this object gates on; the base is the archive's current read format.

Reimplemented from EASYPC::OBJECT.

Definition at line 188 of file easypc_classes_geometry.cpp.

References Parent.

◆ Load()

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

Read this object's fields.

Reimplemented from EASYPC::SOURCE_COMMON_SHAPE.

Definition at line 194 of file easypc_classes_geometry.cpp.

References Cutouts, EASYPC::SOURCE_COMMON_SHAPE::Load(), and EASYPC::SOURCE_COMMON_SHAPE::Parent.

◆ LoadShape()

Member Data Documentation

◆ ClassName

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

◆ Closed

bool EASYPC::SOURCE_SHAPE::Closed = false
inherited

Definition at line 114 of file easypc_classes_geometry.h.

Referenced by IsClosed(), and LoadShape().

◆ Cutouts

std::vector<OBJECT*> EASYPC::SOURCE_DESIGN_SHAPE::Cutouts

◆ Format

int EASYPC::SOURCE_SHAPE::Format = 0
inherited

Definition at line 112 of file easypc_classes_geometry.h.

Referenced by LoadShape().

◆ HasClosed

bool EASYPC::SOURCE_SHAPE::HasClosed = false
inherited

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

◆ Parent

OBJECT* EASYPC::SOURCE_COMMON_SHAPE::Parent = nullptr
inherited

◆ 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
inherited

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: