LibrePCB Developers Documentation
Loading...
Searching...
No Matches
gerberx3outputjob.h
Go to the documentation of this file.
1/*
2 * LibrePCB - Professional EDA for everyone!
3 * Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
4 * https://librepcb.org/
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBREPCB_CORE_GERBERX3OUTPUTJOB_H
21#define LIBREPCB_CORE_GERBERX3OUTPUTJOB_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include "outputjob.h"
27
28#include <QtCore>
29#include <QtGui>
30
31#include <optional>
32
33/*******************************************************************************
34 * Namespace / Forward Declarations
35 ******************************************************************************/
36namespace librepcb {
37
38/*******************************************************************************
39 * Class GerberX3OutputJob
40 ******************************************************************************/
41
45class GerberX3OutputJob final : public OutputJob {
46 Q_DECLARE_TR_FUNCTIONS(GerberX3OutputJob)
47
48public:
49 // Types
52
53 // Constructors / Destructor
54 GerberX3OutputJob() noexcept;
55 GerberX3OutputJob(const GerberX3OutputJob& other) noexcept;
56 explicit GerberX3OutputJob(const SExpression& node);
57 virtual ~GerberX3OutputJob() noexcept;
58
59 // Getters
60 virtual QString getTypeTr() const noexcept override;
61 virtual QIcon getTypeIcon() const noexcept override;
62 const BoardSet& getBoards() const noexcept { return mBoards; }
63 const AssemblyVariantSet& getAssemblyVariants() const noexcept {
64 return mAssemblyVariants;
65 }
66 bool getEnableComponentsTop() const noexcept { return mEnableComponentsTop; }
67 bool getEnableComponentsBot() const noexcept { return mEnableComponentsBot; }
68 const QString& getOutputPathComponentsTop() const noexcept {
70 }
71 const QString& getOutputPathComponentsBot() const noexcept {
73 }
74 bool getEnableGlueTop() const noexcept { return mEnableGlueTop; }
75 bool getEnableGlueBot() const noexcept { return mEnableGlueBot; }
76 const QString& getOutputPathGlueTop() const noexcept {
77 return mOutputPathGlueTop;
78 }
79 const QString& getOutputPathGlueBot() const noexcept {
80 return mOutputPathGlueBot;
81 }
82
83 // Setters
84 void setBoards(const BoardSet& boards) noexcept;
85 void setAssemblyVariants(const AssemblyVariantSet& avs) noexcept;
86 void setEnableComponentsTop(bool create) noexcept;
87 void setEnableComponentsBot(bool create) noexcept;
88 void setOutputPathComponentsTop(const QString& path) noexcept;
89 void setOutputPathComponentsBot(const QString& path) noexcept;
90 void setEnableGlueTop(bool create) noexcept;
91 void setEnableGlueBot(bool create) noexcept;
92 void setOutputPathGlueTop(const QString& path) noexcept;
93 void setOutputPathGlueBot(const QString& path) noexcept;
94
95 // General Methods
96 static QString getTypeName() noexcept { return "gerber_x3"; }
97 static QString getTypeTrStatic() noexcept {
98 return tr("Pick&Place / Glue Mask (Gerber X3)");
99 }
100 virtual std::shared_ptr<OutputJob> cloneShared() const noexcept override;
101
102 // Operator Overloadings
103 GerberX3OutputJob& operator=(const GerberX3OutputJob& rhs) = delete;
104
105private: // Methods
106 virtual void serializeDerived(SExpression& root) const override;
107 virtual bool equals(const OutputJob& rhs) const noexcept override;
108
109private: // Data
120};
121
122} // namespace librepcb
123
124/*******************************************************************************
125 * End of File
126 ******************************************************************************/
127
128#endif
Gerber X3 pick&place output job.
Definition gerberx3outputjob.h:45
void setOutputPathComponentsTop(const QString &path) noexcept
Definition gerberx3outputjob.cpp:142
void setEnableComponentsBot(bool create) noexcept
Definition gerberx3outputjob.cpp:135
void setOutputPathGlueTop(const QString &path) noexcept
Definition gerberx3outputjob.cpp:172
void setOutputPathGlueBot(const QString &path) noexcept
Definition gerberx3outputjob.cpp:179
const QString & getOutputPathGlueTop() const noexcept
Definition gerberx3outputjob.h:76
BoardSet mBoards
Definition gerberx3outputjob.h:110
const QString & getOutputPathGlueBot() const noexcept
Definition gerberx3outputjob.h:79
virtual QString getTypeTr() const noexcept override
Definition gerberx3outputjob.cpp:96
GerberX3OutputJob() noexcept
Definition gerberx3outputjob.cpp:37
virtual bool equals(const OutputJob &rhs) const noexcept override
Definition gerberx3outputjob.cpp:222
static QString getTypeName() noexcept
Definition gerberx3outputjob.h:96
bool mEnableComponentsTop
Definition gerberx3outputjob.h:112
bool mEnableGlueTop
Definition gerberx3outputjob.h:116
bool getEnableComponentsBot() const noexcept
Definition gerberx3outputjob.h:67
void setEnableGlueTop(bool create) noexcept
Definition gerberx3outputjob.cpp:158
const AssemblyVariantSet & getAssemblyVariants() const noexcept
Definition gerberx3outputjob.h:63
static QString getTypeTrStatic() noexcept
Definition gerberx3outputjob.h:97
bool mEnableGlueBot
Definition gerberx3outputjob.h:117
ObjectSet< Uuid > AssemblyVariantSet
Definition gerberx3outputjob.h:51
void setAssemblyVariants(const AssemblyVariantSet &avs) noexcept
Definition gerberx3outputjob.cpp:120
void setEnableComponentsTop(bool create) noexcept
Definition gerberx3outputjob.cpp:128
const QString & getOutputPathComponentsBot() const noexcept
Definition gerberx3outputjob.h:71
void setEnableGlueBot(bool create) noexcept
Definition gerberx3outputjob.cpp:165
void setOutputPathComponentsBot(const QString &path) noexcept
Definition gerberx3outputjob.cpp:150
const BoardSet & getBoards() const noexcept
Definition gerberx3outputjob.h:62
virtual QIcon getTypeIcon() const noexcept override
Definition gerberx3outputjob.cpp:100
virtual void serializeDerived(SExpression &root) const override
Definition gerberx3outputjob.cpp:198
bool getEnableComponentsTop() const noexcept
Definition gerberx3outputjob.h:66
bool getEnableGlueTop() const noexcept
Definition gerberx3outputjob.h:74
ObjectSet< Uuid > BoardSet
Definition gerberx3outputjob.h:50
QString mOutputPathGlueBot
Definition gerberx3outputjob.h:119
QString mOutputPathGlueTop
Definition gerberx3outputjob.h:118
bool mEnableComponentsBot
Definition gerberx3outputjob.h:113
const QString & getOutputPathComponentsTop() const noexcept
Definition gerberx3outputjob.h:68
QString mOutputPathComponentsBot
Definition gerberx3outputjob.h:115
virtual std::shared_ptr< OutputJob > cloneShared() const noexcept override
Definition gerberx3outputjob.cpp:190
bool getEnableGlueBot() const noexcept
Definition gerberx3outputjob.h:75
QString mOutputPathComponentsTop
Definition gerberx3outputjob.h:114
AssemblyVariantSet mAssemblyVariants
Definition gerberx3outputjob.h:111
void setBoards(const BoardSet &boards) noexcept
Definition gerberx3outputjob.cpp:113
Base class for all output job types.
Definition outputjob.h:50
The SExpression class.
Definition sexpression.h:69
Definition occmodel.cpp:77
Definition outputjob.h:65