Geometrize  1.0
C++ library for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
shapetypes.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <array>
4 #include <cstdint>
5 #include <string>
6 #include <utility>
7 #include <vector>
8 
9 namespace geometrize
10 {
11 
16 enum ShapeTypes : std::uint32_t
17 {
18  RECTANGLE = 1U,
20  TRIANGLE = 4U,
21  ELLIPSE = 8U,
23  CIRCLE = 32U,
24  LINE = 64U,
26  POLYLINE = 256U,
28 };
29 
33 extern const std::array<ShapeTypes, static_cast<std::size_t>(ShapeTypes::SHAPE_COUNT)> allShapes;
34 
38 extern const std::vector<std::pair<ShapeTypes, std::string>> shapeTypeNames;
39 
40 }
ShapeTypes
The ShapeTypes enum specifies the types of shapes that can be used. These can be combined to produce ...
Definition: shapetypes.h:16
Definition: shapetypes.h:26
Definition: shapetypes.h:21
Definition: shapetypes.h:25
const std::array< ShapeTypes, static_cast< std::size_t >ShapeTypes::SHAPE_COUNT)> allShapes
allShapes is a convenient array of all of the members of ShapeTypes.
Definition: shapetypes.cpp:6
Definition: shapetypes.h:24
Definition: shapetypes.h:27
Definition: shapetypes.h:19
Definition: shapetypes.h:23
Definition: shapetypes.h:18
Definition: shapetypes.h:20
Definition: shapetypes.h:22
const std::vector< std::pair< ShapeTypes, std::string > > shapeTypeNames
shapeTypeNames provides a convenient mapping to names of types of shape (all lower case...
Definition: shapetypes.cpp:19