OdbDesignLib
OdbDesign ODB++ Parsing Library
 
Loading...
Searching...
No Matches
Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart Struct Reference
Inheritance diagram for Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart:
Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ContourPolygon::PolygonPart >

Public Types

enum class  Type { Segment , Arc }
 
typedef std::vector< std::shared_ptr< PolygonPart > > Vector
 

Public Member Functions

std::unique_ptr< Odb::Lib::Protobuf::ContourPolygon::PolygonPart > to_protobuf () const override
 
void from_protobuf (const Odb::Lib::Protobuf::ContourPolygon::PolygonPart &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ContourPolygon::PolygonPart >
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 endX
 
double endY
 
double xCenter
 
double yCenter
 
bool isClockwise
 

Static Public Attributes

static const char * SEGMENT_RECORD_TOKEN = "OS"
 
static const char * ARC_RECORD_TOKEN = "OC"
 

Detailed Description

Definition at line 19 of file ContourPolygon.h.

Member Typedef Documentation

◆ Vector

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

Definition at line 40 of file ContourPolygon.h.

Member Enumeration Documentation

◆ Type

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

Definition at line 21 of file ContourPolygon.h.

Member Function Documentation

◆ from_protobuf()

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

◆ to_protobuf()

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

Member Data Documentation

◆ ARC_RECORD_TOKEN

const char* Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart::ARC_RECORD_TOKEN = "OC"
inlinestatic

Definition at line 43 of file ContourPolygon.h.

◆ endX

double Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart::endX

Definition at line 30 of file ContourPolygon.h.

◆ endY

double Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart::endY

Definition at line 30 of file ContourPolygon.h.

◆ isClockwise

bool Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart::isClockwise

Definition at line 34 of file ContourPolygon.h.

◆ SEGMENT_RECORD_TOKEN

const char* Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart::SEGMENT_RECORD_TOKEN = "OS"
inlinestatic

Definition at line 42 of file ContourPolygon.h.

◆ type

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

Definition at line 27 of file ContourPolygon.h.

◆ xCenter

double Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart::xCenter

Definition at line 33 of file ContourPolygon.h.

◆ yCenter

double Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart::yCenter

Definition at line 33 of file ContourPolygon.h.


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