okular
#include <annotations.h>
Public Member Functions | |
| Quad () | |
| Quad (const Quad &other) | |
| ~Quad () | |
| bool | capEnd () const |
| bool | capStart () const |
| double | feather () const |
| Quad & | operator= (const Quad &other) |
| NormalizedPoint | point (int index) const |
| void | setCapEnd (bool value) |
| void | setCapStart (bool value) |
| void | setFeather (double width) |
| void | setPoint (const NormalizedPoint &point, int index) |
| void | transform (const QTransform &matrix) |
| NormalizedPoint | transformedPoint (int index) const |
Detailed Description
The Quad class contains 8 coordinates and style definitions which describe a line part of the whole highlight annotation.
Definition at line 1122 of file annotations.h.
Constructor & Destructor Documentation
| HighlightAnnotation::Quad::Quad | ( | ) |
Creates a new quad.
Definition at line 1775 of file annotations.cpp.
| HighlightAnnotation::Quad::~Quad | ( | ) |
Destroys the quad.
Definition at line 1780 of file annotations.cpp.
| HighlightAnnotation::Quad::Quad | ( | const Quad & | other | ) |
Definition at line 1785 of file annotations.cpp.
Member Function Documentation
| bool HighlightAnnotation::Quad::capEnd | ( | ) | const |
Returns whether a cap should be used at the end.
Definition at line 1838 of file annotations.cpp.
| bool HighlightAnnotation::Quad::capStart | ( | ) | const |
Returns whether a cap should be used at the start.
Definition at line 1828 of file annotations.cpp.
| double HighlightAnnotation::Quad::feather | ( | ) | const |
Returns the width of the drawing feather.
Definition at line 1848 of file annotations.cpp.
| HighlightAnnotation::Quad & HighlightAnnotation::Quad::operator= | ( | const Quad & | other | ) |
Definition at line 1791 of file annotations.cpp.
| NormalizedPoint HighlightAnnotation::Quad::point | ( | int | index | ) | const |
Returns the normalized point at index.
index must be between 0 and 3.
Definition at line 1807 of file annotations.cpp.
| void HighlightAnnotation::Quad::setCapEnd | ( | bool | value | ) |
Sets whether a cap should be used at the end.
Definition at line 1833 of file annotations.cpp.
| void HighlightAnnotation::Quad::setCapStart | ( | bool | value | ) |
Sets whether a cap should be used at the start.
Definition at line 1823 of file annotations.cpp.
| void HighlightAnnotation::Quad::setFeather | ( | double | width | ) |
Sets the width of the drawing feather.
Definition at line 1843 of file annotations.cpp.
| void HighlightAnnotation::Quad::setPoint | ( | const NormalizedPoint & | point, |
| int | index | ||
| ) |
Sets the normalized point at index.
index must be between 0 and 3.
Definition at line 1799 of file annotations.cpp.
| void HighlightAnnotation::Quad::transform | ( | const QTransform & | matrix | ) |
Transforms the quad coordinates with the transformation defined by matrix.
Definition at line 1853 of file annotations.cpp.
| NormalizedPoint HighlightAnnotation::Quad::transformedPoint | ( | int | index | ) | const |
Returns the transformed (e.g.
rotated) normalized point at index.
index must be between 0 and 3.
Definition at line 1815 of file annotations.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference