Main Page | Class List | Class Members

OGL_Library::Layer Class Reference

The class provide Layer manage. Add some Polygon or Remove it, and provide PointInPolygon method to determine XY point(Screen pixel) is in what Polygon of layer? More...

List of all members.

Public Member Functions

void Add (Polygon PolygonToAdd)
void Remove (Polygon PolygonToRemove)
void Remove (int Index)
int PointInPolygon (Point xy)

Properties

Polygon this [int Index]


Detailed Description

The class provide Layer manage. Add some Polygon or Remove it, and provide PointInPolygon method to determine XY point(Screen pixel) is in what Polygon of layer?


Member Function Documentation

void OGL_Library::Layer::Add Polygon  PolygonToAdd  ) 
 

Add Polygon.

Parameters:
PolygonToAdd Polygon type.

void OGL_Library::Layer::Remove Polygon  PolygonToRemove  ) 
 

Remove Polygon.

Parameters:
PolygonToRemove Polygon type.

void OGL_Library::Layer::Remove int  Index  ) 
 

Remove Polygon by index.

Parameters:
Index int type.

int OGL_Library::Layer::PointInPolygon Point  xy  ) 
 

determine XY point(Screen pixel) is in what Polygon of layer.

Parameters:
XY Point type.
Returns:
Polygon index that int type


Property Documentation

Polygon OGL_Library::Layer::this[int Index] [get, set]
 

Get some Polygon by index.

Parameters:
Index int type.
Returns:
Polygon type


Generated on Tue Mar 9 03:09:45 2004 for OGL_Library by doxygen 1.3.6