Go to the documentation of this file.
17 #ifndef IGNITION_COMMON_SVGLOADER_HH_
18 #define IGNITION_COMMON_SVGLOADER_HH_
24 #include <gz/math/Vector2.hh>
25 #include <gz/math/Matrix3.hh>
27 #include <ignition/utils/ImplPtr.hh>
29 #include <gz/common/config.hh>
30 #include <gz/common/graphics/Export.hh>
52 #pragma warning(disable: 4251)
62 struct IGNITION_COMMON_GRAPHICS_VISIBLE
SVGPath
67 #pragma warning(disable: 4251)
96 public:
explicit SVGLoader(
const unsigned int _samples);
113 public:
static void PathsToClosedPolylines(
127 IGN_UTILS_IMPL_PTR(dataPtr)
A loader for SVG files.
Definition: gz/common/SVGLoader.hh:90
std::string id
An id or name.
Definition: gz/common/SVGLoader.hh:71
ignition::math::Matrix3d transform
A 2D transform (or a list of transforms)
Definition: gz/common/SVGLoader.hh:77
std::vector< std::vector< SVGCommand > > subpaths
A list of subpaths (as lists of commands)
Definition: gz/common/SVGLoader.hh:80
Forward declarations for the common classes.
An SVG path element data structure.
Definition: gz/common/SVGLoader.hh:62
SVGCommand()
Constructor.
Definition: gz/common/SVGLoader.hh:41
std::string style
The style (i.e. stroke style, color, thickness etc)
Definition: gz/common/SVGLoader.hh:74
char cmd
A letter that describe the segment.
Definition: gz/common/SVGLoader.hh:47
std::vector< std::vector< ignition::math::Vector2d > > polylines
The polylines described by the commands.
Definition: gz/common/SVGLoader.hh:83
SVG command data structure.
Definition: gz/common/SVGLoader.hh:38