|
Marbellous
Marbellous, a WebApp to generate paper marbling patterns.
|
Contains a vector of polygons and is iterable. More...
#include <Scene.hpp>

Public Member Functions | |
| const auto & | getDisplacements () const |
| vector of all displacements More... | |
| unsigned | getGeneration () const |
| Get the generation of the scene. More... | |
| int | addPolygon (Polygon const &pol) |
| Polygon & | operator[] (size_t const index) |
| Polygon const & | operator[] (size_t const index) const |
| size_t | getPolygonCount () const |
| void | clear () |
| Clear the scene by deleting all polygons. More... | |
| std::vector< Polygon >::iterator | begin () |
| std::vector< Polygon >::const_iterator | begin () const |
| std::vector< Polygon >::const_reverse_iterator | rbegin () const |
| std::vector< Polygon >::iterator | end () |
| std::vector< Polygon >::const_iterator | end () const |
| std::vector< Polygon >::const_reverse_iterator | rend () const |
| void | applyDisplacement (size_t _canvasSize) |
| Apply the current stored displacement. More... | |
| void | addDisplacement (Point p, float newRadius) |
| void | setDisplacementRadius (float rad) |
Contains a vector of polygons and is iterable.
Displacement of polygons can be done at a leter time.
|
inline |

|
inline |
|
inline |
Apply the current stored displacement.
The generation will increase by one.


|
inline |

|
inline |
|
inline |
Clear the scene by deleting all polygons.

|
inline |

|
inline |
|
inline |
vector of all displacements
Get the currently saved displacements.

|
inline |
Get the generation of the scene.

|
inline |
|
inline |
Get or set the polygon at index, might throw std::out_of_range
| index | Index of the polygon you want to access |
|
inline |
Get the polygon at index, might throw std::out_of_range
| index | Index of the polygon you want to read |
|
inline |
|
inline |
|
inline |
