// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 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 "jet.h" #include "colormap.h" template IGL_INLINE void igl::jet(const T x, T * rgb) { igl::colormap(igl::COLOR_MAP_TYPE_JET,x, rgb); } template IGL_INLINE void igl::jet(const T f, T & r, T & g, T & b) { igl::colormap(igl::COLOR_MAP_TYPE_JET, f, r, g, b); } template IGL_INLINE void igl::jet( const Eigen::MatrixBase & Z, const bool normalize, Eigen::PlainObjectBase & C) { igl::colormap(igl::COLOR_MAP_TYPE_JET,Z, normalize, C); } template IGL_INLINE void igl::jet( const Eigen::MatrixBase & Z, const double min_z, const double max_z, Eigen::PlainObjectBase & C) { igl::colormap(igl::COLOR_MAP_TYPE_JET, Z, min_z, max_z, C); } #ifdef IGL_STATIC_LIBRARY // Explicit template instantiation // generated by autoexplicit.sh template void igl::jet, Eigen::Matrix >(Eigen::MatrixBase > const&, bool, Eigen::PlainObjectBase >&); template void igl::jet(double, double*); template void igl::jet(double, double&, double&, double&); template void igl::jet(float, float*); template void igl::jet, Eigen::Matrix >(Eigen::MatrixBase > const&, bool, Eigen::PlainObjectBase >&); template void igl::jet, Eigen::Matrix >(Eigen::MatrixBase > const&, bool, Eigen::PlainObjectBase >&); template void igl::jet, Eigen::Matrix >(Eigen::MatrixBase > const&, bool, Eigen::PlainObjectBase >&); template void igl::jet(float, float&, float&, float&); template void igl::jet, Eigen::Matrix >(Eigen::MatrixBase > const&, double, double, Eigen::PlainObjectBase >&); template void igl::jet, Eigen::Matrix >(Eigen::MatrixBase > const&, double, double, Eigen::PlainObjectBase >&); template void igl::jet, Eigen::Matrix >(Eigen::MatrixBase > const&, double, double, Eigen::PlainObjectBase >&); template void igl::jet, Eigen::Matrix >(Eigen::MatrixBase > const&, bool, Eigen::PlainObjectBase >&); #endif