• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdegraphics
  • Sitemap
  • Contact Us
 

okular

Okular::RegularArea

Okular::RegularArea< NormalizedShape, Shape > Class Template Reference

#include <area.h>

Inheritance diagram for Okular::RegularArea< NormalizedShape, Shape >:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<class NormalizedShape, class Shape>
class Okular::RegularArea< NormalizedShape, Shape >

A regular area of NormalizedShape which normalizes a Shape.

Class NormalizedShape must have the following functions/operators defined:

  • bool contains( double, double )
  • bool intersects( NormalizedShape )
  • bool isNull()
  • Shape geometry( int, int )
  • operator|=( NormalizedShape ) which unite two NormalizedShape's

Definition at line 443 of file area.h.


Public Member Functions

void appendArea (const RegularArea< NormalizedShape, Shape > *area)
void appendShape (const NormalizedShape &shape, MergeSide side=MergeAll)
bool contains (const NormalizedShape &shape) const
bool contains (double x, double y) const
QList< Shape > geometry (int xScale, int yScale, int dx=0, int dy=0) const
bool intersects (const NormalizedShape &shape) const
bool intersects (const RegularArea< NormalizedShape, Shape > *area) const
bool isNull () const
void simplify ()
void transform (const QMatrix &matrix)
 ~RegularArea ()

Constructor & Destructor Documentation

template<class NormalizedShape, class Shape>
Okular::RegularArea< NormalizedShape, Shape >::~RegularArea (  )  [inline]

Destroys a regular area.

Definition at line 506 of file area.h.


Member Function Documentation

template<class NormalizedShape, class Shape>
void Okular::RegularArea< NormalizedShape, Shape >::appendArea ( const RegularArea< NormalizedShape, Shape > *  area  )  [inline]

Appends the given area to the regular area.

Definition at line 599 of file area.h.

template<class NormalizedShape, class Shape>
void Okular::RegularArea< NormalizedShape, Shape >::appendShape ( const NormalizedShape &  shape,
MergeSide  side = MergeAll 
) [inline]

Appends the given shape to the regular area.

Definition at line 611 of file area.h.

template<class NormalizedShape, class Shape>
bool Okular::RegularArea< NormalizedShape, Shape >::contains ( const NormalizedShape &  shape  )  const [inline]

Returns whether the regular area contains the given shape.

Definition at line 703 of file area.h.

template<class NormalizedShape, class Shape>
bool Okular::RegularArea< NormalizedShape, Shape >::contains ( double  x,
double  y 
) const [inline]

Returns whether the regular area contains the normalized point x, y.

Definition at line 686 of file area.h.

template<class NormalizedShape, class Shape>
QList< Shape > Okular::RegularArea< NormalizedShape, Shape >::geometry ( int  xScale,
int  yScale,
int  dx = 0,
int  dy = 0 
) const [inline]

Returns the subareas of the regular areas as shapes for the given scaling factor xScale and yScale, translated by dx and dy.

Definition at line 715 of file area.h.

template<class NormalizedShape, class Shape>
bool Okular::RegularArea< NormalizedShape, Shape >::intersects ( const NormalizedShape &  shape  )  const [inline]

Returns whether the regular area intersects with the given shape.

Definition at line 559 of file area.h.

template<class NormalizedShape, class Shape>
bool Okular::RegularArea< NormalizedShape, Shape >::intersects ( const RegularArea< NormalizedShape, Shape > *  area  )  const [inline]

Returns whether the regular area intersects with the given area.

Definition at line 576 of file area.h.

template<class NormalizedShape, class Shape>
bool Okular::RegularArea< NormalizedShape, Shape >::isNull (  )  const [inline]

Returns whether the regular area is a null area.

Definition at line 542 of file area.h.

template<class NormalizedShape, class Shape>
void Okular::RegularArea< NormalizedShape, Shape >::simplify (  )  [inline]

Simplifies the regular area by merging its intersecting subareas.

Definition at line 514 of file area.h.

template<class NormalizedShape, class Shape>
void Okular::RegularArea< NormalizedShape, Shape >::transform ( const QMatrix &  matrix  )  [inline]

Transforms the regular area with the operations defined by matrix.

Definition at line 734 of file area.h.


The documentation for this class was generated from the following file:
  • area.h

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdegraphics

Skip menu "kdegraphics"
  • okular
Generated for kdegraphics by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal