Commit 3dcdc736 authored by Morten Ofstad's avatar Morten Ofstad
Browse files

Implement AWSOpenOptions init method with default arguments for region and...

Implement AWSOpenOptions init method with default arguments for region and endpointOverride (like the C++ API).
parent 6d326eae
......@@ -54,7 +54,6 @@ PyGlobal::initModule(py::module& m)
AWSOpenOptions_(m,"AWSOpenOptions", OPENVDS_DOCSTRING(AWSOpenOptions));
AWSOpenOptions_.def(py::init< >(), OPENVDS_DOCSTRING(AWSOpenOptions_AWSOpenOptions));
AWSOpenOptions_.def(py::init<const std::string &, const std::string &, const std::string &, const std::string &>(), py::arg("bucket").none(false), py::arg("key").none(false), py::arg("region").none(false), py::arg("endpointOverride").none(false), OPENVDS_DOCSTRING(AWSOpenOptions_AWSOpenOptions_2));
AWSOpenOptions_.def_readwrite("bucket" , &AWSOpenOptions::bucket , OPENVDS_DOCSTRING(AWSOpenOptions_bucket));
AWSOpenOptions_.def_readwrite("key" , &AWSOpenOptions::key , OPENVDS_DOCSTRING(AWSOpenOptions_key));
AWSOpenOptions_.def_readwrite("region" , &AWSOpenOptions::region , OPENVDS_DOCSTRING(AWSOpenOptions_region));
......@@ -269,5 +268,8 @@ PyGlobal::initModule(py::module& m)
}
return handle;
}, py::arg("ioManager").none(false), py::arg("layoutDescriptor").none(false), py::arg("axisDescriptors").none(false), py::arg("channelDescriptors").none(false), py::arg("metadata").none(false), OPENVDS_DOCSTRING(Create_4));
// IMPLEMENTED : AWSOpenOptions_.def(py::init<const std::string &, const std::string &, const std::string &, const std::string &>(), py::arg("bucket").none(false), py::arg("key").none(false), py::arg("region").none(false), py::arg("endpointOverride").none(false), OPENVDS_DOCSTRING(AWSOpenOptions_AWSOpenOptions_2));
AWSOpenOptions_.def(py::init<const std::string &, const std::string &, const std::string &, const std::string &>(), py::arg("bucket").none(false), py::arg("key").none(false), py::arg("region").none(false) = "", py::arg("endpointOverride").none(false) = "", OPENVDS_DOCSTRING(AWSOpenOptions_AWSOpenOptions_2));
}
......@@ -225,17 +225,17 @@ PyMetadataAccess::initModule(py::module& m)
MetadataReadAccess_.def("isMetadataStringAvailable" , static_cast<bool(MetadataReadAccess::*)(const char *, const char *) const>(&MetadataReadAccess::IsMetadataStringAvailable), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_IsMetadataStringAvailable));
MetadataReadAccess_.def("isMetadataBLOBAvailable" , static_cast<bool(MetadataReadAccess::*)(const char *, const char *) const>(&MetadataReadAccess::IsMetadataBLOBAvailable), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_IsMetadataBLOBAvailable));
MetadataReadAccess_.def("getMetadataInt" , static_cast<int(MetadataReadAccess::*)(const char *, const char *) const>(&MetadataReadAccess::GetMetadataInt), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataInt));
MetadataReadAccess_.def("getMetadataIntVector2" , [](MetadataReadAccess* self, const char * category, const char * name) { return (IntVector2Adapter::AdaptedType)(self->GetMetadataIntVector2(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataIntVector2));
MetadataReadAccess_.def("getMetadataIntVector3" , [](MetadataReadAccess* self, const char * category, const char * name) { return (IntVector3Adapter::AdaptedType)(self->GetMetadataIntVector3(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataIntVector3));
MetadataReadAccess_.def("getMetadataIntVector4" , [](MetadataReadAccess* self, const char * category, const char * name) { return (IntVector4Adapter::AdaptedType)(self->GetMetadataIntVector4(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataIntVector4));
MetadataReadAccess_.def("getMetadataIntVector2" , [](MetadataReadAccess* self, const char * category, const char * name) { return (IntVector2Adapter::AdaptedType)(self->GetMetadataIntVector2(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataIntVector2));
MetadataReadAccess_.def("getMetadataIntVector3" , [](MetadataReadAccess* self, const char * category, const char * name) { return (IntVector3Adapter::AdaptedType)(self->GetMetadataIntVector3(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataIntVector3));
MetadataReadAccess_.def("getMetadataIntVector4" , [](MetadataReadAccess* self, const char * category, const char * name) { return (IntVector4Adapter::AdaptedType)(self->GetMetadataIntVector4(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataIntVector4));
MetadataReadAccess_.def("getMetadataFloat" , static_cast<float(MetadataReadAccess::*)(const char *, const char *) const>(&MetadataReadAccess::GetMetadataFloat), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataFloat));
MetadataReadAccess_.def("getMetadataFloatVector2" , [](MetadataReadAccess* self, const char * category, const char * name) { return (FloatVector2Adapter::AdaptedType)(self->GetMetadataFloatVector2(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataFloatVector2));
MetadataReadAccess_.def("getMetadataFloatVector3" , [](MetadataReadAccess* self, const char * category, const char * name) { return (FloatVector3Adapter::AdaptedType)(self->GetMetadataFloatVector3(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataFloatVector3));
MetadataReadAccess_.def("getMetadataFloatVector4" , [](MetadataReadAccess* self, const char * category, const char * name) { return (FloatVector4Adapter::AdaptedType)(self->GetMetadataFloatVector4(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataFloatVector4));
MetadataReadAccess_.def("getMetadataFloatVector2" , [](MetadataReadAccess* self, const char * category, const char * name) { return (FloatVector2Adapter::AdaptedType)(self->GetMetadataFloatVector2(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataFloatVector2));
MetadataReadAccess_.def("getMetadataFloatVector3" , [](MetadataReadAccess* self, const char * category, const char * name) { return (FloatVector3Adapter::AdaptedType)(self->GetMetadataFloatVector3(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataFloatVector3));
MetadataReadAccess_.def("getMetadataFloatVector4" , [](MetadataReadAccess* self, const char * category, const char * name) { return (FloatVector4Adapter::AdaptedType)(self->GetMetadataFloatVector4(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataFloatVector4));
MetadataReadAccess_.def("getMetadataDouble" , static_cast<double(MetadataReadAccess::*)(const char *, const char *) const>(&MetadataReadAccess::GetMetadataDouble), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataDouble));
MetadataReadAccess_.def("getMetadataDoubleVector2" , [](MetadataReadAccess* self, const char * category, const char * name) { return (DoubleVector2Adapter::AdaptedType)(self->GetMetadataDoubleVector2(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataDoubleVector2));
MetadataReadAccess_.def("getMetadataDoubleVector3" , [](MetadataReadAccess* self, const char * category, const char * name) { return (DoubleVector3Adapter::AdaptedType)(self->GetMetadataDoubleVector3(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataDoubleVector3));
MetadataReadAccess_.def("getMetadataDoubleVector4" , [](MetadataReadAccess* self, const char * category, const char * name) { return (DoubleVector4Adapter::AdaptedType)(self->GetMetadataDoubleVector4(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataDoubleVector4));
MetadataReadAccess_.def("getMetadataDoubleVector2" , [](MetadataReadAccess* self, const char * category, const char * name) { return (DoubleVector2Adapter::AdaptedType)(self->GetMetadataDoubleVector2(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataDoubleVector2));
MetadataReadAccess_.def("getMetadataDoubleVector3" , [](MetadataReadAccess* self, const char * category, const char * name) { return (DoubleVector3Adapter::AdaptedType)(self->GetMetadataDoubleVector3(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataDoubleVector3));
MetadataReadAccess_.def("getMetadataDoubleVector4" , [](MetadataReadAccess* self, const char * category, const char * name) { return (DoubleVector4Adapter::AdaptedType)(self->GetMetadataDoubleVector4(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataDoubleVector4));
MetadataReadAccess_.def("getMetadataString" , static_cast<const char *(MetadataReadAccess::*)(const char *, const char *) const>(&MetadataReadAccess::GetMetadataString), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataString));
MetadataReadAccess_.def("getMetadataKeys" , static_cast<native::MetadataKeyRange(MetadataReadAccess::*)() const>(&MetadataReadAccess::GetMetadataKeys), OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataKeys));
MetadataReadAccess_.def_property_readonly("metadataKeys", &MetadataReadAccess::GetMetadataKeys, OPENVDS_DOCSTRING(MetadataReadAccess_GetMetadataKeys));
......@@ -245,17 +245,17 @@ PyMetadataAccess::initModule(py::module& m)
MetadataWriteAccess_(m,"MetadataWriteAccess", OPENVDS_DOCSTRING(MetadataWriteAccess));
MetadataWriteAccess_.def("setMetadataInt" , static_cast<void(MetadataWriteAccess::*)(const char *, const char *, int)>(&MetadataWriteAccess::SetMetadataInt), py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataInt));
MetadataWriteAccess_.def("setMetadataIntVector2" , [](MetadataWriteAccess* self, const char * category, const char * name, IntVector2Adapter::AdaptedType value) { return self->SetMetadataIntVector2(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataIntVector2));
MetadataWriteAccess_.def("setMetadataIntVector3" , [](MetadataWriteAccess* self, const char * category, const char * name, IntVector3Adapter::AdaptedType value) { return self->SetMetadataIntVector3(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataIntVector3));
MetadataWriteAccess_.def("setMetadataIntVector4" , [](MetadataWriteAccess* self, const char * category, const char * name, IntVector4Adapter::AdaptedType value) { return self->SetMetadataIntVector4(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataIntVector4));
MetadataWriteAccess_.def("setMetadataIntVector2" , [](MetadataWriteAccess* self, const char * category, const char * name, IntVector2Adapter::AdaptedType value) { return self->SetMetadataIntVector2(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataIntVector2));
MetadataWriteAccess_.def("setMetadataIntVector3" , [](MetadataWriteAccess* self, const char * category, const char * name, IntVector3Adapter::AdaptedType value) { return self->SetMetadataIntVector3(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataIntVector3));
MetadataWriteAccess_.def("setMetadataIntVector4" , [](MetadataWriteAccess* self, const char * category, const char * name, IntVector4Adapter::AdaptedType value) { return self->SetMetadataIntVector4(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataIntVector4));
MetadataWriteAccess_.def("setMetadataFloat" , static_cast<void(MetadataWriteAccess::*)(const char *, const char *, float)>(&MetadataWriteAccess::SetMetadataFloat), py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataFloat));
MetadataWriteAccess_.def("setMetadataFloatVector2" , [](MetadataWriteAccess* self, const char * category, const char * name, FloatVector2Adapter::AdaptedType value) { return self->SetMetadataFloatVector2(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataFloatVector2));
MetadataWriteAccess_.def("setMetadataFloatVector3" , [](MetadataWriteAccess* self, const char * category, const char * name, FloatVector3Adapter::AdaptedType value) { return self->SetMetadataFloatVector3(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataFloatVector3));
MetadataWriteAccess_.def("setMetadataFloatVector4" , [](MetadataWriteAccess* self, const char * category, const char * name, FloatVector4Adapter::AdaptedType value) { return self->SetMetadataFloatVector4(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataFloatVector4));
MetadataWriteAccess_.def("setMetadataFloatVector2" , [](MetadataWriteAccess* self, const char * category, const char * name, FloatVector2Adapter::AdaptedType value) { return self->SetMetadataFloatVector2(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataFloatVector2));
MetadataWriteAccess_.def("setMetadataFloatVector3" , [](MetadataWriteAccess* self, const char * category, const char * name, FloatVector3Adapter::AdaptedType value) { return self->SetMetadataFloatVector3(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataFloatVector3));
MetadataWriteAccess_.def("setMetadataFloatVector4" , [](MetadataWriteAccess* self, const char * category, const char * name, FloatVector4Adapter::AdaptedType value) { return self->SetMetadataFloatVector4(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataFloatVector4));
MetadataWriteAccess_.def("setMetadataDouble" , static_cast<void(MetadataWriteAccess::*)(const char *, const char *, double)>(&MetadataWriteAccess::SetMetadataDouble), py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataDouble));
MetadataWriteAccess_.def("setMetadataDoubleVector2" , [](MetadataWriteAccess* self, const char * category, const char * name, DoubleVector2Adapter::AdaptedType value) { return self->SetMetadataDoubleVector2(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataDoubleVector2));
MetadataWriteAccess_.def("setMetadataDoubleVector3" , [](MetadataWriteAccess* self, const char * category, const char * name, DoubleVector3Adapter::AdaptedType value) { return self->SetMetadataDoubleVector3(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataDoubleVector3));
MetadataWriteAccess_.def("setMetadataDoubleVector4" , [](MetadataWriteAccess* self, const char * category, const char * name, DoubleVector4Adapter::AdaptedType value) { return self->SetMetadataDoubleVector4(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataDoubleVector4));
MetadataWriteAccess_.def("setMetadataDoubleVector2" , [](MetadataWriteAccess* self, const char * category, const char * name, DoubleVector2Adapter::AdaptedType value) { return self->SetMetadataDoubleVector2(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataDoubleVector2));
MetadataWriteAccess_.def("setMetadataDoubleVector3" , [](MetadataWriteAccess* self, const char * category, const char * name, DoubleVector3Adapter::AdaptedType value) { return self->SetMetadataDoubleVector3(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataDoubleVector3));
MetadataWriteAccess_.def("setMetadataDoubleVector4" , [](MetadataWriteAccess* self, const char * category, const char * name, DoubleVector4Adapter::AdaptedType value) { return self->SetMetadataDoubleVector4(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataDoubleVector4));
MetadataWriteAccess_.def("setMetadataString" , static_cast<void(MetadataWriteAccess::*)(const char *, const char *, const char *)>(&MetadataWriteAccess::SetMetadataString), py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataString));
MetadataWriteAccess_.def("setMetadataString" , static_cast<void(MetadataWriteAccess::*)(const char *, const char *, const std::string &)>(&MetadataWriteAccess::SetMetadataString), py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataString_2));
// AUTOGENERATE FAIL : MetadataWriteAccess_.def("setMetadataBLOB" , static_cast<void(MetadataWriteAccess::*)(const char *, const char *, const void *, size_t)>(&MetadataWriteAccess::SetMetadataBLOB), py::arg("category").none(false), py::arg("name").none(false), py::arg("data").none(false), py::arg("size").none(false), OPENVDS_DOCSTRING(MetadataWriteAccess_SetMetadataBLOB));
......
......@@ -42,30 +42,30 @@ PyMetadataContainer::initModule(py::module& m)
MetadataContainer_.def("isMetadataStringAvailable" , static_cast<bool(MetadataContainer::*)(const char *, const char *) const>(&MetadataContainer::IsMetadataStringAvailable), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_IsMetadataStringAvailable));
MetadataContainer_.def("isMetadataBLOBAvailable" , static_cast<bool(MetadataContainer::*)(const char *, const char *) const>(&MetadataContainer::IsMetadataBLOBAvailable), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_IsMetadataBLOBAvailable));
MetadataContainer_.def("getMetadataInt" , static_cast<int(MetadataContainer::*)(const char *, const char *) const>(&MetadataContainer::GetMetadataInt), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataInt));
MetadataContainer_.def("getMetadataIntVector2" , [](MetadataContainer* self, const char * category, const char * name) { return (IntVector2Adapter::AdaptedType)(self->GetMetadataIntVector2(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataIntVector2));
MetadataContainer_.def("getMetadataIntVector3" , [](MetadataContainer* self, const char * category, const char * name) { return (IntVector3Adapter::AdaptedType)(self->GetMetadataIntVector3(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataIntVector3));
MetadataContainer_.def("getMetadataIntVector4" , [](MetadataContainer* self, const char * category, const char * name) { return (IntVector4Adapter::AdaptedType)(self->GetMetadataIntVector4(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataIntVector4));
MetadataContainer_.def("getMetadataIntVector2" , [](MetadataContainer* self, const char * category, const char * name) { return (IntVector2Adapter::AdaptedType)(self->GetMetadataIntVector2(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataIntVector2));
MetadataContainer_.def("getMetadataIntVector3" , [](MetadataContainer* self, const char * category, const char * name) { return (IntVector3Adapter::AdaptedType)(self->GetMetadataIntVector3(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataIntVector3));
MetadataContainer_.def("getMetadataIntVector4" , [](MetadataContainer* self, const char * category, const char * name) { return (IntVector4Adapter::AdaptedType)(self->GetMetadataIntVector4(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataIntVector4));
MetadataContainer_.def("getMetadataFloat" , static_cast<float(MetadataContainer::*)(const char *, const char *) const>(&MetadataContainer::GetMetadataFloat), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataFloat));
MetadataContainer_.def("getMetadataFloatVector2" , [](MetadataContainer* self, const char * category, const char * name) { return (FloatVector2Adapter::AdaptedType)(self->GetMetadataFloatVector2(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataFloatVector2));
MetadataContainer_.def("getMetadataFloatVector3" , [](MetadataContainer* self, const char * category, const char * name) { return (FloatVector3Adapter::AdaptedType)(self->GetMetadataFloatVector3(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataFloatVector3));
MetadataContainer_.def("getMetadataFloatVector4" , [](MetadataContainer* self, const char * category, const char * name) { return (FloatVector4Adapter::AdaptedType)(self->GetMetadataFloatVector4(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataFloatVector4));
MetadataContainer_.def("getMetadataFloatVector2" , [](MetadataContainer* self, const char * category, const char * name) { return (FloatVector2Adapter::AdaptedType)(self->GetMetadataFloatVector2(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataFloatVector2));
MetadataContainer_.def("getMetadataFloatVector3" , [](MetadataContainer* self, const char * category, const char * name) { return (FloatVector3Adapter::AdaptedType)(self->GetMetadataFloatVector3(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataFloatVector3));
MetadataContainer_.def("getMetadataFloatVector4" , [](MetadataContainer* self, const char * category, const char * name) { return (FloatVector4Adapter::AdaptedType)(self->GetMetadataFloatVector4(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataFloatVector4));
MetadataContainer_.def("getMetadataDouble" , static_cast<double(MetadataContainer::*)(const char *, const char *) const>(&MetadataContainer::GetMetadataDouble), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataDouble));
MetadataContainer_.def("getMetadataDoubleVector2" , [](MetadataContainer* self, const char * category, const char * name) { return (DoubleVector2Adapter::AdaptedType)(self->GetMetadataDoubleVector2(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataDoubleVector2));
MetadataContainer_.def("getMetadataDoubleVector3" , [](MetadataContainer* self, const char * category, const char * name) { return (DoubleVector3Adapter::AdaptedType)(self->GetMetadataDoubleVector3(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataDoubleVector3));
MetadataContainer_.def("getMetadataDoubleVector4" , [](MetadataContainer* self, const char * category, const char * name) { return (DoubleVector4Adapter::AdaptedType)(self->GetMetadataDoubleVector4(category, name)); }, py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataDoubleVector4));
MetadataContainer_.def("getMetadataDoubleVector2" , [](MetadataContainer* self, const char * category, const char * name) { return (DoubleVector2Adapter::AdaptedType)(self->GetMetadataDoubleVector2(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataDoubleVector2));
MetadataContainer_.def("getMetadataDoubleVector3" , [](MetadataContainer* self, const char * category, const char * name) { return (DoubleVector3Adapter::AdaptedType)(self->GetMetadataDoubleVector3(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataDoubleVector3));
MetadataContainer_.def("getMetadataDoubleVector4" , [](MetadataContainer* self, const char * category, const char * name) { return (DoubleVector4Adapter::AdaptedType)(self->GetMetadataDoubleVector4(category, name)); }, py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataDoubleVector4));
MetadataContainer_.def("getMetadataString" , static_cast<const char *(MetadataContainer::*)(const char *, const char *) const>(&MetadataContainer::GetMetadataString), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataContainer_GetMetadataString));
MetadataContainer_.def("setMetadataInt" , static_cast<void(MetadataContainer::*)(const char *, const char *, int)>(&MetadataContainer::SetMetadataInt), py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataInt));
MetadataContainer_.def("setMetadataIntVector2" , [](MetadataContainer* self, const char * category, const char * name, IntVector2Adapter::AdaptedType value) { return self->SetMetadataIntVector2(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataIntVector2));
MetadataContainer_.def("setMetadataIntVector3" , [](MetadataContainer* self, const char * category, const char * name, IntVector3Adapter::AdaptedType value) { return self->SetMetadataIntVector3(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataIntVector3));
MetadataContainer_.def("setMetadataIntVector4" , [](MetadataContainer* self, const char * category, const char * name, IntVector4Adapter::AdaptedType value) { return self->SetMetadataIntVector4(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataIntVector4));
MetadataContainer_.def("setMetadataIntVector2" , [](MetadataContainer* self, const char * category, const char * name, IntVector2Adapter::AdaptedType value) { return self->SetMetadataIntVector2(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataIntVector2));
MetadataContainer_.def("setMetadataIntVector3" , [](MetadataContainer* self, const char * category, const char * name, IntVector3Adapter::AdaptedType value) { return self->SetMetadataIntVector3(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataIntVector3));
MetadataContainer_.def("setMetadataIntVector4" , [](MetadataContainer* self, const char * category, const char * name, IntVector4Adapter::AdaptedType value) { return self->SetMetadataIntVector4(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataIntVector4));
MetadataContainer_.def("setMetadataFloat" , static_cast<void(MetadataContainer::*)(const char *, const char *, float)>(&MetadataContainer::SetMetadataFloat), py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataFloat));
MetadataContainer_.def("setMetadataFloatVector2" , [](MetadataContainer* self, const char * category, const char * name, FloatVector2Adapter::AdaptedType value) { return self->SetMetadataFloatVector2(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataFloatVector2));
MetadataContainer_.def("setMetadataFloatVector3" , [](MetadataContainer* self, const char * category, const char * name, FloatVector3Adapter::AdaptedType value) { return self->SetMetadataFloatVector3(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataFloatVector3));
MetadataContainer_.def("setMetadataFloatVector4" , [](MetadataContainer* self, const char * category, const char * name, FloatVector4Adapter::AdaptedType value) { return self->SetMetadataFloatVector4(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataFloatVector4));
MetadataContainer_.def("setMetadataFloatVector2" , [](MetadataContainer* self, const char * category, const char * name, FloatVector2Adapter::AdaptedType value) { return self->SetMetadataFloatVector2(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataFloatVector2));
MetadataContainer_.def("setMetadataFloatVector3" , [](MetadataContainer* self, const char * category, const char * name, FloatVector3Adapter::AdaptedType value) { return self->SetMetadataFloatVector3(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataFloatVector3));
MetadataContainer_.def("setMetadataFloatVector4" , [](MetadataContainer* self, const char * category, const char * name, FloatVector4Adapter::AdaptedType value) { return self->SetMetadataFloatVector4(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataFloatVector4));
MetadataContainer_.def("setMetadataDouble" , static_cast<void(MetadataContainer::*)(const char *, const char *, double)>(&MetadataContainer::SetMetadataDouble), py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataDouble));
MetadataContainer_.def("setMetadataDoubleVector2" , [](MetadataContainer* self, const char * category, const char * name, DoubleVector2Adapter::AdaptedType value) { return self->SetMetadataDoubleVector2(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataDoubleVector2));
MetadataContainer_.def("setMetadataDoubleVector3" , [](MetadataContainer* self, const char * category, const char * name, DoubleVector3Adapter::AdaptedType value) { return self->SetMetadataDoubleVector3(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataDoubleVector3));
MetadataContainer_.def("setMetadataDoubleVector4" , [](MetadataContainer* self, const char * category, const char * name, DoubleVector4Adapter::AdaptedType value) { return self->SetMetadataDoubleVector4(category, name, value); }, py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataDoubleVector4));
MetadataContainer_.def("setMetadataDoubleVector2" , [](MetadataContainer* self, const char * category, const char * name, DoubleVector2Adapter::AdaptedType value) { return self->SetMetadataDoubleVector2(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataDoubleVector2));
MetadataContainer_.def("setMetadataDoubleVector3" , [](MetadataContainer* self, const char * category, const char * name, DoubleVector3Adapter::AdaptedType value) { return self->SetMetadataDoubleVector3(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataDoubleVector3));
MetadataContainer_.def("setMetadataDoubleVector4" , [](MetadataContainer* self, const char * category, const char * name, DoubleVector4Adapter::AdaptedType value) { return self->SetMetadataDoubleVector4(category, name, value); }, py::arg("category"), py::arg("name"), py::arg("value"), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataDoubleVector4));
MetadataContainer_.def("setMetadataString" , static_cast<void(MetadataContainer::*)(const char *, const char *, const char *)>(&MetadataContainer::SetMetadataString), py::arg("category").none(false), py::arg("name").none(false), py::arg("value").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataString));
// AUTOGENERATE FAIL : MetadataContainer_.def("setMetadataBLOB" , static_cast<void(MetadataContainer::*)(const char *, const char *, const void *, size_t)>(&MetadataContainer::SetMetadataBLOB), py::arg("category").none(false), py::arg("name").none(false), py::arg("data").none(false), py::arg("size").none(false), OPENVDS_DOCSTRING(MetadataContainer_SetMetadataBLOB));
MetadataContainer_.def("copyMetadata" , static_cast<void(MetadataContainer::*)(const char *, const native::MetadataReadAccess *)>(&MetadataContainer::CopyMetadata), py::arg("category").none(false), py::arg("metadataReadAccess").none(false), OPENVDS_DOCSTRING(MetadataContainer_CopyMetadata));
......
......@@ -167,10 +167,10 @@ PyVolumeDataAccess::initModule(py::module& m)
VolumeDataAccessManager_.def("create3DInterpolatingVolumeDataAccessorR64", static_cast<VolumeDataReadAccessor<native::FloatVector3, double> *(VolumeDataAccessManager::*)(native::VolumeDataPageAccessor *, float, native::InterpolationMethod)>(&VolumeDataAccessManager::Create3DInterpolatingVolumeDataAccessorR64), py::arg("volumeDataPageAccessor").none(false), py::arg("replacementNoValue").none(false), py::arg("interpolationMethod").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_Create3DInterpolatingVolumeDataAccessorR64));
VolumeDataAccessManager_.def("create4DInterpolatingVolumeDataAccessorR32", static_cast<VolumeDataReadAccessor<native::FloatVector4, float> *(VolumeDataAccessManager::*)(native::VolumeDataPageAccessor *, float, native::InterpolationMethod)>(&VolumeDataAccessManager::Create4DInterpolatingVolumeDataAccessorR32), py::arg("volumeDataPageAccessor").none(false), py::arg("replacementNoValue").none(false), py::arg("interpolationMethod").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_Create4DInterpolatingVolumeDataAccessorR32));
VolumeDataAccessManager_.def("create4DInterpolatingVolumeDataAccessorR64", static_cast<VolumeDataReadAccessor<native::FloatVector4, double> *(VolumeDataAccessManager::*)(native::VolumeDataPageAccessor *, float, native::InterpolationMethod)>(&VolumeDataAccessManager::Create4DInterpolatingVolumeDataAccessorR64), py::arg("volumeDataPageAccessor").none(false), py::arg("replacementNoValue").none(false), py::arg("interpolationMethod").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_Create4DInterpolatingVolumeDataAccessorR64));
VolumeDataAccessManager_.def("getVolumeSubsetBufferSize" , [](VolumeDataAccessManager* self, const OpenVDS::VolumeDataLayout * volumeDataLayout, const py::array_t<int>& minVoxelCoordinates, const py::array_t<int>& maxVoxelCoordinates, VolumeDataChannelDescriptor::Format format, int lod, int channel) { return self->GetVolumeSubsetBufferSize(volumeDataLayout, PyArrayAdapter<int, 6, false>::getArrayChecked(minVoxelCoordinates), PyArrayAdapter<int, 6, false>::getArrayChecked(maxVoxelCoordinates), format, lod, channel); }, py::arg("volumeDataLayout").none(false), py::arg("minVoxelCoordinates").none(false), py::arg("maxVoxelCoordinates").none(false), py::arg("format").none(false), py::arg("lod").none(false), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_GetVolumeSubsetBufferSize));
VolumeDataAccessManager_.def("getVolumeSubsetBufferSize" , [](VolumeDataAccessManager* self, const OpenVDS::VolumeDataLayout * volumeDataLayout, const py::array_t<int>& minVoxelCoordinates, const py::array_t<int>& maxVoxelCoordinates, VolumeDataChannelDescriptor::Format format, int lod, int channel) { return self->GetVolumeSubsetBufferSize(volumeDataLayout, PyArrayAdapter<int, 6, false>::getArrayChecked(minVoxelCoordinates), PyArrayAdapter<int, 6, false>::getArrayChecked(maxVoxelCoordinates), format, lod, channel); }, py::arg("volumeDataLayout"), py::arg("minVoxelCoordinates"), py::arg("maxVoxelCoordinates"), py::arg("format"), py::arg("lod"), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataAccessManager_GetVolumeSubsetBufferSize));
// AUTOGENERATE FAIL : VolumeDataAccessManager_.def("requestVolumeSubset" , static_cast<int64_t(VolumeDataAccessManager::*)(void *, const native::VolumeDataLayout *, native::DimensionsND, int, int, const int (&)[6], const int (&)[6], VolumeDataChannelDescriptor::Format)>(&VolumeDataAccessManager::RequestVolumeSubset), py::arg("buffer").none(false), py::arg("volumeDataLayout").none(false), py::arg("dimensionsND").none(false), py::arg("lod").none(false), py::arg("channel").none(false), py::arg("minVoxelCoordinates").none(false), py::arg("maxVoxelCoordinates").none(false), py::arg("format").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_RequestVolumeSubset));
// AUTOGENERATE FAIL : VolumeDataAccessManager_.def("requestVolumeSubset" , static_cast<int64_t(VolumeDataAccessManager::*)(void *, const native::VolumeDataLayout *, native::DimensionsND, int, int, const int (&)[6], const int (&)[6], VolumeDataChannelDescriptor::Format, float)>(&VolumeDataAccessManager::RequestVolumeSubset), py::arg("buffer").none(false), py::arg("volumeDataLayout").none(false), py::arg("dimensionsND").none(false), py::arg("lOD").none(false), py::arg("channel").none(false), py::arg("minVoxelCoordinates").none(false), py::arg("maxVoxelCoordinates").none(false), py::arg("format").none(false), py::arg("replacementNoValue").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_RequestVolumeSubset_2));
VolumeDataAccessManager_.def("getProjectedVolumeSubsetBufferSize", [](VolumeDataAccessManager* self, const OpenVDS::VolumeDataLayout * volumeDataLayout, const py::array_t<int>& minVoxelCoordinates, const py::array_t<int>& maxVoxelCoordinates, OpenVDS::DimensionsND projectedDimensions, VolumeDataChannelDescriptor::Format format, int lod, int channel) { return self->GetProjectedVolumeSubsetBufferSize(volumeDataLayout, PyArrayAdapter<int, 6, false>::getArrayChecked(minVoxelCoordinates), PyArrayAdapter<int, 6, false>::getArrayChecked(maxVoxelCoordinates), projectedDimensions, format, lod, channel); }, py::arg("volumeDataLayout").none(false), py::arg("minVoxelCoordinates").none(false), py::arg("maxVoxelCoordinates").none(false), py::arg("projectedDimensions").none(false), py::arg("format").none(false), py::arg("lod").none(false), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_GetProjectedVolumeSubsetBufferSize));
VolumeDataAccessManager_.def("getProjectedVolumeSubsetBufferSize", [](VolumeDataAccessManager* self, const OpenVDS::VolumeDataLayout * volumeDataLayout, const py::array_t<int>& minVoxelCoordinates, const py::array_t<int>& maxVoxelCoordinates, OpenVDS::DimensionsND projectedDimensions, VolumeDataChannelDescriptor::Format format, int lod, int channel) { return self->GetProjectedVolumeSubsetBufferSize(volumeDataLayout, PyArrayAdapter<int, 6, false>::getArrayChecked(minVoxelCoordinates), PyArrayAdapter<int, 6, false>::getArrayChecked(maxVoxelCoordinates), projectedDimensions, format, lod, channel); }, py::arg("volumeDataLayout"), py::arg("minVoxelCoordinates"), py::arg("maxVoxelCoordinates"), py::arg("projectedDimensions"), py::arg("format"), py::arg("lod"), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataAccessManager_GetProjectedVolumeSubsetBufferSize));
// AUTOGENERATE FAIL : VolumeDataAccessManager_.def("requestProjectedVolumeSubset", static_cast<int64_t(VolumeDataAccessManager::*)(void *, const native::VolumeDataLayout *, native::DimensionsND, int, int, const int (&)[6], const int (&)[6], const native::FloatVector4 &, native::DimensionsND, VolumeDataChannelDescriptor::Format, native::InterpolationMethod)>(&VolumeDataAccessManager::RequestProjectedVolumeSubset), py::arg("buffer").none(false), py::arg("volumeDataLayout").none(false), py::arg("dimensionsND").none(false), py::arg("lod").none(false), py::arg("channel").none(false), py::arg("minVoxelCoordinates").none(false), py::arg("maxVoxelCoordinates").none(false), py::arg("voxelPlane").none(false), py::arg("projectedDimensions").none(false), py::arg("format").none(false), py::arg("interpolationMethod").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_RequestProjectedVolumeSubset));
// AUTOGENERATE FAIL : VolumeDataAccessManager_.def("requestProjectedVolumeSubset", static_cast<int64_t(VolumeDataAccessManager::*)(void *, const native::VolumeDataLayout *, native::DimensionsND, int, int, const int (&)[6], const int (&)[6], const native::FloatVector4 &, native::DimensionsND, VolumeDataChannelDescriptor::Format, native::InterpolationMethod, float)>(&VolumeDataAccessManager::RequestProjectedVolumeSubset), py::arg("buffer").none(false), py::arg("volumeDataLayout").none(false), py::arg("dimensionsND").none(false), py::arg("lod").none(false), py::arg("channel").none(false), py::arg("minVoxelCoordinates").none(false), py::arg("maxVoxelCoordinates").none(false), py::arg("voxelPlane").none(false), py::arg("projectedDimensions").none(false), py::arg("format").none(false), py::arg("interpolationMethod").none(false), py::arg("replacementNoValue").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_RequestProjectedVolumeSubset_2));
VolumeDataAccessManager_.def("getVolumeSamplesBufferSize" , static_cast<int64_t(VolumeDataAccessManager::*)(const native::VolumeDataLayout *, int, int)>(&VolumeDataAccessManager::GetVolumeSamplesBufferSize), py::arg("volumeDataLayout").none(false), py::arg("sampleCount").none(false), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataAccessManager_GetVolumeSamplesBufferSize));
......@@ -203,11 +203,11 @@ PyVolumeDataAccess::initModule(py::module& m)
py::class_<VolumeDataPage, std::unique_ptr<VolumeDataPage, py::nodelete>>
VolumeDataPage_(m,"VolumeDataPage", OPENVDS_DOCSTRING(VolumeDataPage));
VolumeDataPage_.def("getMinMax" , [](VolumeDataPage* self, py::array_t<int>& min, py::array_t<int>& max) { return self->GetMinMax(PyArrayAdapter<int, 6, true>::getArrayChecked(min), PyArrayAdapter<int, 6, true>::getArrayChecked(max)); }, py::arg("min").none(false), py::arg("max").none(false), OPENVDS_DOCSTRING(VolumeDataPage_GetMinMax));
VolumeDataPage_.def("getMinMaxExcludingMargin" , [](VolumeDataPage* self, py::array_t<int>& minExcludingMargin, py::array_t<int>& maxExcludingMargin) { return self->GetMinMaxExcludingMargin(PyArrayAdapter<int, 6, true>::getArrayChecked(minExcludingMargin), PyArrayAdapter<int, 6, true>::getArrayChecked(maxExcludingMargin)); }, py::arg("minExcludingMargin").none(false), py::arg("maxExcludingMargin").none(false), OPENVDS_DOCSTRING(VolumeDataPage_GetMinMaxExcludingMargin));
VolumeDataPage_.def("getBuffer" , [](VolumeDataPage* self, py::array_t<int>& pitch) { return self->GetBuffer(PyArrayAdapter<int, 6, true>::getArrayChecked(pitch)); }, py::arg("pitch").none(false), OPENVDS_DOCSTRING(VolumeDataPage_GetBuffer));
VolumeDataPage_.def("getWritableBuffer" , [](VolumeDataPage* self, py::array_t<int>& pitch) { return self->GetWritableBuffer(PyArrayAdapter<int, 6, true>::getArrayChecked(pitch)); }, py::arg("pitch").none(false), OPENVDS_DOCSTRING(VolumeDataPage_GetWritableBuffer));
VolumeDataPage_.def("updateWrittenRegion" , [](VolumeDataPage* self, const py::array_t<int>& writtenMin, const py::array_t<int>& writtenMax) { return self->UpdateWrittenRegion(PyArrayAdapter<int, 6, false>::getArrayChecked(writtenMin), PyArrayAdapter<int, 6, false>::getArrayChecked(writtenMax)); }, py::arg("writtenMin").none(false), py::arg("writtenMax").none(false), OPENVDS_DOCSTRING(VolumeDataPage_UpdateWrittenRegion));
VolumeDataPage_.def("getMinMax" , [](VolumeDataPage* self, py::array_t<int>& min, py::array_t<int>& max) { return self->GetMinMax(PyArrayAdapter<int, 6, true>::getArrayChecked(min), PyArrayAdapter<int, 6, true>::getArrayChecked(max)); }, py::arg("min"), py::arg("max"), OPENVDS_DOCSTRING(VolumeDataPage_GetMinMax));
VolumeDataPage_.def("getMinMaxExcludingMargin" , [](VolumeDataPage* self, py::array_t<int>& minExcludingMargin, py::array_t<int>& maxExcludingMargin) { return self->GetMinMaxExcludingMargin(PyArrayAdapter<int, 6, true>::getArrayChecked(minExcludingMargin), PyArrayAdapter<int, 6, true>::getArrayChecked(maxExcludingMargin)); }, py::arg("minExcludingMargin"), py::arg("maxExcludingMargin"), OPENVDS_DOCSTRING(VolumeDataPage_GetMinMaxExcludingMargin));
VolumeDataPage_.def("getBuffer" , [](VolumeDataPage* self, py::array_t<int>& pitch) { return self->GetBuffer(PyArrayAdapter<int, 6, true>::getArrayChecked(pitch)); }, py::arg("pitch"), OPENVDS_DOCSTRING(VolumeDataPage_GetBuffer));
VolumeDataPage_.def("getWritableBuffer" , [](VolumeDataPage* self, py::array_t<int>& pitch) { return self->GetWritableBuffer(PyArrayAdapter<int, 6, true>::getArrayChecked(pitch)); }, py::arg("pitch"), OPENVDS_DOCSTRING(VolumeDataPage_GetWritableBuffer));
VolumeDataPage_.def("updateWrittenRegion" , [](VolumeDataPage* self, const py::array_t<int>& writtenMin, const py::array_t<int>& writtenMax) { return self->UpdateWrittenRegion(PyArrayAdapter<int, 6, false>::getArrayChecked(writtenMin), PyArrayAdapter<int, 6, false>::getArrayChecked(writtenMax)); }, py::arg("writtenMin"), py::arg("writtenMax"), OPENVDS_DOCSTRING(VolumeDataPage_UpdateWrittenRegion));
VolumeDataPage_.def("release" , static_cast<void(VolumeDataPage::*)()>(&VolumeDataPage::Release), OPENVDS_DOCSTRING(VolumeDataPage_Release));
// VolumeDataPageAccessor
......@@ -222,12 +222,12 @@ PyVolumeDataAccess::initModule(py::module& m)
VolumeDataPageAccessor_.def_property_readonly("channelIndex", &VolumeDataPageAccessor::GetChannelIndex, OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChannelIndex));
VolumeDataPageAccessor_.def("getChannelDescriptor" , static_cast<const native::VolumeDataChannelDescriptor &(VolumeDataPageAccessor::*)() const>(&VolumeDataPageAccessor::GetChannelDescriptor), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChannelDescriptor));
VolumeDataPageAccessor_.def_property_readonly("channelDescriptor", &VolumeDataPageAccessor::GetChannelDescriptor, OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChannelDescriptor));
VolumeDataPageAccessor_.def("getNumSamples" , [](VolumeDataPageAccessor* self, py::array_t<int>& numSamples) { return self->GetNumSamples(PyArrayAdapter<int, 6, true>::getArrayChecked(numSamples)); }, py::arg("numSamples").none(false), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetNumSamples));
VolumeDataPageAccessor_.def("getNumSamples" , [](VolumeDataPageAccessor* self, py::array_t<int>& numSamples) { return self->GetNumSamples(PyArrayAdapter<int, 6, true>::getArrayChecked(numSamples)); }, py::arg("numSamples"), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetNumSamples));
VolumeDataPageAccessor_.def("getChunkCount" , static_cast<int64_t(VolumeDataPageAccessor::*)() const>(&VolumeDataPageAccessor::GetChunkCount), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChunkCount));
VolumeDataPageAccessor_.def_property_readonly("chunkCount", &VolumeDataPageAccessor::GetChunkCount, OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChunkCount));
VolumeDataPageAccessor_.def("getChunkMinMax" , [](VolumeDataPageAccessor* self, int64_t chunk, py::array_t<int>& min, py::array_t<int>& max) { return self->GetChunkMinMax(chunk, PyArrayAdapter<int, 6, true>::getArrayChecked(min), PyArrayAdapter<int, 6, true>::getArrayChecked(max)); }, py::arg("chunk").none(false), py::arg("min").none(false), py::arg("max").none(false), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChunkMinMax));
VolumeDataPageAccessor_.def("getChunkMinMaxExcludingMargin", [](VolumeDataPageAccessor* self, int64_t chunk, py::array_t<int>& minExcludingMargin, py::array_t<int>& maxExcludingMargin) { return self->GetChunkMinMaxExcludingMargin(chunk, PyArrayAdapter<int, 6, true>::getArrayChecked(minExcludingMargin), PyArrayAdapter<int, 6, true>::getArrayChecked(maxExcludingMargin)); }, py::arg("chunk").none(false), py::arg("minExcludingMargin").none(false), py::arg("maxExcludingMargin").none(false), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChunkMinMaxExcludingMargin));
VolumeDataPageAccessor_.def("getChunkIndex" , [](VolumeDataPageAccessor* self, const py::array_t<int>& position) { return self->GetChunkIndex(PyArrayAdapter<int, 6, false>::getArrayChecked(position)); }, py::arg("position").none(false), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChunkIndex));
VolumeDataPageAccessor_.def("getChunkMinMax" , [](VolumeDataPageAccessor* self, int64_t chunk, py::array_t<int>& min, py::array_t<int>& max) { return self->GetChunkMinMax(chunk, PyArrayAdapter<int, 6, true>::getArrayChecked(min), PyArrayAdapter<int, 6, true>::getArrayChecked(max)); }, py::arg("chunk"), py::arg("min"), py::arg("max"), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChunkMinMax));
VolumeDataPageAccessor_.def("getChunkMinMaxExcludingMargin", [](VolumeDataPageAccessor* self, int64_t chunk, py::array_t<int>& minExcludingMargin, py::array_t<int>& maxExcludingMargin) { return self->GetChunkMinMaxExcludingMargin(chunk, PyArrayAdapter<int, 6, true>::getArrayChecked(minExcludingMargin), PyArrayAdapter<int, 6, true>::getArrayChecked(maxExcludingMargin)); }, py::arg("chunk"), py::arg("minExcludingMargin"), py::arg("maxExcludingMargin"), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChunkMinMaxExcludingMargin));
VolumeDataPageAccessor_.def("getChunkIndex" , [](VolumeDataPageAccessor* self, const py::array_t<int>& position) { return self->GetChunkIndex(PyArrayAdapter<int, 6, false>::getArrayChecked(position)); }, py::arg("position"), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetChunkIndex));
VolumeDataPageAccessor_.def("addReference" , static_cast<int(VolumeDataPageAccessor::*)()>(&VolumeDataPageAccessor::AddReference), OPENVDS_DOCSTRING(VolumeDataPageAccessor_AddReference));
VolumeDataPageAccessor_.def("removeReference" , static_cast<int(VolumeDataPageAccessor::*)()>(&VolumeDataPageAccessor::RemoveReference), OPENVDS_DOCSTRING(VolumeDataPageAccessor_RemoveReference));
VolumeDataPageAccessor_.def("getMaxPages" , static_cast<int(VolumeDataPageAccessor::*)()>(&VolumeDataPageAccessor::GetMaxPages), OPENVDS_DOCSTRING(VolumeDataPageAccessor_GetMaxPages));
......@@ -235,7 +235,7 @@ PyVolumeDataAccess::initModule(py::module& m)
VolumeDataPageAccessor_.def("setMaxPages" , static_cast<void(VolumeDataPageAccessor::*)(int)>(&VolumeDataPageAccessor::SetMaxPages), py::arg("maxPages").none(false), OPENVDS_DOCSTRING(VolumeDataPageAccessor_SetMaxPages));
VolumeDataPageAccessor_.def("createPage" , static_cast<native::VolumeDataPage *(VolumeDataPageAccessor::*)(int64_t)>(&VolumeDataPageAccessor::CreatePage), py::arg("chunkIndex").none(false), OPENVDS_DOCSTRING(VolumeDataPageAccessor_CreatePage));
VolumeDataPageAccessor_.def("readPage" , static_cast<native::VolumeDataPage *(VolumeDataPageAccessor::*)(int64_t)>(&VolumeDataPageAccessor::ReadPage), py::arg("chunkIndex").none(false), OPENVDS_DOCSTRING(VolumeDataPageAccessor_ReadPage));
VolumeDataPageAccessor_.def("readPageAtPosition" , [](VolumeDataPageAccessor* self, const py::array_t<int>& position) { return self->ReadPageAtPosition(PyArrayAdapter<int, 6, false>::getArrayChecked(position)); }, py::arg("position").none(false), OPENVDS_DOCSTRING(VolumeDataPageAccessor_ReadPageAtPosition));
VolumeDataPageAccessor_.def("readPageAtPosition" , [](VolumeDataPageAccessor* self, const py::array_t<int>& position) { return self->ReadPageAtPosition(PyArrayAdapter<int, 6, false>::getArrayChecked(position)); }, py::arg("position"), OPENVDS_DOCSTRING(VolumeDataPageAccessor_ReadPageAtPosition));
VolumeDataPageAccessor_.def("commit" , static_cast<void(VolumeDataPageAccessor::*)()>(&VolumeDataPageAccessor::Commit), OPENVDS_DOCSTRING(VolumeDataPageAccessor_Commit));
//AUTOGEN-END
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment