Blender  V3.3
Public Member Functions | Static Protected Member Functions | List of all members
blender::io::gpencil::GpencilExporterSVG Class Reference

#include <gpencil_io_export_svg.hh>

Inheritance diagram for blender::io::gpencil::GpencilExporterSVG:
blender::io::gpencil::GpencilExporter blender::io::gpencil::GpencilIO

Public Member Functions

 GpencilExporterSVG (const char *filepath, const struct GpencilIOParams *iparams)
 
bool add_newpage ()
 
bool add_body ()
 
bool write ()
 
- Public Member Functions inherited from blender::io::gpencil::GpencilExporter
 GpencilExporter (const struct GpencilIOParams *iparams)
 
- 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)
 

Static Protected Member Functions

static void add_rect (pugi::xml_node node, float x, float y, float width, float height, float thickness, std::string hexcolor)
 
static void add_text (pugi::xml_node node, float x, float y, std::string text, float size, std::string hexcolor)
 

Additional Inherited Members

- 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)
 
- Protected Attributes inherited from blender::io::gpencil::GpencilIO
GpencilIOParams params_
 
bool invert_axis_ [2]
 
float4x4 diff_mat_
 
char filepath_ [FILE_MAX]
 
blender::Vector< ObjectZob_list_
 
struct Depsgraphdepsgraph_
 
struct bGPdatagpd_
 
struct Mainbmain_
 
struct Scenescene_
 
struct RegionView3Drv3d_
 
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]
 

Detailed Description

Definition at line 20 of file gpencil_io_export_svg.hh.

Constructor & Destructor Documentation

◆ GpencilExporterSVG()

blender ::io ::gpencil::GpencilExporterSVG::GpencilExporterSVG ( const char *  filepath,
const struct GpencilIOParams iparams 
)

Member Function Documentation

◆ add_body()

bool blender ::io ::gpencil::GpencilExporterSVG::add_body ( )

Definition at line 58 of file gpencil_io_export_svg.cc.

◆ add_newpage()

bool blender ::io ::gpencil::GpencilExporterSVG::add_newpage ( )

Definition at line 52 of file gpencil_io_export_svg.cc.

◆ add_rect()

void blender ::io ::gpencil::GpencilExporterSVG::add_rect ( pugi::xml_node  node,
float  x,
float  y,
float  width,
float  height,
float  thickness,
std::string  hexcolor 
)
staticprotected

Create a SVG rectangle

Parameters
nodeParent node
xX location
yY location
widthwidth of the rectangle
heightHeight of the rectangle
thicknessThickness of the line
hexcolorColor of the line

Definition at line 362 of file gpencil_io_export_svg.cc.

References height, node, width, x, and y.

◆ add_text()

void blender ::io ::gpencil::GpencilExporterSVG::add_text ( pugi::xml_node  node,
float  x,
float  y,
std::string  text,
float  size,
std::string  hexcolor 
)
staticprotected

Create SVG text

Parameters
nodeParent node
xX location
yY location
textText to include
sizeSize of the text
hexcolorColor of the text

Definition at line 382 of file gpencil_io_export_svg.cc.

References node, size(), x, and y.

◆ write()

bool blender ::io ::gpencil::GpencilExporterSVG::write ( )
virtual

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