Geometrize  1.0
C++ library for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Namespaces | Functions
shapemutator.cpp File Reference
#include "shapemutator.h"
#include <cassert>
#include <cstdint>
#include <cmath>
#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 "triangle.h"
#include "../commonutil.h"

Namespaces

 geometrize
 

Functions

void geometrize::setup (geometrize::Shape &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::setup (geometrize::Circle &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::setup (geometrize::Ellipse &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::setup (geometrize::Line &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::setup (geometrize::Polyline &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::setup (geometrize::QuadraticBezier &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::setup (geometrize::Rectangle &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::setup (geometrize::RotatedEllipse &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::setup (geometrize::RotatedRectangle &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::setup (geometrize::Triangle &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::Shape &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::Circle &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::Ellipse &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::Line &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::Polyline &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::QuadraticBezier &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::Rectangle &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::RotatedEllipse &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::RotatedRectangle &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::mutate (geometrize::Triangle &s, const std::int32_t xBound, const std::int32_t yBound)
 
void geometrize::translate (geometrize::Shape &s, const float x, const float y)
 
void geometrize::translate (geometrize::Circle &s, const float x, const float y)
 
void geometrize::translate (geometrize::Ellipse &s, const float x, const float y)
 
void geometrize::translate (geometrize::Line &s, const float x, const float y)
 
void geometrize::translate (geometrize::Polyline &s, const float x, const float y)
 
void geometrize::translate (geometrize::QuadraticBezier &s, const float x, const float y)
 
void geometrize::translate (geometrize::Rectangle &s, const float x, const float y)
 
void geometrize::translate (geometrize::RotatedEllipse &s, const float x, const float y)
 
void geometrize::translate (geometrize::RotatedRectangle &s, const float x, const float y)
 
void geometrize::translate (geometrize::Triangle &s, const float x, const float y)
 
void geometrize::scale (geometrize::Shape &s, const float scaleFactor)
 
void geometrize::scale (geometrize::Circle &s, const float scaleFactor)
 
void geometrize::scale (geometrize::Ellipse &s, const float scaleFactor)
 
void geometrize::scale (geometrize::Line &s, const float scaleFactor)
 
void geometrize::scale (geometrize::Polyline &s, const float scaleFactor)
 
void geometrize::scale (geometrize::QuadraticBezier &s, const float scaleFactor)
 
void geometrize::scale (geometrize::Rectangle &s, const float scaleFactor)
 
void geometrize::scale (geometrize::RotatedEllipse &s, const float scaleFactor)
 
void geometrize::scale (geometrize::RotatedRectangle &s, const float scaleFactor)
 
void geometrize::scale (geometrize::Triangle &s, const float scaleFactor)
 
void geometrize::rotate (geometrize::Shape &s, const float angle)
 
void geometrize::rotate (geometrize::Line &s, const float angle)
 
void geometrize::rotate (geometrize::RotatedEllipse &s, const float angle)
 
void geometrize::rotate (geometrize::RotatedRectangle &s, const float angle)
 
void geometrize::rotate (geometrize::Triangle &s, const float angle)