Blender
V5.0
source
blender
blenkernel
BKE_bake_items_paths.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include <optional>
12
#include <string>
13
14
#include "
BLI_string_ref.hh
"
15
#include "
BLI_sub_frame.hh
"
16
#include "
BLI_vector.hh
"
17
18
namespace
blender::bke::bake
{
19
20
struct
MetaFile
{
21
SubFrame
frame
;
22
std::string
path
;
23
};
24
25
struct
BakePath
{
27
std::string
meta_dir
;
32
std::string
blobs_dir
;
37
std::optional<std::string>
bake_dir
;
38
39
static
BakePath
from_single_root
(
StringRefNull
root_dir);
40
};
41
42
std::string
frame_to_file_name
(
const
SubFrame
&frame);
43
std::optional<SubFrame>
file_name_to_frame
(
StringRef
file_name);
44
45
Vector<MetaFile>
find_sorted_meta_files
(
StringRefNull
meta_dir);
46
47
}
// namespace blender::bke::bake
BLI_string_ref.hh
BLI_sub_frame.hh
BLI_vector.hh
blender::StringRefNull
Definition
BLI_string_ref.hh:132
blender::StringRef
Definition
BLI_string_ref.hh:150
blender::Vector
Definition
BLI_vector.hh:76
blender::bke::bake
Definition
BKE_bake_data_block_id.hh:22
blender::bke::bake::frame_to_file_name
std::string frame_to_file_name(const SubFrame &frame)
Definition
bake_items_paths.cc:14
blender::bke::bake::file_name_to_frame
std::optional< SubFrame > file_name_to_frame(StringRef file_name)
Definition
bake_items_paths.cc:22
blender::bke::bake::find_sorted_meta_files
Vector< MetaFile > find_sorted_meta_files(StringRefNull meta_dir)
Definition
bake_items_paths.cc:36
blender::SubFrame
Definition
BLI_sub_frame.hh:23
blender::bke::bake::BakePath
Definition
BKE_bake_items_paths.hh:25
blender::bke::bake::BakePath::from_single_root
static BakePath from_single_root(StringRefNull root_dir)
Definition
bake_items_paths.cc:67
blender::bke::bake::BakePath::blobs_dir
std::string blobs_dir
Definition
BKE_bake_items_paths.hh:32
blender::bke::bake::BakePath::bake_dir
std::optional< std::string > bake_dir
Definition
BKE_bake_items_paths.hh:37
blender::bke::bake::BakePath::meta_dir
std::string meta_dir
Definition
BKE_bake_items_paths.hh:27
blender::bke::bake::MetaFile
Definition
BKE_bake_items_paths.hh:20
blender::bke::bake::MetaFile::frame
SubFrame frame
Definition
BKE_bake_items_paths.hh:21
blender::bke::bake::MetaFile::path
std::string path
Definition
BKE_bake_items_paths.hh:22
Generated on
for Blender by
doxygen
1.16.1