Blender
V4.3
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
5
#pragma once
6
7
#include <optional>
8
#include <string>
9
10
#include "
BLI_string_ref.hh
"
11
#include "
BLI_sub_frame.hh
"
12
#include "
BLI_vector.hh
"
13
14
namespace
blender::bke::bake
{
15
16
struct
MetaFile
{
17
SubFrame
frame
;
18
std::string
path
;
19
};
20
21
struct
BakePath
{
23
std::string
meta_dir
;
28
std::string
blobs_dir
;
33
std::optional<std::string>
bake_dir
;
34
35
static
BakePath
from_single_root
(
StringRefNull
root_dir);
36
};
37
38
std::string
frame_to_file_name
(
const
SubFrame
&frame);
39
std::optional<SubFrame>
file_name_to_frame
(
const
StringRef
file_name);
40
41
Vector<MetaFile>
find_sorted_meta_files
(
const
StringRefNull
meta_dir);
42
43
}
// namespace blender::bke::bake
BLI_string_ref.hh
BLI_sub_frame.hh
BLI_vector.hh
blender::StringRefNull
Definition
BLI_string_ref.hh:111
blender::StringRef
Definition
BLI_string_ref.hh:128
blender::Vector
Definition
BLI_vector.hh:65
blender::bke::bake
Definition
BKE_bake_data_block_id.hh:20
blender::bke::bake::file_name_to_frame
std::optional< SubFrame > file_name_to_frame(const StringRef file_name)
Definition
bake_items_paths.cc:22
blender::bke::bake::find_sorted_meta_files
Vector< MetaFile > find_sorted_meta_files(const StringRefNull meta_dir)
Definition
bake_items_paths.cc:36
blender::bke::bake::frame_to_file_name
std::string frame_to_file_name(const SubFrame &frame)
Definition
bake_items_paths.cc:14
blender::SubFrame
Definition
BLI_sub_frame.hh:19
blender::bke::bake::BakePath
Definition
BKE_bake_items_paths.hh:21
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:28
blender::bke::bake::BakePath::bake_dir
std::optional< std::string > bake_dir
Definition
BKE_bake_items_paths.hh:33
blender::bke::bake::BakePath::meta_dir
std::string meta_dir
Definition
BKE_bake_items_paths.hh:23
blender::bke::bake::MetaFile
Definition
BKE_bake_items_paths.hh:16
blender::bke::bake::MetaFile::frame
SubFrame frame
Definition
BKE_bake_items_paths.hh:17
blender::bke::bake::MetaFile::path
std::string path
Definition
BKE_bake_items_paths.hh:18
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0