Changeset View
Changeset View
Standalone View
Standalone View
libs/libkis/Node.h
Show All 34 Lines | 34 | { | |||
---|---|---|---|---|---|
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | Q_DISABLE_COPY(Node) | 36 | Q_DISABLE_COPY(Node) | ||
37 | 37 | | |||
38 | public: | 38 | public: | ||
39 | explicit Node(KisImageSP image, KisNodeSP node, QObject *parent = 0); | 39 | explicit Node(KisImageSP image, KisNodeSP node, QObject *parent = 0); | ||
40 | ~Node() override; | 40 | ~Node() override; | ||
41 | bool operator==(const Node &other) const; | 41 | bool operator==(const Node &other) const; | ||
42 | bool operator!=(const Node &other) const; | 42 | bool operator!=(const Node &other) const; | ||
43 | | ||||
43 | public Q_SLOTS: | 44 | public Q_SLOTS: | ||
44 | 45 | | |||
45 | /** | 46 | /** | ||
46 | * @brief clone clone the current node. The node is not associated with any image. | 47 | * @brief clone clone the current node. The node is not associated with any image. | ||
47 | */ | 48 | */ | ||
48 | Node *clone() const; | 49 | Node *clone() const; | ||
49 | 50 | | |||
50 | /** | 51 | /** | ||
▲ Show 20 Lines • Show All 223 Lines • ▼ Show 20 Line(s) | |||||
274 | * <li>transformmask | 275 | * <li>transformmask | ||
275 | * <li>selectionmask | 276 | * <li>selectionmask | ||
276 | * <li>colorizemask | 277 | * <li>colorizemask | ||
277 | * </ul> | 278 | * </ul> | ||
278 | * | 279 | * | ||
279 | * If the Node object isn't wrapping a valid Krita layer or mask object, and | 280 | * If the Node object isn't wrapping a valid Krita layer or mask object, and | ||
280 | * empty string is returned. | 281 | * empty string is returned. | ||
281 | */ | 282 | */ | ||
282 | QString type() const; | 283 | virtual QString type() const; | ||
283 | 284 | | |||
284 | /** | 285 | /** | ||
285 | * Check whether the current Node is visible in the layer stack | 286 | * Check whether the current Node is visible in the layer stack | ||
286 | */ | 287 | */ | ||
287 | bool visible() const; | 288 | bool visible() const; | ||
288 | 289 | | |||
289 | /** | 290 | /** | ||
290 | * Set the visibility of the current node to @param visible | 291 | * Set the visibility of the current node to @param visible | ||
▲ Show 20 Lines • Show All 216 Lines • ▼ Show 20 Line(s) | |||||
507 | */ | 508 | */ | ||
508 | QImage thumbnail(int w, int h); | 509 | QImage thumbnail(int w, int h); | ||
509 | 510 | | |||
510 | private: | 511 | private: | ||
511 | 512 | | |||
512 | friend class Filter; | 513 | friend class Filter; | ||
513 | friend class Document; | 514 | friend class Document; | ||
514 | friend class Selection; | 515 | friend class Selection; | ||
516 | friend class GroupLayer; | ||||
517 | friend class FileLayer; | ||||
518 | friend class FilterLayer; | ||||
519 | friend class FillLayer; | ||||
520 | friend class VectorLayer; | ||||
521 | friend class FilterMask; | ||||
522 | friend class SelectionMask; | ||||
515 | /** | 523 | /** | ||
516 | * @brief paintDevice gives access to the internal paint device of this Node | 524 | * @brief paintDevice gives access to the internal paint device of this Node | ||
517 | * @return the paintdevice or 0 if the node does not have an editable paint device. | 525 | * @return the paintdevice or 0 if the node does not have an editable paint device. | ||
518 | */ | 526 | */ | ||
519 | KisPaintDeviceSP paintDevice() const; | 527 | KisPaintDeviceSP paintDevice() const; | ||
520 | KisImageSP image() const; | 528 | KisImageSP image() const; | ||
521 | KisNodeSP node() const; | 529 | KisNodeSP node() const; | ||
522 | 530 | | |||
523 | struct Private; | 531 | struct Private; | ||
524 | Private *const d; | 532 | Private *const d; | ||
525 | 533 | | |||
526 | }; | 534 | }; | ||
527 | 535 | | |||
528 | #endif // LIBKIS_NODE_H | 536 | #endif // LIBKIS_NODE_H |