class GMapPoly: public GMapArea

Implements polygonal map areas.

Inheritance:


Public Methods

[more]bool does_side_cross_rect(const GRect & grect, int side)
Returns 1 if side side crosses the specified rectangle rect.
[more]int get_points_num(void) const
Returns the number of vertices in the polygon
[more]int get_sides_num(void) const
Returns the number sides in the polygon
[more]int get_x(int i) const
Returns x coordinate of vertex number
[more]int get_y(int i) const
Returns y coordinate of vertex number
[more]void move_vertex(int i, int x, int y)
Moves vertex
[more]int add_vertex(int x, int y)
Adds a new vertex and returns number of vertices in the polygon
[more]void close_poly()
Closes the polygon if it is not closed
[more]void optimize_data(void)
Optimizes the polygon
[more]char const* const check_data(void)
Checks validity of the polygon
[more]virtual MapAreaType const get_shape_type( void ) const
Returns MapPoly
[more]virtual char const* const get_shape_name(void) const
Returns "poly" all the time
[more]virtual GP<GMapArea> get_copy(void) const
Returns a copy of the polygon
[more]void get_coords( GList<int> & CoordList )
Virtual function generating a list of defining coordinates


Inherited from GMapArea:

Public Fields

oGString url
oGString target
oGString comment
oBorderType border_type
obool border_always_visible
ounsigned long int border_color
oint border_width
ounsigned long int hilite_color

Public Methods

obool is_point_inside(int x, int y)
oint get_xmin(void)
oint get_ymin(void)
oint get_xmax(void)
oint get_ymax(void)
oGRect get_bound_rect(void)
ovoid move(int dx, int dy)
ovoid resize(int new_width, int new_height)
ovoid transform(const GRect & grect)
ochar const* const check_object(void)
oGString print(void)

Public

o


Inherited from GPEnabled:

Public Methods

oGPEnabled& operator=(const GPEnabled & obj)
oint get_count(void) const

Protected Fields

ovolatile int count


Documentation

Implements polygonal map areas. The only supported types of border are NO_BORDER, XOR_BORDER and SOLID_BORDER. Its contents can not be highlighted either. It's worth mentioning here that despite its name the polygon may be open, which basically makes it a broken line. This very specific mode is used by the hyperlink editor when creating the polygonal hyperlink.
obool does_side_cross_rect(const GRect & grect, int side)
Returns 1 if side side crosses the specified rectangle rect.

oint get_points_num(void) const
Returns the number of vertices in the polygon

oint get_sides_num(void) const
Returns the number sides in the polygon

oint get_x(int i) const
Returns x coordinate of vertex number

oint get_y(int i) const
Returns y coordinate of vertex number

ovoid move_vertex(int i, int x, int y)
Moves vertex

oint add_vertex(int x, int y)
Adds a new vertex and returns number of vertices in the polygon

ovoid close_poly()
Closes the polygon if it is not closed

ovoid optimize_data(void)
Optimizes the polygon

ochar const* const check_data(void)
Checks validity of the polygon

ovirtual MapAreaType const get_shape_type( void ) const
Returns MapPoly

ovirtual char const* const get_shape_name(void) const
Returns "poly" all the time

ovirtual GP<GMapArea> get_copy(void) const
Returns a copy of the polygon

ovoid get_coords( GList<int> & CoordList )
Virtual function generating a list of defining coordinates


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.