okular
area.h
Go to the documentation of this file.
87 static double distanceSqr( double x, double y, double xScale, double yScale, const NormalizedPoint& start, const NormalizedPoint& end );
348 SourceRef
362 ObjectRect( double left, double top, double right, double bottom, bool ellipse, ObjectType type, void *object );
690 bool RegularArea<NormalizedShape, Shape>::intersects( const RegularArea<NormalizedShape,Shape> *area ) const
701 typename QList<NormalizedShape>::const_iterator areaIt = area->begin(), areaItEnd = area->end();
713 void RegularArea<NormalizedShape, Shape>::appendArea( const RegularArea<NormalizedShape, Shape> *area )
718 typename QList<NormalizedShape>::const_iterator areaIt = area->begin(), areaItEnd = area->end();
725 void RegularArea<NormalizedShape, Shape>::appendShape( const NormalizedShape& shape, MergeSide side )
829 QList<Shape> RegularArea<NormalizedShape, Shape>::geometry( int xScale, int yScale, int dx, int dy ) const
NormalizedPoint is a helper class which stores the coordinates of a normalized point.
Definition: area.h:47
Merge only if the bottom side of the first area intersect.
Definition: global.h:67
void appendArea(const RegularArea< NormalizedShape, Shape > *area)
Appends the given area to the regular area.
Definition: area.h:713
QList< Shape > geometry(int xScale, int yScale, int dx=0, int dy=0) const
Returns the subareas of the regular areas as shapes for the given scaling factor xScale and yScale...
Definition: area.h:829
bool isRight(const NormalizedPoint &pt) const
Returns true if the point pt is located to the left of the right arm of rectangle.
Definition: area.h:276
This class describes the object rectangle for a source reference.
Definition: area.h:474
bool contains(double x, double y) const
Returns whether the regular area contains the normalized point x, y.
Definition: area.h:800
NormalizedRect is a helper class which stores the coordinates of a normalized rect, which is a rectangle of.
Definition: area.h:105
void appendShape(const NormalizedShape &shape, MergeSide side=MergeAll)
Appends the given shape to the regular area.
Definition: area.h:725
Definition: area.h:860
#define O_NEW_L
#define O_LAST_T
bool intersects(const RegularArea< NormalizedShape, Shape > *area) const
Returns whether the regular area intersects with the given area.
Definition: area.h:690
#define O_LAST
#define O_LAST_B
#define O_NEW_R
This class describes the object rectangle for an annotation.
Definition: area.h:431
void append(const T &value)
OKULAR_EXPORT QDebug operator<<(QDebug str, const Okular::NormalizedPoint &point)
Debug operator for normalized point.
Definition: area.cpp:118
static double distanceSqr(double x, double y, double xScale, double yScale, const QLinkedList< NormalizedPoint > &path)
Calculates distance of the given point x y xScale yScale to the path.
Definition: annotations.cpp:45
bool isTopOrLevel(const NormalizedPoint &pt) const
Returns true if the point pt is located above the bottom of the rectangle.
Definition: area.h:258
double distanceSqr(double x, double y, double xScale, double yScale) const
Returns the distance of the point x y xScale yScale to the closest edge or 0 if the point is within t...
Definition: area.h:286
A regular area of NormalizedShape which normalizes a Shape.
Definition: area.h:557
bool isBottom(const NormalizedPoint &pt) const
Returns true if the point pt is located to the bottom of the rectangle.
Definition: area.h:231
iterator end()
#define O_LAST_L
void transform(const QTransform &matrix)
Transforms the regular area with the operations defined by matrix.
Definition: area.h:848
bool contains(const T &value) const
bool isBottomOrLevel(const NormalizedPoint &pt) const
Returns true if the point pt is located under the top of the rectangle.
Definition: area.h:249
#define O_LAST_R
#define O_NEW_T
bool isTop(const NormalizedPoint &pt) const
Returns true if the point pt is located on the top of the rectangle.
Definition: area.h:240
Annotation struct holds properties shared by all annotations.
Definition: annotations.h:90
void simplify()
Simplifies the regular area by merging its intersecting subareas.
Definition: area.h:628
HighlightAreaRect(const RegularAreaRect *area=0)
Creates a new highlight area rect with the coordinates of the given area.
Definition: area.cpp:297
#define O_NEW_B
bool isLeft(const NormalizedPoint &pt) const
Returns true if the point pt is located to the right of the left arm of rectangle.
Definition: area.h:267
This class stores the coordinates of a highlighting area together with the id of the highlight owner ...
Definition: area.h:878
iterator begin()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.