Enzo
Loading...
Searching...
No Matches
NodeAlias.h
1#pragma once
2#include "Engine/Serializer/ParameterSerializable.h"
3#include <string>
4#include <vector>
5
6namespace enzo::nt {
7
18{
19 std::string internalName;
20
22 std::string typeNamespace;
23
24 std::string displayName;
25
27 std::vector<std::string> tags;
28
30 std::string aliasedType;
31
33 std::vector<ParameterSerializable> parameterValues;
34
36 std::string getFullName() const { return typeNamespace + "::" + internalName; }
37
39 const std::string& getLabel() const { return displayName; }
40};
41
42} // namespace enzo::nt
A tab menu entry that creates a node of another type with its own starting values.
Definition NodeAlias.h:18
std::string typeNamespace
The namespace the alias was published under, such as "enzo".
Definition NodeAlias.h:22
std::string getFullName() const
Returns the name that uniquely identifies the alias, such as "enzo::mountain".
Definition NodeAlias.h:36
std::vector< ParameterSerializable > parameterValues
The starting values set on each node the alias creates.
Definition NodeAlias.h:33
std::vector< std::string > tags
The words the tab menu searches on.
Definition NodeAlias.h:27
std::string aliasedType
The full name of the node type the alias creates, such as "enzo::attributeNoise".
Definition NodeAlias.h:30
const std::string & getLabel() const
Returns the label shown in the tab menu, such as "Mountain".
Definition NodeAlias.h:39