|
Blender
V3.3
|
#include <gpencil_io_import_base.hh>
Public Member Functions | |
| GpencilImporter (const struct GpencilIOParams *iparams) | |
| virtual bool | read ()=0 |
Public Member Functions inherited from blender::io::gpencil::GpencilIO | |
| GpencilIO (const GpencilIOParams *iparams) | |
| void | frame_number_set (int value) |
| void | prepare_camera_params (Scene *scene, const GpencilIOParams *iparams) |
Protected Member Functions | |
| struct Object * | create_object () |
| int32_t | create_material (const char *name, bool stroke, bool fill) |
Protected Member Functions inherited from blender::io::gpencil::GpencilIO | |
| bool | gpencil_3D_point_to_screen_space (const float3 co, float2 &r_co) |
| float2 | gpencil_3D_point_to_render_space (const float3 co) |
| float2 | gpencil_3D_point_to_2D (const float3 co) |
| float | stroke_point_radius_get (struct bGPDlayer *gpl, struct bGPDstroke *gps) |
| void | create_object_list () |
| bool | is_camera_mode () |
| float | stroke_average_opacity_get () |
| void | prepare_layer_export_matrix (struct Object *ob, struct bGPDlayer *gpl) |
| void | prepare_stroke_export_colors (struct Object *ob, struct bGPDstroke *gps) |
| void | selected_objects_boundbox_calc () |
| void | selected_objects_boundbox_get (rctf *boundbox) |
| void | filepath_set (const char *filepath) |
Additional Inherited Members | |
Protected Attributes inherited from blender::io::gpencil::GpencilIO | |
| GpencilIOParams | params_ |
| bool | invert_axis_ [2] |
| float4x4 | diff_mat_ |
| char | filepath_ [FILE_MAX] |
| blender::Vector< ObjectZ > | ob_list_ |
| struct Depsgraph * | depsgraph_ |
| struct bGPdata * | gpd_ |
| struct Main * | bmain_ |
| struct Scene * | scene_ |
| struct RegionView3D * | rv3d_ |
| int | winx_ |
| int | winy_ |
| int | render_x_ |
| int | render_y_ |
| float | camera_ratio_ |
| rctf | camera_rect_ |
| float2 | offset_ |
| int | cfra_ |
| float | stroke_color_ [4] |
| float | fill_color_ [4] |
Definition at line 12 of file gpencil_io_import_base.hh.
| blender::io::gpencil::GpencilImporter::GpencilImporter | ( | const struct GpencilIOParams * | iparams | ) |
Definition at line 24 of file gpencil_io_import_base.cc.
|
protected |
Definition at line 51 of file gpencil_io_import_base.cc.
References BKE_gpencil_material_find_index_by_name_prefix(), BKE_gpencil_object_material_new(), blender::io::gpencil::GpencilIO::bmain_, copy_v4_v4(), MaterialGPencilStyle::fill_rgba, MaterialGPencilStyle::flag, GP_MATERIAL_FILL_SHOW, GP_MATERIAL_STROKE_SHOW, Material::gp_style, GpencilIOParams::ob, blender::io::gpencil::GpencilIO::params_, MaterialGPencilStyle::stroke_rgba, and Object::totcol.
Referenced by blender::io::gpencil::GpencilImporterSVG::read().
|
protected |
Definition at line 29 of file gpencil_io_import_base.cc.
References GpencilIOParams::C, Scene::cursor, ED_gpencil_add_defaults(), ED_object_add_type(), GpencilIOParams::filename, View3D::local_view_uuid, View3D::localvd, View3DCursor::location, OB_GPENCIL, blender::io::gpencil::GpencilIO::params_, rot, blender::io::gpencil::GpencilIO::scene_, and GpencilIOParams::v3d.
Referenced by blender::io::gpencil::GpencilImporterSVG::read().
|
pure virtual |
Implemented in blender::io::gpencil::GpencilImporterSVG.