Go to the documentation of this file.
17 #ifndef IGNITION_COMMON_SVGLOADER_HH_
18 #define IGNITION_COMMON_SVGLOADER_HH_
27 #include <ignition/utils/ImplPtr.hh>
29 #include <ignition/common/graphics/Export.hh>
51 #pragma warning(disable: 4251)
61 struct IGNITION_COMMON_GRAPHICS_VISIBLE
SVGPath
66 #pragma warning(disable: 4251)
95 public:
explicit SVGLoader(
const unsigned int _samples);
112 public:
static void PathsToClosedPolylines(
126 IGN_UTILS_IMPL_PTR(dataPtr)
A loader for SVG files.
Definition: SVGLoader.hh:89
std::string id
An id or name.
Definition: SVGLoader.hh:70
ignition::math::Matrix3d transform
A 2D transform (or a list of transforms)
Definition: SVGLoader.hh:76
std::vector< std::vector< SVGCommand > > subpaths
A list of subpaths (as lists of commands)
Definition: SVGLoader.hh:79
Forward declarations for the common classes.
An SVG path element data structure.
Definition: SVGLoader.hh:61
SVGCommand()
Constructor.
Definition: SVGLoader.hh:40
std::string style
The style (i.e. stroke style, color, thickness etc)
Definition: SVGLoader.hh:73
char cmd
A letter that describe the segment.
Definition: SVGLoader.hh:46
std::vector< std::vector< ignition::math::Vector2d > > polylines
The polylines described by the commands.
Definition: SVGLoader.hh:82
SVG command data structure.
Definition: SVGLoader.hh:37