Blender V5.0
blender::io::grease_pencil::PDFExporter Class Reference

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

Public Member Functions

bool export_scene (Scene &scene, StringRefNull filepath)
void export_grease_pencil_objects (int frame_number)
void export_grease_pencil_layer (const Object &object, const bke::greasepencil::Layer &layer, const bke::greasepencil::Drawing &drawing)
bool create_document ()
bool add_page ()
void write_stroke_to_polyline (const float4x4 &transform, const Span< float3 > positions, const bool cyclic, const ColorGeometry4f &color, const float opacity, std::optional< float > width)
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
bool is_selected_frame (const GreasePencil &grease_pencil, int frame_number) const
std::string coord_to_svg_string (const float2 &screen_co) const

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< 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< float2camera_rect_
float2 camera_fac_
blender::Bounds< float2screen_rect_

Detailed Description

Definition at line 30 of file grease_pencil_io_export_pdf.cc.

Member Function Documentation

◆ add_page()

◆ create_document()

bool blender::io::grease_pencil::PDFExporter::create_document ( )

Definition at line 164 of file grease_pencil_io_export_pdf.cc.

References pdf_, and printf.

Referenced by export_scene().

◆ export_grease_pencil_layer()

void blender::io::grease_pencil::PDFExporter::export_grease_pencil_layer ( const Object & object,
const bke::greasepencil::Layer & layer,
const bke::greasepencil::Drawing & drawing )

◆ export_grease_pencil_objects()

◆ export_scene()

◆ GreasePencilExporter()

◆ write_stroke_to_polyline()

◆ write_to_file()

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

Member Data Documentation

◆ page_

HPDF_Page blender::io::grease_pencil::PDFExporter::page_

Definition at line 35 of file grease_pencil_io_export_pdf.cc.

Referenced by add_page(), and write_stroke_to_polyline().

◆ pdf_

HPDF_Doc blender::io::grease_pencil::PDFExporter::pdf_

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