OdbDesignLib
OdbDesign ODB++ Parsing Library
 
Loading...
Searching...
No Matches
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
 
double xStart
 
double 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 12 of file ContourPolygon.h.

Member Typedef Documentation

◆ Vector

typedef std::vector<std::shared_ptr<ContourPolygon> > Odb::Lib::FileModel::Design::ContourPolygon::Vector

Definition at line 62 of file ContourPolygon.h.

Member Enumeration Documentation

◆ Type

enum class Odb::Lib::FileModel::Design::ContourPolygon::Type
strong

Definition at line 47 of file ContourPolygon.h.

Constructor & Destructor Documentation

◆ ~ContourPolygon()

Odb::Lib::FileModel::Design::ContourPolygon::~ContourPolygon ( )
inline

Definition at line 14 of file ContourPolygon.h.

Member Function Documentation

◆ from_protobuf()

void Odb::Lib::FileModel::Design::ContourPolygon::from_protobuf ( const Odb::Lib::Protobuf::ContourPolygon &  message)
overridevirtual

◆ to_protobuf()

std::unique_ptr< Odb::Lib::Protobuf::ContourPolygon > Odb::Lib::FileModel::Design::ContourPolygon::to_protobuf ( ) const
overridevirtual

Member Data Documentation

◆ BEGIN_RECORD_TOKEN

const char* Odb::Lib::FileModel::Design::ContourPolygon::BEGIN_RECORD_TOKEN = "OB"
inlinestatic

Definition at line 64 of file ContourPolygon.h.

◆ END_RECORD_TOKEN

const char* Odb::Lib::FileModel::Design::ContourPolygon::END_RECORD_TOKEN = "OE"
inlinestatic

Definition at line 65 of file ContourPolygon.h.

◆ HOLE_TYPE_TOKEN

const char* Odb::Lib::FileModel::Design::ContourPolygon::HOLE_TYPE_TOKEN = "H"
inlinestatic

Definition at line 67 of file ContourPolygon.h.

◆ ISLAND_TYPE_TOKEN

const char* Odb::Lib::FileModel::Design::ContourPolygon::ISLAND_TYPE_TOKEN = "I"
inlinestatic

Definition at line 66 of file ContourPolygon.h.

◆ m_polygonParts

PolygonPart::Vector Odb::Lib::FileModel::Design::ContourPolygon::m_polygonParts

Definition at line 56 of file ContourPolygon.h.

◆ type

Type Odb::Lib::FileModel::Design::ContourPolygon::type

Definition at line 53 of file ContourPolygon.h.

◆ xStart

double Odb::Lib::FileModel::Design::ContourPolygon::xStart

Definition at line 54 of file ContourPolygon.h.

◆ yStart

double Odb::Lib::FileModel::Design::ContourPolygon::yStart

Definition at line 54 of file ContourPolygon.h.


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