Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_image.h
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Line(s) | 102 | public: | |||
---|---|---|---|---|---|
222 | * notification with old and new sizes, so it adjust canvas origin | 222 | * notification with old and new sizes, so it adjust canvas origin | ||
223 | * accordingly and avoid jumping of the canvas on screen | 223 | * accordingly and avoid jumping of the canvas on screen | ||
224 | * | 224 | * | ||
225 | * @param newRect the rectangle of the image which will be visible | 225 | * @param newRect the rectangle of the image which will be visible | ||
226 | * after operation is completed | 226 | * after operation is completed | ||
227 | * | 227 | * | ||
228 | * Please note that the actual operation starts asynchronously in | 228 | * Please note that the actual operation starts asynchronously in | ||
229 | * a background, so you cannot expect the image having new size | 229 | * a background, so you cannot expect the image having new size | ||
230 | * right after ths call. | 230 | * right after this call. | ||
231 | */ | 231 | */ | ||
232 | void resizeImage(const QRect& newRect); | 232 | void resizeImage(const QRect& newRect); | ||
233 | 233 | | |||
234 | /** | 234 | /** | ||
235 | * @brief start asynchronous operation on cropping the image | 235 | * @brief start asynchronous operation on cropping the image | ||
236 | * | 236 | * | ||
237 | * The method will **drop** all the image data outside \p newRect | 237 | * The method will **drop** all the image data outside \p newRect | ||
238 | * and resize the image to fit the new size. The GUI will get correct | 238 | * and resize the image to fit the new size. The GUI will get correct | ||
239 | * notification with old and new sizes, so it adjust canvas origin | 239 | * notification with old and new sizes, so it adjust canvas origin | ||
240 | * accordingly and avoid jumping of the canvas on screen | 240 | * accordingly and avoid jumping of the canvas on screen | ||
241 | * | 241 | * | ||
242 | * @param newRect the rectangle of the image which will be cut-out | 242 | * @param newRect the rectangle of the image which will be cut-out | ||
243 | * | 243 | * | ||
244 | * Please note that the actual operation starts asynchronously in | 244 | * Please note that the actual operation starts asynchronously in | ||
245 | * a background, so you cannot expect the image having new size | 245 | * a background, so you cannot expect the image having new size | ||
246 | * right after ths call. | 246 | * right after this call. | ||
247 | */ | 247 | */ | ||
248 | void cropImage(const QRect& newRect); | 248 | void cropImage(const QRect& newRect); | ||
249 | 249 | | |||
250 | 250 | | |||
251 | /** | 251 | /** | ||
252 | * @brief start asynchronous operation on cropping a subtree of nodes starting at \p node | 252 | * @brief start asynchronous operation on cropping a subtree of nodes starting at \p node | ||
253 | * | 253 | * | ||
254 | * The method will **drop** all the layer data outside \p newRect. Neither | 254 | * The method will **drop** all the layer data outside \p newRect. Neither | ||
255 | * image nor a layer will be moved anywhere | 255 | * image nor a layer will be moved anywhere | ||
256 | * | 256 | * | ||
257 | * @param newRect the rectangle of the layer which will be cut-out | 257 | * @param newRect the rectangle of the layer which will be cut-out | ||
258 | * | 258 | * | ||
259 | * Please note that the actual operation starts asynchronously in | 259 | * Please note that the actual operation starts asynchronously in | ||
260 | * a background, so you cannot expect the image having new size | 260 | * a background, so you cannot expect the image having new size | ||
261 | * right after ths call. | 261 | * right after this call. | ||
262 | */ | 262 | */ | ||
263 | void cropNode(KisNodeSP node, const QRect& newRect); | 263 | void cropNode(KisNodeSP node, const QRect& newRect); | ||
264 | 264 | | |||
265 | /** | 265 | /** | ||
266 | * @brief start asynchronous operation on scaling the image | 266 | * @brief start asynchronous operation on scaling the image | ||
267 | * @param size new image size in pixels | 267 | * @param size new image size in pixels | ||
268 | * @param xres new image x-resolution pixels-per-pt | 268 | * @param xres new image x-resolution pixels-per-pt | ||
269 | * @param yres new image y-resolution pixels-per-pt | 269 | * @param yres new image y-resolution pixels-per-pt | ||
270 | * @param filterStrategy filtering strategy | 270 | * @param filterStrategy filtering strategy | ||
271 | * | 271 | * | ||
272 | * Please note that the actual operation starts asynchronously in | 272 | * Please note that the actual operation starts asynchronously in | ||
273 | * a background, so you cannot expect the image having new size | 273 | * a background, so you cannot expect the image having new size | ||
274 | * right after ths call. | 274 | * right after this call. | ||
275 | */ | 275 | */ | ||
276 | void scaleImage(const QSize &size, qreal xres, qreal yres, KisFilterStrategy *filterStrategy); | 276 | void scaleImage(const QSize &size, qreal xres, qreal yres, KisFilterStrategy *filterStrategy); | ||
277 | 277 | | |||
278 | /** | 278 | /** | ||
279 | * @brief start asynchronous operation on scaling a subtree of nodes starting at \p node | 279 | * @brief start asynchronous operation on scaling a subtree of nodes starting at \p node | ||
280 | * @param node node to scale | 280 | * @param node node to scale | ||
281 | * @param scaleX, @param scaleY scale coefficient to be applied to the node | 281 | * @param scaleX, @param scaleY scale coefficient to be applied to the node | ||
282 | * @param filterStrategy filtering strategy | 282 | * @param filterStrategy filtering strategy | ||
283 | * | 283 | * | ||
284 | * Please note that the actual operation starts asynchronously in | 284 | * Please note that the actual operation starts asynchronously in | ||
285 | * a background, so you cannot expect the image having new size | 285 | * a background, so you cannot expect the image having new size | ||
286 | * right after ths call. | 286 | * right after this call. | ||
287 | */ | 287 | */ | ||
288 | void scaleNode(KisNodeSP node, const QPointF ¢er, qreal scaleX, qreal scaleY, KisFilterStrategy *filterStrategy, KisSelectionSP selection); | 288 | void scaleNode(KisNodeSP node, const QPointF ¢er, qreal scaleX, qreal scaleY, KisFilterStrategy *filterStrategy, KisSelectionSP selection); | ||
289 | 289 | | |||
290 | /** | 290 | /** | ||
291 | * @brief start asynchronous operation on rotating the image | 291 | * @brief start asynchronous operation on rotating the image | ||
292 | * | 292 | * | ||
293 | * The image is resized to fit the rotated rectangle | 293 | * The image is resized to fit the rotated rectangle | ||
294 | * | 294 | * | ||
▲ Show 20 Lines • Show All 287 Lines • ▼ Show 20 Line(s) | |||||
582 | * Start of an iteration over the annotations of this image (including the ICC Profile) | 582 | * Start of an iteration over the annotations of this image (including the ICC Profile) | ||
583 | */ | 583 | */ | ||
584 | vKisAnnotationSP_it beginAnnotations(); | 584 | vKisAnnotationSP_it beginAnnotations(); | ||
585 | 585 | | |||
586 | /** end of an iteration over the annotations of this image */ | 586 | /** end of an iteration over the annotations of this image */ | ||
587 | vKisAnnotationSP_it endAnnotations(); | 587 | vKisAnnotationSP_it endAnnotations(); | ||
588 | 588 | | |||
589 | /** | 589 | /** | ||
590 | * Called before the image is delted and sends the sigAboutToBeDeleted signal | 590 | * Called before the image is deleted and sends the sigAboutToBeDeleted signal | ||
591 | */ | 591 | */ | ||
592 | void notifyAboutToBeDeleted(); | 592 | void notifyAboutToBeDeleted(); | ||
593 | 593 | | |||
594 | KisImageSignalRouter* signalRouter(); | 594 | KisImageSignalRouter* signalRouter(); | ||
595 | 595 | | |||
596 | /** | 596 | /** | ||
597 | * Returns whether we can reselect current global selection | 597 | * Returns whether we can reselect current global selection | ||
598 | * | 598 | * | ||
▲ Show 20 Lines • Show All 450 Lines • ▼ Show 20 Line(s) | 874 | public Q_SLOTS: | |||
1049 | * (*not* the creator of the stroke) decides that the stroke | 1049 | * (*not* the creator of the stroke) decides that the stroke | ||
1050 | * should be ended. If the creator of the stroke supports it, it | 1050 | * should be ended. If the creator of the stroke supports it, it | ||
1051 | * will be notified and the stroke will be cancelled | 1051 | * will be notified and the stroke will be cancelled | ||
1052 | */ | 1052 | */ | ||
1053 | void requestStrokeEnd(); | 1053 | void requestStrokeEnd(); | ||
1054 | 1054 | | |||
1055 | /** | 1055 | /** | ||
1056 | * Same as requestStrokeEnd() but is called by view manager when | 1056 | * Same as requestStrokeEnd() but is called by view manager when | ||
1057 | * the current node is changed. Use to dintinguish | 1057 | * the current node is changed. Use to distinguish | ||
1058 | * sigStrokeEndRequested() and | 1058 | * sigStrokeEndRequested() and | ||
1059 | * sigStrokeEndRequestedActiveNodeFiltered() which are used by | 1059 | * sigStrokeEndRequestedActiveNodeFiltered() which are used by | ||
1060 | * KisNodeJugglerCompressed | 1060 | * KisNodeJugglerCompressed | ||
1061 | */ | 1061 | */ | ||
1062 | void requestStrokeEndActiveNode(); | 1062 | void requestStrokeEndActiveNode(); | ||
1063 | 1063 | | |||
1064 | private: | 1064 | private: | ||
1065 | 1065 | | |||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |