Something went wrong on our end
-
marco authored
specifically, remove LOGN_* macros and introduce new logging levels. We now have ERROR, WARNING, INFO, VERBOSE, DEBUG and TRACE. DEBUG and TRACE are turned off under NDEBUG and expand to an empty macro. new default verbosity level displays ERROR/WARNING/INFO git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2709 5a81b35b-ba03-0410-adc8-b2c5c5119f08
marco authoredspecifically, remove LOGN_* macros and introduce new logging levels. We now have ERROR, WARNING, INFO, VERBOSE, DEBUG and TRACE. DEBUG and TRACE are turned off under NDEBUG and expand to an empty macro. new default verbosity level displays ERROR/WARNING/INFO git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2709 5a81b35b-ba03-0410-adc8-b2c5c5119f08
bounds.hh 818 B
#ifndef OST_MOL_EXPORT_BOUNDS_HH
#define OST_MOL_EXPORT_BOUNDS_HH
#include <ost/log.hh>
template <typename H>
geom::Vec3 geom_center(const H& h)
{
return h.GetBounds().GetCenter();
}
template <typename H>
geom::Vec3 geom_size(const H& h)
{
WARN_DEPRECATED("GetBoundarySize()/boundary_size is deprecated. Use "
"bounds.size instead")
return h.GetBounds().GetSize();
}
template <typename H>
geom::Vec3 geom_start(const H& h)
{
WARN_DEPRECATED("GetGeometricStart()/geometric_start is deprecated. Use "
"bounds.min instead")
return h.GetBounds().GetMin();
}
template <typename H>
geom::Vec3 geom_end(const H& h)
{
WARN_DEPRECATED("GetGeometricEnd()/geometric_end is deprecated. Use "
"bounds.max instead")
return h.GetBounds().GetMax();
}
#endif