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

okular

Okular::HighlightAnnotation::Quad

Okular::HighlightAnnotation::Quad Class Reference

#include <annotations.h>

List of all members.


Detailed Description

The Quad class contains 8 coordinates and style definitions which describe a line part of the whole highlight annotation.

Definition at line 1001 of file annotations.h.


Public Member Functions

 Quad ()
 ~Quad ()
 Quad (const Quad &other)
Quad & operator= (const Quad &other)
void setPoint (const NormalizedPoint &point, int index)
NormalizedPoint point (int index) const
NormalizedPoint transformedPoint (int index) const
void setCapStart (bool value)
bool capStart () const
void setCapEnd (bool value)
bool capEnd () const
void setFeather (double width)
double feather () const
void transform (const QMatrix &matrix)

Constructor & Destructor Documentation

HighlightAnnotation::Quad::Quad (  ) 

Creates a new quad.

Definition at line 1539 of file annotations.cpp.

HighlightAnnotation::Quad::~Quad (  ) 

Destroys the quad.

Definition at line 1544 of file annotations.cpp.

HighlightAnnotation::Quad::Quad ( const Quad &  other  ) 

Definition at line 1549 of file annotations.cpp.


Member Function Documentation

HighlightAnnotation::Quad & HighlightAnnotation::Quad::operator= ( const Quad &  other  ) 

Definition at line 1555 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 1563 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 1571 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 1579 of file annotations.cpp.

void HighlightAnnotation::Quad::setCapStart ( bool  value  ) 

Sets whether a cap should be used at the start.

Definition at line 1587 of file annotations.cpp.

bool HighlightAnnotation::Quad::capStart (  )  const

Returns whether a cap should be used at the start.

Definition at line 1592 of file annotations.cpp.

void HighlightAnnotation::Quad::setCapEnd ( bool  value  ) 

Sets whether a cap should be used at the end.

Definition at line 1597 of file annotations.cpp.

bool HighlightAnnotation::Quad::capEnd (  )  const

Returns whether a cap should be used at the end.

Definition at line 1602 of file annotations.cpp.

void HighlightAnnotation::Quad::setFeather ( double  width  ) 

Sets the width of the drawing feather.

Definition at line 1607 of file annotations.cpp.

double HighlightAnnotation::Quad::feather (  )  const

Returns the width of the drawing feather.

Definition at line 1612 of file annotations.cpp.

void HighlightAnnotation::Quad::transform ( const QMatrix &  matrix  ) 

Transforms the quad coordinates with the transformation defined by matrix.

Definition at line 1617 of file annotations.cpp.


The documentation for this class was generated from the following files:
  • annotations.h
  • annotations.cpp

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