//=========================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
//
//  This software is distributed WITHOUT ANY WARRANTY; without even
//  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
//  PURPOSE.  See the above copyright notice for more information.
//=========================================================================

#ifndef pybind_smtk_mesh_ExtractTessellation_h
#define pybind_smtk_mesh_ExtractTessellation_h

#include <pybind11/pybind11.h>

#include "smtk/mesh/utility/ExtractTessellation.h"

#include "smtk/model/EdgeUse.h"
#include "smtk/model/Loop.h"

namespace py = pybind11;

inline PySharedPtrClass< smtk::mesh::utility::PreAllocatedTessellation > pybind11_init_smtk_mesh_PreAllocatedTessellation(py::module &m)
{
  PySharedPtrClass< smtk::mesh::utility::PreAllocatedTessellation > instance(m, "PreAllocatedTessellation");
  instance
    .def(py::init<::smtk::mesh::utility::PreAllocatedTessellation const &>())
    .def(py::init<::int64_t *>())
    .def(py::init<::int64_t *, float *>())
    .def(py::init<::int64_t *, double *>())
    .def(py::init<::int64_t *, ::int64_t *, unsigned char *>())
    .def(py::init<::int64_t *, ::int64_t *, unsigned char *, float *>())
    .def(py::init<::int64_t *, ::int64_t *, unsigned char *, double *>())
    .def("deepcopy", (smtk::mesh::utility::PreAllocatedTessellation & (smtk::mesh::utility::PreAllocatedTessellation::*)(::smtk::mesh::utility::PreAllocatedTessellation const &)) &smtk::mesh::utility::PreAllocatedTessellation::operator=)
    .def_static("determineAllocationLengths", (void (*)(::smtk::mesh::MeshSet const &, ::int64_t &, ::int64_t &, ::int64_t &)) &smtk::mesh::utility::PreAllocatedTessellation::determineAllocationLengths, py::arg("ms"), py::arg("connectivityLength"), py::arg("numberOfCells"), py::arg("numberOfPoints"))
    .def_static("determineAllocationLengths", (void (*)(::smtk::mesh::CellSet const &, ::int64_t &, ::int64_t &, ::int64_t &)) &smtk::mesh::utility::PreAllocatedTessellation::determineAllocationLengths, py::arg("cs"), py::arg("connectivityLength"), py::arg("numberOfCells"), py::arg("numberOfPoints"))
    .def_static("determineAllocationLengths", (void (*)(::smtk::model::EntityRef const &, ::smtk::mesh::ResourcePtr const &, ::int64_t &, ::int64_t &, ::int64_t &)) &smtk::mesh::utility::PreAllocatedTessellation::determineAllocationLengths, py::arg("eRef"), py::arg("c"), py::arg("connectivityLength"), py::arg("numberOfCells"), py::arg("numberOfPoints"))
    .def_static("determineAllocationLengths", (void (*)(::smtk::model::Loop const &, ::smtk::mesh::ResourcePtr const &, ::int64_t &, ::int64_t &, ::int64_t &)) &smtk::mesh::utility::PreAllocatedTessellation::determineAllocationLengths, py::arg("loop"), py::arg("c"), py::arg("connectivityLength"), py::arg("numberOfCells"), py::arg("numberOfPoints"))
    .def("disableVTKCellTypes", &smtk::mesh::utility::PreAllocatedTessellation::disableVTKCellTypes, py::arg("disable"))
    .def("disableVTKStyleConnectivity", &smtk::mesh::utility::PreAllocatedTessellation::disableVTKStyleConnectivity, py::arg("disable"))
    .def("hasCellLocations", &smtk::mesh::utility::PreAllocatedTessellation::hasCellLocations)
    .def("hasCellTypes", &smtk::mesh::utility::PreAllocatedTessellation::hasCellTypes)
    .def("hasConnectivity", &smtk::mesh::utility::PreAllocatedTessellation::hasConnectivity)
    .def("hasDoublePoints", &smtk::mesh::utility::PreAllocatedTessellation::hasDoublePoints)
    .def("hasFloatPoints", &smtk::mesh::utility::PreAllocatedTessellation::hasFloatPoints)
    .def("useVTKCellTypes", &smtk::mesh::utility::PreAllocatedTessellation::useVTKCellTypes)
    .def("useVTKConnectivity", &smtk::mesh::utility::PreAllocatedTessellation::useVTKConnectivity)
    ;
  return instance;
}

inline PySharedPtrClass< smtk::mesh::utility::Tessellation > pybind11_init_smtk_mesh_Tessellation(py::module &m)
{
  PySharedPtrClass< smtk::mesh::utility::Tessellation > instance(m, "Tessellation");
  instance
    .def(py::init<::smtk::mesh::utility::Tessellation const &>())
    .def(py::init<>())
    .def(py::init<bool, bool>())
    .def("deepcopy", (smtk::mesh::utility::Tessellation & (smtk::mesh::utility::Tessellation::*)(::smtk::mesh::utility::Tessellation const &)) &smtk::mesh::utility::Tessellation::operator=)
    .def("cellLocations", &smtk::mesh::utility::Tessellation::cellLocations)
    .def("cellTypes", &smtk::mesh::utility::Tessellation::cellTypes)
    .def("connectivity", &smtk::mesh::utility::Tessellation::connectivity)
    .def("extract", (void (smtk::mesh::utility::Tessellation::*)(::smtk::mesh::MeshSet const &)) &smtk::mesh::utility::Tessellation::extract, py::arg("ms"))
    .def("extract", (void (smtk::mesh::utility::Tessellation::*)(::smtk::mesh::CellSet const &)) &smtk::mesh::utility::Tessellation::extract, py::arg("cs"))
    .def("extract", (void (smtk::mesh::utility::Tessellation::*)(::smtk::mesh::MeshSet const &, ::smtk::mesh::PointSet const &)) &smtk::mesh::utility::Tessellation::extract, py::arg("cs"), py::arg("ps"))
    .def("extract", (void (smtk::mesh::utility::Tessellation::*)(::smtk::mesh::CellSet const &, ::smtk::mesh::PointSet const &)) &smtk::mesh::utility::Tessellation::extract, py::arg("cs"), py::arg("ps"))
    .def("points", &smtk::mesh::utility::Tessellation::points)
    .def("useVTKCellTypes", &smtk::mesh::utility::Tessellation::useVTKCellTypes)
    .def("useVTKConnectivity", &smtk::mesh::utility::Tessellation::useVTKConnectivity)
    ;
  return instance;
}

