6 #include "../../odbdesign_export.h"
7 #include "../../IProtoBuffable.h"
8 #include "../../ProtoBuf/common.pb.h"
9 #include "../../odbdesign_export.h"
12 namespace Odb::Lib::FileModel::Design
18 m_polygonParts.clear();
35 float xCenter, yCenter;
39 std::unique_ptr<Odb::Lib::Protobuf::ContourPolygon::PolygonPart> to_protobuf()
const override;
40 void from_protobuf(
const Odb::Lib::Protobuf::ContourPolygon::PolygonPart& message)
override;
42 typedef std::vector<std::shared_ptr<PolygonPart>> Vector;
44 inline static const char* SEGMENT_RECORD_TOKEN =
"OS";
45 inline static const char* ARC_RECORD_TOKEN =
"OC";
58 PolygonPart::Vector m_polygonParts;
61 std::unique_ptr<Odb::Lib::Protobuf::ContourPolygon> to_protobuf()
const override;
62 void from_protobuf(
const Odb::Lib::Protobuf::ContourPolygon& message)
override;
64 typedef std::vector<std::shared_ptr<ContourPolygon>> Vector;
66 inline static const char* BEGIN_RECORD_TOKEN =
"OB";
67 inline static const char* END_RECORD_TOKEN =
"OE";
68 inline static const char* ISLAND_TYPE_TOKEN =
"I";
69 inline static const char* HOLE_TYPE_TOKEN =
"H";