Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
PropertyOwnerBindings.h File Reference
#include "PropertyAutoWrap.h"
#include "PropertyConversionUtils.h"
#include "PropertyNotOwnedError.h"
#include <mitkIPropertyOwner.h>
#include <pybind11/pybind11.h>

Go to the source code of this file.

Functions

template<typename PyClass >
void bind_property_owner (PyClass &cls)
 Binds IPropertyOwner methods to a Python class. More...
 

Function Documentation

◆ bind_property_owner()

template<typename PyClass >
void bind_property_owner ( PyClass &  cls)

Binds IPropertyOwner methods to a Python class.

Adds get_property / set_property / remove_property / property_is_owned / property_keys to the given pybind11 class. The underlying C++ type is inferred from PyClass::type, so call sites stay terse:

bind_property_owner(image_class);
void bind_property_owner(PyClass &cls)
Binds IPropertyOwner methods to a Python class.

Definition at line 36 of file PropertyOwnerBindings.h.

References mitk::python::propertyToPythonValue(), and resolvePropertyValue().