inline void pybind11_init__ZN4smtk4mesh26extractOrderedTessellationERKNS_5model4EdgeERKNSt3__110shared_ptrINS0_10ResourceEEERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractOrderedTessellation", (void (*)(::smtk::model::EdgeUse const &, ::smtk::mesh::ResourcePtr const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractOrderedTessellation, "", py::arg("arg0"), py::arg("arg1"), py::arg("arg2"));
}

inline void pybind11_init__ZN4smtk4mesh26extractOrderedTessellationERKNS_5model4LoopERKNSt3__110shared_ptrINS0_10ResourceEEERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractOrderedTessellation", (void (*)(::smtk::model::Loop const &, ::smtk::mesh::ResourcePtr const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractOrderedTessellation, "", py::arg("arg0"), py::arg("arg1"), py::arg("arg2"));
}

inline void pybind11_init__ZN4smtk4mesh26extractOrderedTessellationERKNS_5model4EdgeERKNSt3__110shared_ptrINS0_10ResourceEEERKNS0_8PointSetERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractOrderedTessellation", (void (*)(::smtk::model::EdgeUse const &, ::smtk::mesh::ResourcePtr const &, ::smtk::mesh::PointSet const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractOrderedTessellation, "", py::arg("arg0"), py::arg("arg1"), py::arg("arg2"), py::arg("arg3"));
}

inline void pybind11_init__ZN4smtk4mesh26extractOrderedTessellationERKNS_5model4LoopERKNSt3__110shared_ptrINS0_10ResourceEEERKNS0_8PointSetERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractOrderedTessellation", (void (*)(::smtk::model::Loop const &, ::smtk::mesh::ResourcePtr const &, ::smtk::mesh::PointSet const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractOrderedTessellation, "", py::arg("arg0"), py::arg("arg1"), py::arg("arg2"), py::arg("arg3"));
}

inline void pybind11_init__ZN4smtk4mesh19extractTessellationERKNS0_7MeshSetERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractTessellation", (void (*)(::smtk::mesh::MeshSet const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractTessellation, "", py::arg("arg0"), py::arg("arg1"));
}

inline void pybind11_init__ZN4smtk4mesh19extractTessellationERKNS0_7CellSetERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractTessellation", (void (*)(::smtk::mesh::CellSet const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractTessellation, "", py::arg("arg0"), py::arg("arg1"));
}

inline void pybind11_init__ZN4smtk4mesh19extractTessellationERKNS_5model9EntityRefERKNSt3__110shared_ptrINS0_10ResourceEEERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractTessellation", (void (*)(::smtk::model::EntityRef const &, ::smtk::mesh::ResourcePtr const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractTessellation, "", py::arg("arg0"), py::arg("arg1"), py::arg("arg2"));
}

inline void pybind11_init__ZN4smtk4mesh19extractTessellationERKNS0_7MeshSetERKNS0_8PointSetERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractTessellation", (void (*)(::smtk::mesh::MeshSet const &, ::smtk::mesh::PointSet const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractTessellation, "", py::arg("arg0"), py::arg("arg1"), py::arg("arg2"));
}

inline void pybind11_init__ZN4smtk4mesh19extractTessellationERKNS0_7CellSetERKNS0_8PointSetERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractTessellation", (void (*)(::smtk::mesh::CellSet const &, ::smtk::mesh::PointSet const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractTessellation, "", py::arg("arg0"), py::arg("arg1"), py::arg("arg2"));
}

inline void pybind11_init__ZN4smtk4mesh19extractTessellationERNS0_17PointConnectivityERKNS0_8PointSetERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractTessellation", (void (*)(::smtk::mesh::PointConnectivity &, ::smtk::mesh::PointSet const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractTessellation, "", py::arg("arg0"), py::arg("arg1"), py::arg("arg2"));
}

inline void pybind11_init__ZN4smtk4mesh19extractTessellationERKNS_5model9EntityRefERKNSt3__110shared_ptrINS0_10ResourceEEERKNS0_8PointSetERNS0_24PreAllocatedTessellationE(py::module &m)
{
  m.def("extractTessellation", (void (*)(::smtk::model::EntityRef const &, ::smtk::mesh::ResourcePtr const &, ::smtk::mesh::PointSet const &, ::smtk::mesh::utility::PreAllocatedTessellation &)) &smtk::mesh::utility::extractTessellation, "", py::arg("arg0"), py::arg("arg1"), py::arg("arg2"), py::arg("arg3"));
}

#endif
