Board
0.9.5
|
Sample code showing the use of shape iterators as well as the ShapeList::topLevelFindLast<T>(n) method. More...
Functions | |
ShapeList | generateGroup (int n) |
template<typename T > | |
ShapeList | findAll (ShapeList &list) |
int | main (int, char *[]) |
Variables | |
const int | NbColors = 4 |
const Color | Colors [NbColors] = {Color("#cc0000"), Color("#00cc00"), Color("#0000cc"), Color("#c0c0c0")} |
Sample code showing the use of shape iterators as well as the ShapeList::topLevelFindLast<T>(n) method.
This source code is part of the Board project, a C++ library whose purpose is to allow simple drawings in EPS, FIG or SVG files. Copyright (C) 2007 Sebastien Fourey http://foureys.users.greyc.fr
Extract all shapes of a given type (T) thanks to the topLevelFindLast<>() method.
References LibBoard::ShapeList::append(), and LibBoard::ShapeList::topLevelFindLast().