Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/gpencil/intern/gpencil_io_base.h
| Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | protected: | ||||
| float2 offset_; | float2 offset_; | ||||
| int cfra_; | int cfra_; | ||||
| float stroke_color_[4], fill_color_[4]; | float stroke_color_[4], fill_color_[4]; | ||||
| /* Geometry functions. */ | /* Geometry functions. */ | ||||
| bool gpencil_3D_point_to_screen_space(const float3 co, float2 &r_co); | 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_render_space(const float3 co, const bool is_ortho); | ||||
| float2 gpencil_3D_point_to_2D(const float3 co); | float2 gpencil_3D_point_to_2D(const float3 co); | ||||
| float stroke_point_radius_get(struct bGPDlayer *gpl, struct bGPDstroke *gps); | float stroke_point_radius_get(struct bGPDlayer *gpl, struct bGPDstroke *gps); | ||||
| void create_object_list(); | void create_object_list(); | ||||
| bool is_camera_mode(); | bool is_camera_mode(); | ||||
| bool is_orthographic(); | |||||
| float stroke_average_opacity_get(); | float stroke_average_opacity_get(); | ||||
| void prepare_layer_export_matrix(struct Object *ob, struct bGPDlayer *gpl); | void prepare_layer_export_matrix(struct Object *ob, struct bGPDlayer *gpl); | ||||
| void prepare_stroke_export_colors(struct Object *ob, struct bGPDstroke *gps); | void prepare_stroke_export_colors(struct Object *ob, struct bGPDstroke *gps); | ||||
| void selected_objects_boundbox_calc(); | void selected_objects_boundbox_calc(); | ||||
| void selected_objects_boundbox_get(rctf *boundbox); | void selected_objects_boundbox_get(rctf *boundbox); | ||||
| void filename_set(const char *filename); | void filename_set(const char *filename); | ||||
| private: | private: | ||||
| float avg_opacity_; | float avg_opacity_; | ||||
| bool is_camera_; | bool is_camera_; | ||||
| bool is_ortho_; | |||||
| rctf select_boundbox_; | rctf select_boundbox_; | ||||
| /* Camera matrix. */ | /* Camera matrix. */ | ||||
| float persmat_[4][4]; | float persmat_[4][4]; | ||||
| }; | }; | ||||
| } // namespace blender::io::gpencil | } // namespace blender::io::gpencil | ||||