20#ifndef LIBREPCB_CORE_PICKPLACEDATA_H
21#define LIBREPCB_CORE_PICKPLACEDATA_H
26#include "../types/angle.h"
27#include "../types/point.h"
68 const QString& deviceName,
const QString& packageName,
147 PickPlaceData(
const QString& projectName,
const QString& projectVersion,
148 const QString& boardName)
noexcept;
175 std::size_t seed = 0) noexcept {
176 return ::qHash(
static_cast<int>(key), seed);
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The librepcb::PickPlaceData class represents the content of a pick&place file.
Definition pickplacedata.h:140
const QString & getBoardName() const noexcept
Definition pickplacedata.h:154
QString mProjectVersion
Definition pickplacedata.h:165
PickPlaceData(const PickPlaceData &other) noexcept=delete
const QList< PickPlaceDataItem > & getItems() const noexcept
Definition pickplacedata.h:155
const QString & getProjectName() const noexcept
Definition pickplacedata.h:152
~PickPlaceData() noexcept
Definition pickplacedata.cpp:47
PickPlaceData & operator=(const PickPlaceData &rhs) noexcept=delete
const QString & getProjectVersion() const noexcept
Definition pickplacedata.h:153
void addItem(const PickPlaceDataItem &item) noexcept
Definition pickplacedata.cpp:54
QList< PickPlaceDataItem > mItems
Definition pickplacedata.h:167
QString mBoardName
Definition pickplacedata.h:166
QString mProjectName
Definition pickplacedata.h:164
The librepcb::PickPlaceDataItem class represents one item of a pick&place file.
Definition pickplacedata.h:46
const Angle & getRotation() const noexcept
Definition pickplacedata.h:98
Type
Definition pickplacedata.h:57
@ Other
Anything special, e.g. mechanical parts.
@ Mixed
Mixed THT/SMT package.
@ Fiducial
No package to mount, just a fiducial.
const QString & getPackageName() const noexcept
Definition pickplacedata.h:96
BoardSide getBoardSide() const noexcept
Definition pickplacedata.h:99
void setDesignator(const QString &value) noexcept
Definition pickplacedata.h:104
QString mPackageName
Definition pickplacedata.h:124
BoardSide
Definition pickplacedata.h:50
BoardSide mBoardSide
Definition pickplacedata.h:127
PickPlaceDataItem(const PickPlaceDataItem &other) noexcept
Definition pickplacedata.h:80
Type getType() const noexcept
Definition pickplacedata.h:100
bool mMount
False means "do not mount".
Definition pickplacedata.h:129
const QString & getDesignator() const noexcept
Definition pickplacedata.h:93
QString mValue
Definition pickplacedata.h:122
Angle mRotation
Definition pickplacedata.h:126
const QString & getValue() const noexcept
Definition pickplacedata.h:94
const Point & getPosition() const noexcept
Definition pickplacedata.h:97
QString mDeviceName
Definition pickplacedata.h:123
PickPlaceDataItem()=delete
const QString & getDeviceName() const noexcept
Definition pickplacedata.h:95
QString mDesignator
Definition pickplacedata.h:121
bool isMount() const noexcept
Definition pickplacedata.h:101
PickPlaceDataItem & operator=(const PickPlaceDataItem &rhs) noexcept
Definition pickplacedata.h:107
~PickPlaceDataItem() noexcept
Definition pickplacedata.h:90
Point mPosition
Definition pickplacedata.h:125
Type mType
Definition pickplacedata.h:128
PickPlaceDataItem(const QString &designator, const QString &value, const QString &deviceName, const QString &packageName, const Point &position, const Angle &rotation, BoardSide boardSide, Type type, bool mount) noexcept
Definition pickplacedata.h:67
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
Definition occmodel.cpp:76
std::size_t qHash(const AttributeKey &key, std::size_t seed=0) noexcept
Definition attributekey.h:118