GMapOval Class Reference

#include <GMapAreas.h>

Inheritance diagram for GMapOval:

GMapArea GPEnabled List of all members.

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.


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
#


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

Public Member Functions

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

Static Public Member Functions

static GP< GMapOvalcreate (void)
static GP< GMapOvalcreate (const GRect &rect)

Protected Member Functions

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

Constructor & Destructor Documentation

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.

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:
KDE Home | KDE Accessibility Home | Description of Access Keys