OdbDesignLib
OdbDesign ODB++ Parsing Library
Odb::Lib::FileModel::Design::ContourPolygon Struct Reference
Inheritance diagram for Odb::Lib::FileModel::Design::ContourPolygon:
Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ContourPolygon >

Classes

struct  PolygonPart
 

Public Types

enum class  Type { Island , Hole }
 
typedef std::vector< std::shared_ptr< ContourPolygon > > Vector
 

Public Member Functions

std::unique_ptr< Odb::Lib::Protobuf::ContourPolygon > to_protobuf () const override
 
void from_protobuf (const Odb::Lib::Protobuf::ContourPolygon &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ContourPolygon >
bool to_pbstring (std::string &pb_string) const
 
bool from_pbstring (const std::string &pb_string)
 
bool to_stream (std::ostream &outputStream) const
 
bool from_stream (std::istream &inputStream)
 
std::string to_json () const override
 
void from_json (const std::string &json) override
 

Public Attributes

Type type
 
float xStart
 
float yStart
 
PolygonPart::Vector m_polygonParts
 

Static Public Attributes

static const char * BEGIN_RECORD_TOKEN = "OB"
 
static const char * END_RECORD_TOKEN = "OE"
 
static const char * ISLAND_TYPE_TOKEN = "I"
 
static const char * HOLE_TYPE_TOKEN = "H"
 

Detailed Description

Definition at line 14 of file ContourPolygon.h.


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