19#ifndef LIB_QUENTIER_TYPES_RESOURCE_RECOGNITION_INDEX_ITEM_H
20#define LIB_QUENTIER_TYPES_RESOURCE_RECOGNITION_INDEX_ITEM_H
22#include <quentier/utility/Linkage.h>
23#include <quentier/utility/Printable.h>
26#include <QSharedDataPointer>
30QT_FORWARD_DECLARE_CLASS(ResourceRecognitionIndexItemData)
46 void setX(
const int x);
49 void setY(
const int y);
52 void setH(
const int h);
55 void setW(
const int w);
58 void setOffset(
const int offset);
61 void setDuration(
const int duration);
63 QVector<int> strokeList()
const;
64 int numStrokes()
const;
65 bool strokeAt(
const int strokeIndex,
int & stroke)
const;
66 bool setStrokeAt(
const int strokeIndex,
const int stroke);
67 void setStrokeList(
const QVector<int> & strokeList);
68 void reserveStrokeListSpace(
const int numItems);
69 void addStroke(
const int stroke);
70 bool removeStroke(
const int stroke);
71 bool removeStrokeAt(
const int strokeIndex);
75 bool operator==(
const TextItem & other)
const
77 return (m_text == other.m_text) && (m_weight == other.m_weight);
84 QVector<TextItem> textItems()
const;
85 int numTextItems()
const;
86 bool textItemAt(
const int textItemIndex,
TextItem & textItem)
const;
87 bool setTextItemAt(
const int textItemIndex,
const TextItem & textItem);
88 void setTextItems(
const QVector<TextItem> & textItems);
89 void reserveTextItemsSpace(
const int numItems);
90 void addTextItem(
const TextItem & item);
91 bool removeTextItem(
const TextItem & item);
92 bool removeTextItemAt(
const int textItemIndex);
96 bool operator==(
const ObjectItem & other)
const
98 return (m_objectType == other.m_objectType) &&
99 (m_weight == other.m_weight);
102 QString m_objectType;
106 QVector<ObjectItem> objectItems()
const;
107 int numObjectItems()
const;
108 bool objectItemAt(
const int objectItemIndex,
ObjectItem & objectItem)
const;
110 bool setObjectItemAt(
111 const int objectItemIndex,
const ObjectItem & objectItem);
113 void setObjectItems(
const QVector<ObjectItem> & objectItems);
114 void reserveObjectItemsSpace(
const int numItems);
116 bool removeObjectItem(
const ObjectItem & item);
117 bool removeObjectItemAt(
const int objectItemIndex);
121 bool operator==(
const ShapeItem & other)
const
123 return (m_shapeType == other.m_shapeType) &&
124 (m_weight == other.m_weight);
131 QVector<ShapeItem> shapeItems()
const;
132 int numShapeItems()
const;
133 bool shapeItemAt(
const int shapeItemIndex,
ShapeItem & shapeItem)
const;
134 bool setShapeItemAt(
const int shapeItemIndex,
const ShapeItem & shapeItem);
135 void setShapeItems(
const QVector<ShapeItem> & shapeItems);
136 void reserveShapeItemsSpace(
const int numItems);
137 void addShapeItem(
const ShapeItem & item);
138 bool removeShapeItem(
const ShapeItem & item);
139 bool removeShapeItemAt(
const int shapeItemIndex);
145 return (m_barcode == other.m_barcode) &&
146 (m_weight == other.m_weight);
153 QVector<BarcodeItem> barcodeItems()
const;
154 int numBarcodeItems()
const;
157 const int barcodeItemIndex,
BarcodeItem & barcodeItem)
const;
159 bool setBarcodeItemAt(
160 const int barcodeItemIndex,
const BarcodeItem & barcodeItem);
162 void setBarcodeItems(
const QVector<BarcodeItem> & barcodeItems);
163 void reserveBarcodeItemsSpace(
const int numItems);
166 bool removeBarcodeItemAt(
const int barcodeItemIndex);
168 virtual QTextStream & print(QTextStream & strm)
const override;
171 QSharedDataPointer<ResourceRecognitionIndexItemData> d;
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition Printable.h:38
Definition ResourceRecognitionIndexItem.h:33
Definition ResourceRecognitionIndexItem.h:142
Definition ResourceRecognitionIndexItem.h:95
Definition ResourceRecognitionIndexItem.h:120
Definition ResourceRecognitionIndexItem.h:74