#include <CUI_PolyEdgeBorder.h>
Inheritance diagram for CUI_PolyEdgeBorder:

Public Member Functions | |
| CUI_PolyEdgeBorder (v2_f *vlist=NULL, int numvert=0) | |
| constructor | |
| virtual | ~CUI_PolyEdgeBorder () |
| destructor - deallocate vertex list | |
| virtual bool | GetBorder (double dtime, v2_fp &vlist, int &numvert, unsigned short &primitivetype) |
| returns a list of 2d vertices and UI_POLYGON | |
| virtual bool | GetOutline (double dtime, v2_fp &vlist, int &numvert) |
| returna list of 2d vertices that if drawn with UI_LINE_LOOP will produce the outline | |
| virtual bool | SetBorder (v2_f *vlist, int numvert) |
| Defines the border by a list of vertices in counter-clockwise order. | |
| virtual bool | AddPoint (v2_f point) |
| Add a point to the border (used during file loading). | |
| virtual bool | TestHit (float x, float y) |
| Test to see if a given point is within this boundary. | |
Protected Attributes | |
| v2_f * | m_vlist |
| a list of the vertices defining this border | |
| int | m_numvert |
| the number of vertices in the list | |
A simple convex polygonal edge border
|
||||||||||||
|
constructor
|
|
||||||||||||||||||||
|
returns a list of 2d vertices and UI_POLYGON This should do as a general purpose primitive, but a more sophisticated tesselating algorithm may be required for more complex shapes.
Implements IUI_Border. |
|
||||||||||||||||
|
returna list of 2d vertices that if drawn with UI_LINE_LOOP will produce the outline
Implements IUI_Border. |
|
||||||||||||
|
Defines the border by a list of vertices in counter-clockwise order. Assumes that vertices are in counter-clockwise order and form a convex polygon.
Implements IUI_Border. |
|
||||||||||||
|
Test to see if a given point is within this boundary.
Implements IUI_Border. |
1.3.4