Blender V5.0
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
5#pragma once
6
7#include <optional>
8
10#include "BLI_string_ref.hh"
11#include "BLI_vector.hh"
12
14
16
17struct Main;
18struct SpaceNode;
19struct bNode;
20struct bContext;
21struct Object;
22
24
30 SpaceNode &snode,
31 bNode &node,
32 std::optional<int> item_identifier = std::nullopt);
33
39
51
56std::optional<ViewerPathForGeometryNodesViewer> parse_geometry_nodes_viewer(
57 const ViewerPath &viewer_path);
58
65
71
77
85
93 const ViewerPathElem &elem,
94 bke::ComputeContextCache &compute_context_cache,
95 const ComputeContext *parent_compute_context);
96
102 const ComputeContext &compute_context);
103
104} // namespace blender::ed::viewer_path
#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)
blender::Vector< const ViewerPathElem * > node_path