KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ODB_SURFACE Class Reference

#include <odb_feature.h>

Inheritance diagram for ODB_SURFACE:
ODB_FEATURE ATTR_RECORD_WRITER

Public Member Functions

 ODB_SURFACE (uint32_t aIndex, const SHAPE_POLY_SET::POLYGON &aPolygon, FILL_T aFillType=FILL_T::FILLED_SHAPE)
 
virtual ~ODB_SURFACE ()=default
 
virtual FEATURE_TYPE GetFeatureType () override
 
virtual void WriteFeatures (std::ostream &ost)
 
void WriteAttributes (std::ostream &ost) const
 

Public Attributes

std::unique_ptr< ODB_SURFACE_DATAm_surfaces
 
std::map< unsigned int, std::string > attributes
 

Protected Types

enum class  FEATURE_TYPE { LINE , ARC , PAD , SURFACE }
 

Protected Member Functions

virtual void WriteRecordContent (std::ostream &ost) override
 

Protected Attributes

const uint32_t m_index
 

Detailed Description

Definition at line 296 of file odb_feature.h.

Member Enumeration Documentation

◆ FEATURE_TYPE

enum class ODB_FEATURE::FEATURE_TYPE
strongprotectedinherited
Enumerator
LINE 
ARC 
PAD 
SURFACE 

Definition at line 210 of file odb_feature.h.

Constructor & Destructor Documentation

◆ ODB_SURFACE()

ODB_SURFACE::ODB_SURFACE ( uint32_t  aIndex,
const SHAPE_POLY_SET::POLYGON aPolygon,
FILL_T  aFillType = FILL_T::FILLED_SHAPE 
)

Definition at line 918 of file odb_feature.cpp.

References m_surfaces.

◆ ~ODB_SURFACE()

virtual ODB_SURFACE::~ODB_SURFACE ( )
virtualdefault

Member Function Documentation

◆ GetFeatureType()

virtual FEATURE_TYPE ODB_SURFACE::GetFeatureType ( )
inlineoverridevirtual

Implements ODB_FEATURE.

Definition at line 304 of file odb_feature.h.

References ODB_FEATURE::SURFACE.

◆ WriteAttributes()

void ATTR_RECORD_WRITER::WriteAttributes ( std::ostream &  ost) const
inherited

◆ WriteFeatures()

void ODB_FEATURE::WriteFeatures ( std::ostream &  ost)
virtualinherited

◆ WriteRecordContent()

void ODB_SURFACE::WriteRecordContent ( std::ostream &  ost)
overrideprotectedvirtual

Implements ODB_FEATURE.

Definition at line 936 of file odb_feature.cpp.

References m_surfaces, and ATTR_RECORD_WRITER::WriteAttributes().

Member Data Documentation

◆ attributes

std::map<unsigned int, std::string> ATTR_RECORD_WRITER::attributes
inherited

Definition at line 348 of file odb_attribute.h.

Referenced by ATTR_RECORD_WRITER::WriteAttributes().

◆ m_index

const uint32_t ODB_FEATURE::m_index
protectedinherited

Definition at line 222 of file odb_feature.h.

◆ m_surfaces

std::unique_ptr<ODB_SURFACE_DATA> ODB_SURFACE::m_surfaces

Definition at line 306 of file odb_feature.h.

Referenced by ODB_SURFACE(), and WriteRecordContent().


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