22 #if defined(_MSC_FULL_VER) && defined(_DEBUG) && _MSC_FULL_VER >= 192930145
26 #include <pybind11/detail/common.h>
27 #include <pybind11/detail/internals.h>
28 #include <pybind11/eigen.h>
29 #include <pybind11/functional.h>
30 #include <pybind11/native_enum.h>
31 #include <pybind11/numpy.h>
32 #include <pybind11/operators.h>
33 #include <pybind11/pybind11.h>
34 #include <pybind11/stl.h>
35 #include <pybind11/stl_bind.h>
63 using namespace py::literals;
65 typedef std::vector<Eigen::Matrix4d, cloudViewer::utility::Matrix4d_allocator>
67 typedef std::vector<Eigen::Vector4i, cloudViewer::utility::Vector4i_allocator>
84 std::vector<cloudViewer::pipelines::registration::PoseGraphEdge>);
86 std::vector<cloudViewer::pipelines::registration::PoseGraphNode>);
98 template <
typename T,
typename Class_>
100 cl.def(py::init([]() {
return new T(); }),
"Default constructor");
103 template <
typename T,
typename Class_>
105 cl.def(py::init([](
const T &cp) {
return new T(cp); }),
"Copy constructor");
106 cl.def(
"__copy__", [](T &v) {
return T(v); });
107 cl.def(
"__deepcopy__", [](T &v, py::dict &memo) {
return T(v); });
148 template <
typename T>
152 template <
typename T_>
153 static handle
cast(T_ &&src, return_value_policy policy, handle parent) {
154 if (!src)
return none().inc_ref();
155 if (!std::is_lvalue_reference<T>::value) {
156 policy = return_value_policy_override<T>::policy(policy);
158 return value_conv::cast(*std::forward<T_>(src), policy, parent);
164 }
else if (src.is_none()) {
168 if (!inner_caster.load(src,
convert))
return false;
171 cast_op<typename T::value_type &&>(std::move(inner_caster)));
178 template <
typename T>
184 :
public void_caster<cloudViewer::utility::nullopt_t> {};
void convert(int argc, char **argv, const std::string &file_in, const std::string &file_out)
Double version of ccGLMatrixTpl.
std::vector< Eigen::Vector4i, cloudViewer::utility::Vector4i_allocator > temp_eigen_vector4i
std::vector< Eigen::Matrix4d, cloudViewer::utility::Matrix4d_allocator > temp_eigen_matrix4d
PYBIND11_MAKE_OPAQUE(std::vector< char >)
Generic file read and write utility for python interface.
void bind_default_constructor(Class_ &cl)
void bind_copy_functions(Class_ &cl)
static handle cast(T_ &&src, return_value_policy policy, handle parent)
bool load(handle src, bool convert)
make_caster< typename T::value_type > value_conv
PYBIND11_TYPE_CASTER(T, _("Optional[")+value_conv::name+_("]"))