GMapRect Class Reference

#include <GMapAreas.h>

Inheritance diagram for GMapRect:

GMapArea GPEnabled List of all members.

Detailed Description

Implements rectangular map areas.

This is the only kind of map areas supporting SHADOW_IN_BORDER#, SHADOW_OUT_BORDER#, SHADOW_EIN_BORDER# and SHADOW_EOUT_BORDER# types of border and area highlighting.

Definition at line 290 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
#


 operator GRect (void)
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
virtual char const *const gma_check_object (void) const

Public Member Functions

virtual ~GMapRect ()
int get_width (void) const
int get_height (void) const
GMapRectoperator= (const GRect &rect)
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< GMapRectcreate (void)
static GP< GMapRectcreate (const GRect &rect)

Protected Member Functions

 GMapRect (void)
 GMapRect (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 GUTF8String gma_print (void)

Protected Attributes

int xmin
int ymin
int xmax
int ymax

Member Function Documentation

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

Create with the specified GRect.

Definition at line 299 of file GMapAreas.h.

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

Default creator.

Definition at line 297 of file GMapAreas.h.

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

Returns a copy of the rectangle.

Implements GMapArea.

Definition at line 923 of file GMapAreas.cpp.

int GMapRect::get_height ( void   )  const [inline]

Returns the height of the rectangle.

Definition at line 306 of file GMapAreas.h.

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

Returns #"rect"#.

Implements GMapArea.

Definition at line 512 of file GMapAreas.h.

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

Returns MapRect.

Reimplemented from GMapArea.

Definition at line 316 of file GMapAreas.h.

int GMapRect::get_width ( void   )  const [inline]

Returns the width of the rectangle.

Definition at line 304 of file GMapAreas.h.

void GMapRect::map ( GRectMapper mapper  )  [virtual]

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

Implements GMapArea.

Definition at line 414 of file GMapAreas.cpp.

GMapRect::operator GRect ( void   )  [inline]

Returns GRect} describing the map area's rectangle.

Definition at line 491 of file GMapAreas.h.

GMapRect & GMapRect::operator= ( const GRect rect  ) 

Changes the GMapRect#'s geometry.

Definition at line 898 of file GMapAreas.cpp.

void GMapRect::unmap ( GRectMapper mapper  )  [virtual]

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

Implements GMapArea.

Definition at line 430 of file GMapAreas.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys