Blender V5.3
ED_viewer_path.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
14#include "BLI_string_ref.hh"
15#include "BLI_vector.hh"
16
18
20
21namespace blender {
22
23struct Main;
24struct SpaceNode;
25struct bNode;
26struct bContext;
27struct Object;
28
29namespace ed::viewer_path {
30
36 SpaceNode &snode,
37 bNode &node,
38 std::optional<int> item_identifier = std::nullopt);
39
45
57
62std::optional<ViewerPathForGeometryNodesViewer> parse_geometry_nodes_viewer(
63 const ViewerPath &viewer_path);
64
71
77
83
91
99 const ViewerPathElem &elem,
100 bke::ComputeContextCache &compute_context_cache,
101 const ComputeContext *parent_compute_context);
102
108 const ComputeContext &compute_context);
109
110} // namespace ed::viewer_path
111
112} // namespace blender
#define C
Definition RandGen.cpp:29
ViewerPathElem * viewer_path_elem_for_compute_context(const ComputeContext &compute_context)
void activate_geometry_node(Main &bmain, SpaceNode &snode, bNode &node, std::optional< int > item_identifier=std::nullopt)
Object * parse_object_only(const ViewerPath &viewer_path)
UpdateActiveGeometryNodesViewerResult update_active_geometry_nodes_viewer(const bContext &C, ViewerPath &viewer_path)
std::optional< ViewerPathForGeometryNodesViewer > parse_geometry_nodes_viewer(const ViewerPath &viewer_path)
bool exists_geometry_nodes_viewer(const ViewerPathForGeometryNodesViewer &parsed_viewer_path)
const ComputeContext * compute_context_for_viewer_path_elem(const ViewerPathElem &elem, bke::ComputeContextCache &compute_context_cache, const ComputeContext *parent_compute_context)
bNode * find_geometry_nodes_viewer(const ViewerPath &viewer_path, SpaceNode &snode)
BMesh Iterators.
signed int int32_t
Definition BKE_text.h:78