• Skip to content
  • Skip to link menu
KDE 4.2 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 1061 of file annotations.h.


Public Member Functions

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

Constructor & Destructor Documentation

HighlightAnnotation::Quad::Quad (  ) 

Creates a new quad.

Definition at line 1578 of file annotations.cpp.

HighlightAnnotation::Quad::~Quad (  ) 

Destroys the quad.

Definition at line 1583 of file annotations.cpp.

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

Definition at line 1588 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 1641 of file annotations.cpp.

bool HighlightAnnotation::Quad::capStart (  )  const

Returns whether a cap should be used at the start.

Definition at line 1631 of file annotations.cpp.

double HighlightAnnotation::Quad::feather (  )  const

Returns the width of the drawing feather.

Definition at line 1651 of file annotations.cpp.

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

Definition at line 1594 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 1610 of file annotations.cpp.

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

Sets whether a cap should be used at the end.

Definition at line 1636 of file annotations.cpp.

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

Sets whether a cap should be used at the start.

Definition at line 1626 of file annotations.cpp.

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

Sets the width of the drawing feather.

Definition at line 1646 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 1602 of file annotations.cpp.

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

Transforms the quad coordinates with the transformation defined by matrix.

Definition at line 1656 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 1618 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