Blender V4.3
blender::io::grease_pencil::SVGExporter Class Reference

Inherits blender::io::grease_pencil::GreasePencilExporter.

Public Member Functions

bool export_scene (Scene &scene, StringRefNull filepath)
 
void export_grease_pencil_objects (pugi::xml_node node, int frame_number)
 
void export_grease_pencil_layer (pugi::xml_node node, const Object &object, const bke::greasepencil::Layer &layer, const bke::greasepencil::Drawing &drawing)
 
void write_document_header ()
 
pugi::xml_node write_main_node ()
 
pugi::xml_node write_polygon (pugi::xml_node node, const float4x4 &transform, Span< float3 > positions)
 
pugi::xml_node write_polyline (pugi::xml_node node, const float4x4 &transform, Span< float3 > positions, bool cyclic, std::optional< float > width)
 
pugi::xml_node write_path (pugi::xml_node node, const float4x4 &transform, Span< float3 > positions, bool cyclic)
 
bool write_to_file (StringRefNull filepath)
 
 GreasePencilExporter (const IOContext &context, const ExportParams &params)
 
- Public Member Functions inherited from blender::io::grease_pencil::GreasePencilExporter
 GreasePencilExporter (const IOContext &context, const ExportParams &params)
 
void prepare_render_params (Scene &scene, int frame_number)
 
Vector< ObjectInforetrieve_objects () const
 
void foreach_stroke_in_layer (const Object &object, const bke::greasepencil::Layer &layer, const bke::greasepencil::Drawing &drawing, WriteStrokeFn stroke_fn)
 
float2 project_to_screen (const float4x4 &transform, const float3 &position) const
 

Public Attributes

pugi::xml_document main_doc_
 

Additional Inherited Members

- Public Types inherited from blender::io::grease_pencil::GreasePencilExporter
using WriteStrokeFn
 
- Static Public Member Functions inherited from blender::io::grease_pencil::GreasePencilExporter
static ColorGeometry4f compute_average_stroke_color (const Material &material, const Span< ColorGeometry4f > vertex_colors)
 
static float compute_average_stroke_opacity (const Span< float > opacities)
 
static std::optional< floattry_get_uniform_point_width (const RegionView3D &rv3d, const Span< float3 > world_positions, const Span< float > radii)
 
- Protected Attributes inherited from blender::io::grease_pencil::GreasePencilExporter
const IOContext context_
 
const ExportParams params_
 
std::optional< float4x4camera_persmat_
 
blender::Bounds< float2render_rect_
 

Detailed Description

Definition at line 107 of file grease_pencil_io_export_svg.cc.

Member Function Documentation

◆ export_grease_pencil_layer()

◆ export_grease_pencil_objects()

◆ export_scene()

◆ GreasePencilExporter()

blender::io::grease_pencil::GreasePencilExporter::GreasePencilExporter ( const IOContext & context,
const ExportParams & params )

Definition at line 64 of file grease_pencil_io.cc.

◆ write_document_header()

void blender::io::grease_pencil::SVGExporter::write_document_header ( )

◆ write_main_node()

pugi::xml_node blender::io::grease_pencil::SVGExporter::write_main_node ( )

◆ write_path()

pugi::xml_node blender::io::grease_pencil::SVGExporter::write_path ( pugi::xml_node node,
const float4x4 & transform,
Span< float3 > positions,
bool cyclic )

◆ write_polygon()

pugi::xml_node blender::io::grease_pencil::SVGExporter::write_polygon ( pugi::xml_node node,
const float4x4 & transform,
Span< float3 > positions )

◆ write_polyline()

pugi::xml_node blender::io::grease_pencil::SVGExporter::write_polyline ( pugi::xml_node node,
const float4x4 & transform,
Span< float3 > positions,
bool cyclic,
std::optional< float > width )

◆ write_to_file()

bool blender::io::grease_pencil::SVGExporter::write_to_file ( StringRefNull filepath)

Member Data Documentation

◆ main_doc_

pugi::xml_document blender::io::grease_pencil::SVGExporter::main_doc_

The documentation for this class was generated from the following file: