List of all members.
Detailed Description
Polygon.
Polygon item.
Definition at line 41 of file polygon.h.
Constructor & Destructor Documentation
gccv::Polygon::Polygon |
( |
Canvas * |
canvas, |
|
|
std::list< Point > & |
points | |
|
) |
| | |
- Parameters:
-
| canvas | a Canvas. |
| points | the vertices positions. |
Creates a new Polygon and sets it as a child of the root Group of canvas.
- Parameters:
-
Creates a new Polygon inside parent and sets client as its associated ItemClient.
virtual gccv::Polygon::~Polygon |
( |
|
) |
[virtual] |
Member Function Documentation
void gccv::Polygon::AddPoint |
( |
double |
x, |
|
|
double |
y | |
|
) |
| | |
- Parameters:
-
| x | horizontal position of the new vertex. |
| y | vertical position of the new vertex. |
Apends a new vrtex to the vertices list.
virtual void gccv::Polygon::BuildPath |
( |
cairo_t * |
cr |
) |
const [virtual] |
- Parameters:
-
Builds the cairo path corresponding to the Polygon bounds. Don't draw anything.
Reimplemented from gccv::Item.
double gccv::Polygon::Distance |
( |
double |
x, |
|
|
double |
y, |
|
|
Item ** |
item | |
|
) |
| | const [virtual] |
- Parameters:
-
| x | horizontal position |
| y | vertical position |
| item | where to store the Item. |
Implementation of Item::Distance() for the Polygon class. Sets item to this.
Reimplemented from gccv::Item.
void gccv::Polygon::Draw |
( |
cairo_t * |
cr, |
|
|
bool |
is_vector | |
|
) |
| | const [virtual] |
- Parameters:
-
| cr | a cairo_t. |
| is_vector | whether the cairo_t is a vectorial context. |
Draws the Polygon to cr.
Reimplemented from gccv::Item.
void gccv::Polygon::Move |
( |
double |
x, |
|
|
double |
y | |
|
) |
| | [virtual] |
- Parameters:
-
| x | the horizontal deplacement |
| y | the vertical deplacement |
Moves the Polygon.
Reimplemented from gccv::Item.
void gccv::Polygon::SetPoints |
( |
std::list< Point > & |
points |
) |
|
- Parameters:
-
| points | the new vertices positions. |
Sets the vertices for the Polygon instance.
void gccv::Polygon::UpdateBounds |
( |
|
) |
[protected, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: