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

Inherits blender::io::grease_pencil::GreasePencilImporter.

Public Member Functions

bool read (StringRefNull filepath)
 
 GreasePencilImporter (const IOContext &context, const ImportParams &params)
 
- Public Member Functions inherited from blender::io::grease_pencil::GreasePencilImporter
 GreasePencilImporter (const IOContext &context, const ImportParams &params)
 
Objectcreate_object (StringRefNull name)
 
int32_t create_material (StringRefNull name, bool stroke, bool fill)
 

Additional Inherited Members

- Protected Attributes inherited from blender::io::grease_pencil::GreasePencilImporter
const IOContext context_
 
const ImportParams params_
 
Objectobject_ = nullptr
 

Detailed Description

Definition at line 48 of file grease_pencil_io_import_svg.cc.

Member Function Documentation

◆ GreasePencilImporter()

blender::io::grease_pencil::GreasePencilImporter::GreasePencilImporter ( const IOContext & context,
const ImportParams & params )

Definition at line 42 of file grease_pencil_io.cc.

◆ read()

bool blender::io::grease_pencil::SVGImporter::read ( StringRefNull filepath)

Definition at line 282 of file grease_pencil_io_import_svg.cc.

References ARRAY_SIZE, blender::bke::greasepencil::TreeNode::as_layer(), BKE_main_blendfile_path_from_global(), BKE_report(), BLI_path_abs(), BLI_path_split_file_part(), blender::StringRefNull::c_str(), blender::io::grease_pencil::GreasePencilImporter::context_, blender::io::grease_pencil::GreasePencilImporter::create_material(), blender::io::grease_pencil::GreasePencilImporter::create_object(), Object::data, DEG2RAD, ELEM, blender::io::grease_pencil::extend_curves_geometry(), FILE_MAX, GreasePencil::flag, blender::io::grease_pencil::ImportParams::frame_number, blender::math::from_rotation(), blender::io::grease_pencil::get_layer_id(), GP_LAYER_TREE_NODE_USE_LIGHTS, blender::IndexRange::is_empty(), blender::bke::greasepencil::TreeNode::is_layer(), blender::io::grease_pencil::GreasePencilImporter::object_, blender::io::grease_pencil::GreasePencilImporter::params_, blender::io::grease_pencil::ImportParams::recenter_bounds, blender::io::grease_pencil::IOContext::reports, RPT_ERROR, RPT_WARNING, blender::io::grease_pencil::ImportParams::scale, blender::math::scale(), UnitSettings::scale_length, blender::io::grease_pencil::IOContext::scene, blender::io::grease_pencil::shape_attributes_to_curves(), blender::io::grease_pencil::shift_to_bounds_center(), STRNCPY, blender::bke::greasepencil::Drawing::strokes_for_write(), UnitSettings::system, Scene::unit, blender::io::grease_pencil::ImportParams::use_scene_unit, and USER_UNIT_NONE.

Referenced by blender::io::grease_pencil::import_svg().


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