SVGLoader.hh
Go to the documentation of this file.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: SuppressWarning.hh:64
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: SuppressWarning.hh:67
std::vector< double > numbers
Coordinates for the command.
Definition: SVGLoader.hh:56
char cmd
A letter that describe the segment.
Definition: SVGLoader.hh:48
void DumpPaths(const std::vector< SVGPath > &_paths, std::ostream &_out) const
Outputs the content of the paths to file (or console)
static void PathsToClosedPolylines(const std::vector< common::SVGPath > &_paths, const double _tol, std::vector< std::vector< ignition::math::Vector2d > > &_closedPolys, std::vector< std::vector< ignition::math::Vector2d > > &_openPolys)
Reads in paths and outputs closed polylines and open polylines.
bool Parse(const std::string &_filename, std::vector< SVGPath > &_paths)
Reads an SVG file and loads all the paths.
Forward declarations for the common classes.
std::vector< std::vector< ignition::math::Vector2d > > polylines
The polylines described by the commands.
Definition: SVGLoader.hh:84
std::vector< std::vector< SVGCommand > > subpaths
A list of subpaths (as lists of commands)
Definition: SVGLoader.hh:81
ignition::math::Matrix3d transform
A 2D transform (or a list of transforms)
Definition: SVGLoader.hh:78
std::string style
The style (i.e. stroke style, color, thickness etc)
Definition: SVGLoader.hh:75