Okular
area.h
161 static double distanceSqr(double x, double y, double xScale, double yScale, const NormalizedPoint &start, const NormalizedPoint &end);
468 };
481 ObjectRect(double left, double top, double right, double bottom, bool ellipse, ObjectType type, void *object);
628 * This class is an object rect that doesn't own the given pointer, i.e. won't delete it on destruction
634 NonOwningObjectRect(double left, double top, double right, double bottom, bool ellipse, ObjectType type, void *object);
724template<class NormalizedShape, class Shape> void RegularArea<NormalizedShape, Shape>::simplify()
745template<class NormalizedShape, class Shape> bool RegularArea<NormalizedShape, Shape>::isNull() const
761template<class NormalizedShape, class Shape> bool RegularArea<NormalizedShape, Shape>::intersects(const NormalizedShape &shape) const
777template<class NormalizedShape, class Shape> bool RegularArea<NormalizedShape, Shape>::intersects(const RegularArea<NormalizedShape, Shape> *area) const
785 typename QList<NormalizedShape>::const_iterator areaIt = area->begin(), areaItEnd = area->end();
796template<class NormalizedShape, class Shape> void RegularArea<NormalizedShape, Shape>::appendArea(const RegularArea<NormalizedShape, Shape> *area)
798 typename QList<NormalizedShape>::const_iterator areaIt = area->begin(), areaItEnd = area->end();
804template<class NormalizedShape, class Shape> void RegularArea<NormalizedShape, Shape>::appendShape(const NormalizedShape &shape, MergeSide side)
825 intersection = (O_LAST_R >= O_NEW_L) && (O_LAST_L <= O_NEW_R) && ((O_LAST_T <= O_NEW_T && O_LAST_B >= O_NEW_B) || (O_LAST_T >= O_NEW_T && O_LAST_B <= O_NEW_B));
828 intersection = (O_LAST_B >= O_NEW_T) && (O_LAST_T <= O_NEW_B) && ((O_LAST_R <= O_NEW_R && O_LAST_L >= O_NEW_L) || (O_LAST_R >= O_NEW_R && O_LAST_L <= O_NEW_L));
831 intersection = (O_LAST_L <= O_NEW_R) && (O_LAST_R >= O_NEW_L) && ((O_LAST_T <= O_NEW_T && O_LAST_B >= O_NEW_B) || (O_LAST_T >= O_NEW_T && O_LAST_B <= O_NEW_B));
860template<class NormalizedShape, class Shape> bool RegularArea<NormalizedShape, Shape>::contains(double x, double y) const
876template<class NormalizedShape, class Shape> bool RegularArea<NormalizedShape, Shape>::contains(const NormalizedShape &shape) const
885template<class NormalizedShape, class Shape> QList<Shape> RegularArea<NormalizedShape, Shape>::geometry(int xScale, int yScale, int dx, int dy) const
903template<class NormalizedShape, class Shape> void RegularArea<NormalizedShape, Shape>::transform(const QTransform &matrix)
This class describes the object rectangle for an annotation.
Definition area.h:556
Annotation struct holds properties shared by all annotations.
Definition annotations.h:99
This class stores the geometry of a highlighting area in normalized coordinates, together with highli...
Definition area.h:945
HighlightAreaRect(const RegularAreaRect *area=nullptr)
Creates a new highlight area rect with the coordinates of the given area.
Definition area.cpp:299
This class is an object rect that doesn't own the given pointer, i.e.
Definition area.h:632
NormalizedPoint is a helper class which stores the coordinates of a normalized point.
Definition area.h:117
NormalizedPoint & operator=(const NormalizedPoint &)
A NormalizedRect is a rectangle which can be defined by two NormalizedPoints.
Definition area.h:189
double distanceSqr(double x, double y, double xScale, double yScale) const
Returns the squared distance of the normalized point (x, y) to the closest edge, or 0 if the point is...
Definition area.h:387
NormalizedRect(const NormalizedRect &)
NormalizedRect & operator=(const NormalizedRect &other)
bool isRight(const NormalizedPoint &pt) const
Returns true if the point pt is located to the left of the right edge of the rectangle.
Definition area.h:376
bool isLeft(const NormalizedPoint &pt) const
Returns true if the point pt is located to the right of the left edge of the rectangle.
Definition area.h:367
bool isTop(const NormalizedPoint &pt) const
Returns true if the point pt is located above the top of the rectangle.
Definition area.h:340
bool isTopOrLevel(const NormalizedPoint &pt) const
Returns true if the point pt is located above the bottom of the rectangle.
Definition area.h:358
bool isBottomOrLevel(const NormalizedPoint &pt) const
Returns true if the point pt is located below the top of the rectangle.
Definition area.h:349
bool isBottom(const NormalizedPoint &pt) const
Returns true if the point pt is located below the bottom of the rectangle.
Definition area.h:331
An area with normalized coordinates that contains a reference to an object.
Definition area.h:458
This is a list of NormalizedRect, to describe an area consisting of multiple rectangles using normali...
Definition area.h:927
An area with normalized coordinates, consisting of NormalizedShape objects.
Definition area.h:665
void appendShape(const NormalizedShape &shape, MergeSide side=MergeAll)
Appends the given shape to this area.
Definition area.h:804
bool intersects(const NormalizedShape &shape) const
Returns whether the regular area intersects with the given shape.
Definition area.h:761
bool contains(const NormalizedShape &shape) const
Returns whether this area contains a NormalizedShape object that equals shape.
Definition area.h:876
void transform(const QTransform &matrix)
Transforms the regular area with the operations defined by matrix.
Definition area.h:903
QList< Shape > geometry(int xScale, int yScale, int dx=0, int dy=0) const
Returns the subareas of this regular area mapped to a reference area of size xScale x yScale,...
Definition area.h:885
void simplify()
Simplifies this regular area by merging its intersecting subareas.
Definition area.h:724
bool contains(double x, double y) const
Returns whether this area contains the normalized point (x, y).
Definition area.h:860
void appendArea(const RegularArea< NormalizedShape, Shape > *area)
Appends the given area to this area.
Definition area.h:796
bool intersects(const RegularArea< NormalizedShape, Shape > *area) const
Returns whether this area intersects with the given area.
Definition area.h:777
This class describes the object rectangle for a source reference.
Definition area.h:599
Q_SCRIPTABLE Q_NOREPLY void start()
void append(QList< T > &&value)
iterator begin()
bool contains(const AT &value) const const
iterator end()
Annotation
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.