// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2015 Alec Jacobson // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #include "parula.h" #include "colormap.h" template IGL_INLINE void igl::parula(const T x, T * rgb) { igl::colormap(x, rgb, igl::CM_PARULA); } template IGL_INLINE void igl::parula(const T f, T & r, T & g, T & b) { igl::colormap(f, r, g, b, igl::CM_PARULA); } template IGL_INLINE void igl::parula( const Eigen::PlainObjectBase & Z, const bool normalize, Eigen::PlainObjectBase & C) { igl::colormap(Z, normalize, C, igl::CM_PARULA); } template IGL_INLINE void igl::parula( const Eigen::PlainObjectBase & Z, const double min_z, const double max_z, Eigen::PlainObjectBase & C) { igl::colormap(Z, min_z, max_z, C, igl::CM_PARULA); } #ifdef IGL_STATIC_LIBRARY // Explicit template instantiation // generated by autoexplicit.sh template void igl::parula, Eigen::Matrix >(Eigen::PlainObjectBase > const&, double, double, Eigen::PlainObjectBase >&); // generated by autoexplicit.sh template void igl::parula, Eigen::Matrix >(Eigen::PlainObjectBase > const&, bool, Eigen::PlainObjectBase >&); template void igl::parula(double, double*); template void igl::parula(double, double&, double&, double&); template void igl::parula, Eigen::Matrix >(Eigen::PlainObjectBase > const&, bool, Eigen::PlainObjectBase >&); template void igl::parula, Eigen::Matrix >(Eigen::PlainObjectBase > const&, bool, Eigen::PlainObjectBase >&); template void igl::parula, Eigen::Matrix >(Eigen::PlainObjectBase > const&, double, double, Eigen::PlainObjectBase >&); #endif