Blender V4.3
grease_pencil_io.cc File Reference
#include "BLI_color.hh"
#include "BLI_math_matrix.hh"
#include "BLI_math_vector.h"
#include "BLI_math_vector.hh"
#include "BKE_attribute.hh"
#include "BKE_camera.h"
#include "BKE_context.hh"
#include "BKE_crazyspace.hh"
#include "BKE_curves.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_layer.hh"
#include "BKE_material.h"
#include "BKE_scene.hh"
#include "DNA_grease_pencil_types.h"
#include "DNA_material_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_view3d_types.h"
#include "DEG_depsgraph_query.hh"
#include "GEO_resample_curves.hh"
#include "ED_grease_pencil.hh"
#include "ED_object.hh"
#include "ED_view3d.hh"
#include "UI_view2d.hh"
#include "grease_pencil_io_intern.hh"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::io
 
namespace  blender::io::grease_pencil
 

Functions

static float blender::io::grease_pencil::get_average (const Span< float > values)
 
static ColorGeometry4f blender::io::grease_pencil::get_average (const Span< ColorGeometry4f > values)
 
static std::optional< floatblender::io::grease_pencil::try_get_constant_value (const VArray< float > values, const float epsilon=1e-5f)
 
static IndexMask blender::io::grease_pencil::get_visible_strokes (const Object &object, const bke::greasepencil::Drawing &drawing, IndexMaskMemory &memory)
 
static std::optional< Bounds< float2 > > blender::io::grease_pencil::compute_drawing_bounds (const ARegion &region, const RegionView3D &rv3d, const Object &object, const Object &object_eval, const int layer_index, const int frame_number, const bke::greasepencil::Drawing &drawing)
 
static std::optional< Bounds< float2 > > blender::io::grease_pencil::compute_objects_bounds (const ARegion &region, const RegionView3D &rv3d, const Depsgraph &depsgraph, const Span< GreasePencilExporter::ObjectInfo > objects, const int frame_number)
 
static float4x4 blender::io::grease_pencil::persmat_from_camera_object (Scene &scene)
 

Variables

constexpr const char * blender::io::grease_pencil::attr_material_index = "material_index"