MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPythonUiInteraction.h File Reference
#include <cstdint>
#include <optional>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  MR::PythonViewer::UiEntry
struct  MR::PythonViewer::UiValueInt
struct  MR::PythonViewer::UiValueUint
struct  MR::PythonViewer::UiValueReal
struct  MR::PythonViewer::UiValueString

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
namespace  MR::PythonViewer

Enumerations

enum class  MR::PythonViewer::UiEntryType {
  MR::PythonViewer::button , MR::PythonViewer::group , MR::PythonViewer::valueInt , MR::PythonViewer::valueUint ,
  MR::PythonViewer::valueReal , MR::PythonViewer::valueString
}
 UI entry type enum. More...

Functions

std::vector< UiEntry > MR::PythonViewer::_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 > > MR::PythonViewer::_uiListAllEntries (const std::vector< std::string > &rootPath)
void MR::PythonViewer::uiPressButton (const std::vector< std::string > &path)
 Simulate a button click. Use uiListEntries() to find button names.
UiValueInt MR::PythonViewer::uiReadValueInt (const std::vector< std::string > &path)
 Read a value from a drag/slider widget. This function is for signed integers.
UiValueUint MR::PythonViewer::uiReadValueUint (const std::vector< std::string > &path)
 Read a value from a drag/slider widget. This function is for unsigned integers.
UiValueReal MR::PythonViewer::uiReadValueReal (const std::vector< std::string > &path)
 Read a value from a drag/slider widget. This function is for real numbers.
UiValueString MR::PythonViewer::uiReadValueString (const std::vector< std::string > &path)
 Read a value from a drag/slider widget. This function is for strings.
void MR::PythonViewer::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.
void MR::PythonViewer::uiWriteValue (const std::vector< std::string > &path, std::uint64_t value)
 Write a value to a drag/slider widget. This overload is for unsigned integers.
void MR::PythonViewer::uiWriteValue (const std::vector< std::string > &path, double value)
 Write a value to a drag/slider widget. This overload is for real numbers.
void MR::PythonViewer::uiWriteValue (const std::vector< std::string > &path, const std::string &value)
 Write a value to a drag/slider widget. This overload is for strings.