Blender V5.0
grease_pencil_io_export_svg.cc File Reference
#include "BLI_bounds.hh"
#include "BLI_color.hh"
#include "BLI_string_utf8.h"
#include "BLI_vector.hh"
#include "BKE_curves.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_scene.hh"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DEG_depsgraph_query.hh"
#include "GEO_resample_curves.hh"
#include "GEO_set_curve_type.hh"
#include "grease_pencil_io_intern.hh"
#include <fmt/core.h>
#include <fmt/format.h>
#include <optional>
#include <pugixml.hpp>

Go to the source code of this file.

Classes

class  blender::io::grease_pencil::SVGExporter

Namespaces

namespace  blender
namespace  blender::io
namespace  blender::io::grease_pencil

Functions

static std::string blender::io::grease_pencil::rgb_to_hexstr (const float color[3])
static void blender::io::grease_pencil::write_stroke_color_attribute (pugi::xml_node node, const ColorGeometry4f &stroke_color, const float stroke_opacity, const bool round_cap)
static void blender::io::grease_pencil::write_fill_color_attribute (pugi::xml_node node, const ColorGeometry4f &fill_color, const float layer_opacity)
static void blender::io::grease_pencil::write_rect (pugi::xml_node node, const float x, const float y, const float width, const float height, const float thickness, const std::string &hexcolor)
static std::string blender::io::grease_pencil::frame_name (int frame_number)
ExportStatus blender::io::grease_pencil::export_svg (const IOContext &context, const ExportParams &params, Scene &scene, StringRefNull filepath)

Variables

constexpr const char * blender::io::grease_pencil::svg_exporter_name = "SVG Export for Grease Pencil"
constexpr const char * blender::io::grease_pencil::svg_exporter_version = "v2.0"