40 std::uint64_t
min = 0;
41 std::uint64_t
max = 0;
54 std::optional<std::vector<std::string>>
allowed;
63[[nodiscard]] std::vector<UiEntry>
_uiListEntries(
const std::vector<std::string>& path );
68[[nodiscard]] std::vector<std::pair<std::vector<std::string>,
UiEntry>>
_uiListAllEntries(
const std::vector<std::string>& rootPath );
86void uiWriteValue(
const std::vector<std::string>& path, std::int64_t value );
89void uiWriteValue(
const std::vector<std::string>& path, std::uint64_t value );
92void uiWriteValue(
const std::vector<std::string>& path,
double value );
95void uiWriteValue(
const std::vector<std::string>& path,
const std::string& value );
Definition MRPythonScene.h:19
UiValueReal uiReadValueReal(const std::vector< std::string > &path)
Read a value from a drag/slider widget. This function is for real numbers.
UiValueUint uiReadValueUint(const std::vector< std::string > &path)
Read a value from a drag/slider widget. This function is for unsigned integers.
UiEntryType
UI entry type enum.
Definition MRPythonUiInteraction.h:14
@ valueString
Definition MRPythonUiInteraction.h:20
@ valueUint
Definition MRPythonUiInteraction.h:18
@ valueInt
Definition MRPythonUiInteraction.h:17
@ button
Definition MRPythonUiInteraction.h:15
@ group
Definition MRPythonUiInteraction.h:16
@ valueReal
Definition MRPythonUiInteraction.h:19
void uiPressButton(const std::vector< std::string > &path)
Simulate a button click. Use uiListEntries() to find button names.
UiValueString uiReadValueString(const std::vector< std::string > &path)
Read a value from a drag/slider widget. This function is for strings.
UiValueInt uiReadValueInt(const std::vector< std::string > &path)
Read a value from a drag/slider widget. This function is for signed integers.
std::vector< UiEntry > _uiListEntries(const std::vector< std::string > &path)
python_viewer.py wraps the functions with a leading underscore, to return lists and tuples.
std::vector< std::pair< std::vector< std::string >, UiEntry > > _uiListAllEntries(const std::vector< std::string > &rootPath)
void uiWriteValue(const std::vector< std::string > &path, std::int64_t value)
Write a value to a drag/slider widget. This overload is for signed integers.
Definition MRPythonUiInteraction.h:24
UiEntryType type
Definition MRPythonUiInteraction.h:26
std::string status
Definition MRPythonUiInteraction.h:27
std::string name
Definition MRPythonUiInteraction.h:25
Definition MRPythonUiInteraction.h:31
std::int64_t value
Definition MRPythonUiInteraction.h:32
std::int64_t max
Definition MRPythonUiInteraction.h:34
std::int64_t min
Definition MRPythonUiInteraction.h:33
Definition MRPythonUiInteraction.h:45
double min
Definition MRPythonUiInteraction.h:47
double max
Definition MRPythonUiInteraction.h:48
double value
Definition MRPythonUiInteraction.h:46
Definition MRPythonUiInteraction.h:52
std::optional< std::vector< std::string > > allowed
Definition MRPythonUiInteraction.h:54
std::string value
Definition MRPythonUiInteraction.h:53
Definition MRPythonUiInteraction.h:38
std::uint64_t min
Definition MRPythonUiInteraction.h:40
std::uint64_t max
Definition MRPythonUiInteraction.h:41
std::uint64_t value
Definition MRPythonUiInteraction.h:39