|
Blender V4.3
|
#include <grease_pencil_io_intern.hh>
Inherited by blender::io::grease_pencil::SVGImporter.
Public Member Functions | |
| GreasePencilImporter (const IOContext &context, const ImportParams ¶ms) | |
| Object * | create_object (StringRefNull name) |
| int32_t | create_material (StringRefNull name, bool stroke, bool fill) |
Protected Attributes | |
| const IOContext | context_ |
| const ImportParams | params_ |
| Object * | object_ = nullptr |
Definition at line 34 of file grease_pencil_io_intern.hh.
| blender::io::grease_pencil::GreasePencilImporter::GreasePencilImporter | ( | const IOContext & | context, |
| const ImportParams & | params ) |
Definition at line 103 of file grease_pencil_io.cc.
| int blender::io::grease_pencil::GreasePencilImporter::create_material | ( | StringRefNull | name, |
| bool | stroke, | ||
| bool | fill ) |
Definition at line 122 of file grease_pencil_io.cc.
References BKE_grease_pencil_object_material_index_get_by_name(), BKE_grease_pencil_object_material_new(), blender::io::grease_pencil::IOContext::C, context_, copy_v4_v4(), CTX_data_main(), MaterialGPencilStyle::fill_rgba, MaterialGPencilStyle::flag, GP_MATERIAL_FILL_SHOW, GP_MATERIAL_STROKE_SHOW, Material::gp_style, object_, MaterialGPencilStyle::stroke_rgba, and Object::totcol.
Referenced by blender::io::grease_pencil::SVGImporter::read().
| Object * blender::io::grease_pencil::GreasePencilImporter::create_object | ( | StringRefNull | name | ) |
Definition at line 108 of file grease_pencil_io.cc.
References blender::ed::object::add_type(), blender::io::grease_pencil::IOContext::C, context_, Scene::cursor, View3D::local_view_uid, View3D::localvd, View3DCursor::location, OB_GREASE_PENCIL, rot, blender::io::grease_pencil::IOContext::scene, and blender::io::grease_pencil::IOContext::v3d.
Referenced by blender::io::grease_pencil::SVGImporter::read().
|
protected |
Definition at line 36 of file grease_pencil_io_intern.hh.
Referenced by create_material(), create_object(), and blender::io::grease_pencil::SVGImporter::read().
|
protected |
Definition at line 39 of file grease_pencil_io_intern.hh.
Referenced by create_material(), and blender::io::grease_pencil::SVGImporter::read().
|
protected |
Definition at line 37 of file grease_pencil_io_intern.hh.
Referenced by blender::io::grease_pencil::SVGImporter::read().