|
Blender V4.3
|
Inherits blender::io::grease_pencil::GreasePencilExporter.
Public Attributes | |
| HPDF_Doc | pdf_ |
| HPDF_Page | page_ |
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< float > | try_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< float4x4 > | camera_persmat_ |
| blender::Bounds< float2 > | render_rect_ |
Definition at line 32 of file grease_pencil_io_export_pdf.cc.
| bool blender::io::grease_pencil::PDFExporter::add_page | ( | ) |
Definition at line 185 of file grease_pencil_io_export_pdf.cc.
References page_, pdf_, and blender::io::grease_pencil::GreasePencilExporter::render_rect_.
Referenced by export_scene().
| bool blender::io::grease_pencil::PDFExporter::create_document | ( | ) |
Definition at line 171 of file grease_pencil_io_export_pdf.cc.
Referenced by export_scene().
| void blender::io::grease_pencil::PDFExporter::export_grease_pencil_layer | ( | const Object & | object, |
| const bke::greasepencil::Layer & | layer, | ||
| const bke::greasepencil::Drawing & | drawing ) |
Definition at line 150 of file grease_pencil_io_export_pdf.cc.
References blender::io::grease_pencil::GreasePencilExporter::foreach_stroke_in_layer(), and write_stroke_to_polyline().
Referenced by export_grease_pencil_objects().
| void blender::io::grease_pencil::PDFExporter::export_grease_pencil_objects | ( | int | frame_number | ) |
Definition at line 122 of file grease_pencil_io_export_pdf.cc.
References BLI_assert, blender::io::grease_pencil::GreasePencilExporter::context_, Object::data, DEG_get_evaluated_object(), blender::io::grease_pencil::IOContext::depsgraph, export_grease_pencil_layer(), OB_GREASE_PENCIL, blender::io::grease_pencil::GreasePencilExporter::retrieve_objects(), and Object::type.
Referenced by export_scene().
| bool blender::io::grease_pencil::PDFExporter::export_scene | ( | Scene & | scene, |
| StringRefNull | filepath ) |
Definition at line 70 of file grease_pencil_io_export_pdf.cc.
References blender::io::grease_pencil::ExportParams::Active, add_page(), BKE_scene_camera_switch_update(), BKE_scene_graph_update_for_newframe(), blender::io::grease_pencil::GreasePencilExporter::context_, create_document(), Object::data, DEG_get_evaluated_object(), blender::io::grease_pencil::IOContext::depsgraph, export_grease_pencil_objects(), blender::io::grease_pencil::ExportParams::frame_mode, blender::io::grease_pencil::is_selected_frame(), blender::io::grease_pencil::ExportParams::object, blender::io::grease_pencil::GreasePencilExporter::params_, blender::io::grease_pencil::GreasePencilExporter::prepare_render_params(), result, blender::io::grease_pencil::ExportParams::Scene, blender::io::grease_pencil::ExportParams::Selected, and write_to_file().
Referenced by blender::io::grease_pencil::export_pdf().
| blender::io::grease_pencil::GreasePencilExporter::GreasePencilExporter | ( | const IOContext & | context, |
| const ExportParams & | params ) |
Definition at line 64 of file grease_pencil_io.cc.
References blender::threading::parallel_reduce().
| void blender::io::grease_pencil::PDFExporter::write_stroke_to_polyline | ( | const float4x4 & | transform, |
| const Span< float3 > | positions, | ||
| const bool | cyclic, | ||
| const ColorGeometry4f & | color, | ||
| const float | opacity, | ||
| std::optional< float > | width ) |
Definition at line 199 of file grease_pencil_io_export_pdf.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, linearrgb_to_srgb_v3_v3(), page_, pdf_, blender::io::grease_pencil::GreasePencilExporter::project_to_screen(), and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by export_grease_pencil_layer().
| bool blender::io::grease_pencil::PDFExporter::write_to_file | ( | StringRefNull | filepath | ) |
Definition at line 259 of file grease_pencil_io_export_pdf.cc.
References alloc_utf16_from_8(), blender::StringRefNull::c_str(), free(), pdf_, and true.
Referenced by export_scene().
| HPDF_Page blender::io::grease_pencil::PDFExporter::page_ |
Definition at line 37 of file grease_pencil_io_export_pdf.cc.
Referenced by add_page(), and write_stroke_to_polyline().
| HPDF_Doc blender::io::grease_pencil::PDFExporter::pdf_ |
Definition at line 36 of file grease_pencil_io_export_pdf.cc.
Referenced by add_page(), create_document(), write_stroke_to_polyline(), and write_to_file().