OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart Struct Reference

#include <ContourPolygon.h>

Inheritance diagram for Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart:
[legend]
Collaboration diagram for Odb::Lib::FileModel::Design::ContourPolygon::PolygonPart:
[legend]

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 Member Functions inherited from Utils::IJsonable
virtual ~IJsonable ()
 

Public Attributes

Type type = Type::Segment
 
double endX = 0.0
 
double endY = 0.0
 
double xCenter = 0.0
 
double yCenter = 0.0
 
bool isClockwise = false
 

Static Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ContourPolygon::PolygonPart >
 IProtoBuffable ()=default
 
- Protected Member Functions inherited from Utils::IJsonable
 IJsonable ()=default
 

Detailed Description

Definition at line 19 of file ContourPolygon.h.

Member Typedef Documentation

◆ Vector

Definition at line 40 of file ContourPolygon.h.

Member Enumeration Documentation

◆ Type

Enumerator
Segment 
Arc 

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 = 0.0

Definition at line 30 of file ContourPolygon.h.

◆ endY

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

Definition at line 30 of file ContourPolygon.h.

◆ isClockwise

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

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 = Type::Segment

Definition at line 27 of file ContourPolygon.h.

◆ xCenter

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

Definition at line 33 of file ContourPolygon.h.

◆ yCenter

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

Definition at line 33 of file ContourPolygon.h.


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