Geometrize  1.0
C++ library for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Namespaces | Functions
shapefactory.cpp File Reference
#include "shapefactory.h"
#include <cassert>
#include <cstdint>
#include <memory>
#include "shape.h"
#include "circle.h"
#include "ellipse.h"
#include "line.h"
#include "polyline.h"
#include "quadraticbezier.h"
#include "rectangle.h"
#include "rotatedellipse.h"
#include "rotatedrectangle.h"
#include "shapetypes.h"
#include "triangle.h"
#include "shapemutator.h"
#include "../commonutil.h"
#include "../rasterizer/rasterizer.h"

Namespaces

 geometrize
 

Functions

std::function< std::shared_ptr
< geometrize::Shape >)> 
geometrize::createDefaultShapeCreator (geometrize::ShapeTypes types, std::int32_t w, std::int32_t h)
 createDefaultShapeCreator Creates an instance of the default shape creator object. The setup, mutate and rasterize methods are bound with default methods. More...
 
std::shared_ptr
< geometrize::Shape
geometrize::create (geometrize::ShapeTypes t)
 create Creates a new shape of the specified type. More...
 
std::shared_ptr
< geometrize::Shape
geometrize::randomShape ()
 randomShape Creates a random shape. More...
 
std::shared_ptr
< geometrize::Shape
geometrize::randomShapeOf (geometrize::ShapeTypes t)
 randomShapeOf Creates a random shape from the types supplied. More...