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

kviewshell

GMapOval Class Reference

Implements elliptical map areas. More...

#include <GMapAreas.h>

Inheritance diagram for GMapOval:

Inheritance graph
[legend]

List of all members.


Public Member Functions

virtual GP< GMapArea > get_copy (void) const
virtual MapAreaType const get_shape_type (void) const
virtual GUTF8String get_xmltag (const int height) const
virtual void map (GRectMapper &mapper)
virtual void unmap (GRectMapper &mapper)
virtual ~GMapOval ()

Static Public Member Functions

static GP< GMapOval > create (const GRect &rect)
static GP< GMapOval > create (void)

Protected Member Functions

virtual char const *const gma_check_object (void) const
virtual bool gma_is_point_inside (const int x, const int y) const
virtual void gma_move (int dx, int dy)
virtual GUTF8String gma_print (void)
virtual void gma_resize (int new_width, int new_height)
virtual void gma_transform (const GRect &grect)
 GMapOval (const GRect &rect)
 GMapOval (void)

GMapAreas.h

Files #"GMapAreas.h"# and #"GMapAreas.cpp"# implement base objects used by the plugin to display and manage hyperlinks and highlighted areas inside a {DjVuImage} page.

The currently supported areas can be rectangular ({GMapRect}), elliptical ({GMapOval}) and polygonal ({GMapPoly}). Every map area besides the definition of its shape contains information about display style and optional { URL}, which it may refer to. If this { URL} is not empty then the map area will work like a hyperlink.

The classes also implement some useful functions to ease geometry manipulations

Definition of base map area classes

Author:
Andrei Erofeev <eaf@geocities.com>
Version:
$Id: GMapAreas.h,v 1.8 2003/11/07 22:08:21 leonb Exp $#


virtual int gma_get_xmax (void) const
virtual int gma_get_xmin (void) const
virtual int gma_get_ymax (void) const
virtual int gma_get_ymin (void) const
int get_a (void) const
int get_b (void) const
int get_rmax (void) const
int get_rmin (void) const
virtual char const *const get_shape_name (void) const

Detailed Description

Implements elliptical map areas.

The only supported types of border are NO_BORDER#, XOR_BORDER# and SOLID_BORDER#. Its contents can not be highlighted either.

Definition at line 435 of file GMapAreas.h.


Constructor & Destructor Documentation

GMapOval::GMapOval ( void   )  [protected]

Definition at line 937 of file GMapAreas.cpp.

GMapOval::GMapOval ( const GRect &  rect  )  [protected]

Definition at line 838 of file GMapAreas.cpp.

GMapOval::~GMapOval (  )  [virtual]

Virtual destructor.

Definition at line 116 of file GMapAreas.cpp.


Member Function Documentation

static GP<GMapOval> GMapOval::create ( const GRect &  rect  )  [inline, static]

Create from the specified GRect.

Definition at line 445 of file GMapAreas.h.

static GP<GMapOval> GMapOval::create ( void   )  [inline, static]

Default creator.

Definition at line 442 of file GMapAreas.h.

int GMapOval::get_a ( void   )  const [inline]

Returns (xmax-xmin)/2.

Definition at line 530 of file GMapAreas.h.

int GMapOval::get_b ( void   )  const [inline]

Returns (ymax-ymin)/2.

Definition at line 533 of file GMapAreas.h.

GP< GMapArea > GMapOval::get_copy ( void   )  const [virtual]

Returns a copy of the oval.

Implements GMapArea.

Definition at line 947 of file GMapAreas.cpp.

int GMapOval::get_rmax ( void   )  const [inline]

Returns the greater of {get_a}() and {get_b}().

Definition at line 539 of file GMapAreas.h.

int GMapOval::get_rmin ( void   )  const [inline]

Returns the lesser of {get_a}() and {get_b}().

Definition at line 536 of file GMapAreas.h.

char const *const GMapOval::get_shape_name ( void   )  const [inline, virtual]

Returns #"oval"#.

Implements GMapArea.

Definition at line 554 of file GMapAreas.h.

virtual MapAreaType const GMapOval::get_shape_type ( void   )  const [inline, virtual]

Returns MapOval.

Reimplemented from GMapArea.

Definition at line 461 of file GMapAreas.h.

GUTF8String GMapOval::get_xmltag ( const int  height  )  const [virtual]

Implements GMapArea.

Definition at line 1025 of file GMapAreas.cpp.

char const *const GMapOval::gma_check_object ( void   )  const [protected, virtual]

Implements GMapArea.

Definition at line 808 of file GMapAreas.cpp.

int GMapOval::gma_get_xmax ( void   )  const [inline, protected, virtual]

Implements GMapArea.

Definition at line 548 of file GMapAreas.h.

int GMapOval::gma_get_xmin ( void   )  const [inline, protected, virtual]

Implements GMapArea.

Definition at line 542 of file GMapAreas.h.

int GMapOval::gma_get_ymax ( void   )  const [inline, protected, virtual]

Implements GMapArea.

Definition at line 551 of file GMapAreas.h.

int GMapOval::gma_get_ymin ( void   )  const [inline, protected, virtual]

Implements GMapArea.

Definition at line 545 of file GMapAreas.h.

bool GMapOval::gma_is_point_inside ( const int  x,
const int  y 
) const [protected, virtual]

Implements GMapArea.

Definition at line 800 of file GMapAreas.cpp.

void GMapOval::gma_move ( int  dx,
int  dy 
) [protected, virtual]

Implements GMapArea.

Definition at line 940 of file GMapAreas.cpp.

GUTF8String GMapOval::gma_print ( void   )  [protected, virtual]

Implements GMapArea.

Definition at line 845 of file GMapAreas.cpp.

void GMapOval::gma_resize ( int  new_width,
int  new_height 
) [protected, virtual]

Implements GMapArea.

Definition at line 784 of file GMapAreas.cpp.

void GMapOval::gma_transform ( const GRect &  grect  )  [protected, virtual]

Implements GMapArea.

Definition at line 792 of file GMapAreas.cpp.

void GMapOval::map ( GRectMapper &  mapper  )  [virtual]

Virtual function maps oval from one area to another using mapper.

Implements GMapArea.

Definition at line 853 of file GMapAreas.cpp.

void GMapOval::unmap ( GRectMapper &  mapper  )  [virtual]

Virtual function unmaps oval from one area to another using mapper.

Implements GMapArea.

Definition at line 871 of file GMapAreas.cpp.


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

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
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