|
template<typename Cont , typename std::enable_if< trait::IsArray< Cont >::value, Cont >::type * = nullptr> |
Cont | alloc (std::size_t) |
| Allocation for std::array container. More...
|
|
template<typename T > |
void | drawSvgSeg (img::Image< img::SvgImage > &im, const Point2d_< T > &pt1, const Point2d_< T > &pt2, std::string color, int thickness, std::string attribs=std::string()) |
| Helper function to draw SVG segment. More...
|
|
template<typename T > |
void | drawSvgSeg (img::Image< img::SvgImage > &im, const std::pair< Point2d_< T >, Point2d_< T >> &ppts, std::string color, int thickness, std::string attribs=std::string()) |
|
template<typename FPT , typename CONT , typename S_WHAT > |
size_t | findPoint (const Point2d_< FPT > &qpt, const CONT &cont, const S_WHAT &) |
| Private. Common function for searching nearest of farthest point. More...
|
|
template<typename FPT > |
void | fix_order (Point2d_< FPT > &ptA, Point2d_< FPT > &ptB) |
| Private free function, swap the points so that ptA.x <= ptB.x , and if equal, sorts on y. More...
|
|
template<typename FPT > |
std::array< PointPair_< double >, 3 > | getArrowSegments (const base::SegVec< typ::IsOSeg, FPT > &vec) |
|
template<typename FPT > |
auto | getBB_CommonType (const std::vector< CommonType_< FPT >> &v_var) |
| Get Bounding Box for a container holding variant objects. More...
|
|
template<typename FPT > |
auto | getBB_FRect (const std::vector< FRect_< FPT >> &v_rects) |
| get BB for a set of FRect_ objects More...
|
|
template<typename T , typename std::enable_if< trait::IsContainer< T >::value, T >::type * = nullptr> |
PointPair_< typename T::value_type::FType > | getBB_Points (const T &vpts) |
| Returns the bounding box of points in vector/list/array of points vpts (free function) More...
|
|
template<typename T , typename std::enable_if< trait::IsContainer< T >::value, T >::type * = nullptr> |
FRect_< typename T::value_type::FType > | getBB_Segments (const T &vsegs) |
| Returns the bounding box of segments in vector/list/array of points vsegs . More...
|
|
template<typename T > |
auto | getBmPoint_helper (const T &t) |
| Return iterator on Bottom-most point of container holding points. More...
|
|
template<typename PT > |
std::array< PT, 3 > | getLargestDistancePoints (PT pt1, PT pt2, PT pt3) |
| Helper function, used to check for colinearity of three points. More...
|
|
template<typename T1 , typename T2 > |
Line2d_< T1 > | getOrthogonalLine_B2 (const Point2d_< T2 > &pt, const Line2d_< T1 > &li) |
| Helper function for impl_getOrthogonalLine_A() and impl_getOrthogonalLine_B(), Compute orthogonal line to li at point pt (that must lie on the line) More...
|
|
template<typename FPT , typename FPT2 , typename FPT3 > |
auto | getPoints_B2 (const Point2d_< FPT > &pt, FPT2 dist, const Line2d_< FPT3 > &li) |
| Helper function, factorized here for the two impl_getPoints_A() implementations. More...
|
|
template<typename IMG , typename FPT > |
void | impl_drawIndexes (img::Image< IMG > &img, size_t c, const img::DrawParams &dp, const Point2d_< FPT > &pt) |
| Draw indexes for points. More...
|
|
template<typename IMG , typename FPT > |
void | impl_drawIndexes (img::Image< IMG > &img, size_t c, const img::DrawParams &dp, const Segment_< FPT > &seg) |
| Draw indexes for segment. More...
|
|
template<typename IMG , typename DUMMY > |
void | impl_drawIndexes (img::Image< IMG > &, size_t, const img::DrawParams &, const DUMMY &) |
| Default signature, will be instanciated if no other fits (and does nothing) More...
|
|
template<typename T > |
std::pair< int, int > | impl_dsize (const detail::DataFpType< T > &) |
| Implementation of dsize(), returns nb of bits of mantissa and exponent (default implementation) More...
|
|
template<long unsigned int M, long unsigned int E> |
std::pair< int, int > | impl_dsize (const detail::DataFpType< ttmath::Big< M, E >> &) |
| Implementation for ttmath types. More...
|
|
Dtype | impl_dtype (const detail::DataFpType< float > &) |
|
Dtype | impl_dtype (const detail::DataFpType< double > &) |
|
Dtype | impl_dtype (const detail::DataFpType< long double > &) |
|
template<typename T > |
Dtype | impl_dtype (const detail::DataFpType< T > &) |
|
template<long unsigned int M, long unsigned int E> |
Dtype | impl_dtype (const detail::DataFpType< ttmath::Big< M, E >> &) |
| Implementation for ttmath types. More...
|
|
template<typename FPT1 , typename PT > |
bool | is_valid_circle (const Circle_< FPT1 > &circ, const std::vector< PT > &pts) |
| Free Function to check whether a circle encloses the given points. More...
|
|
template<typename ST , typename PLT , typename FPT > |
std::vector< ST > | p_getSegs (const base::PolylineBase< PLT, FPT > &pl, const ST &) |
| Private helper function for base::PolylineBase::getSegs() and base::PolylineBase::getOSegs() More...
|
|
template<typename T > |
int | sign (T val) |
| Get sign of value. More...
|
|
template<typename FPT1 , typename FPT2 > |
HOMOG2D_INUMTYPE | sqDist (const Point2d_< FPT1 > &pt1, const Point2d_< FPT2 > &pt2) |
| Free function, squared distance between points (sqrt not needed for comparisons, and can save some time) More...
|
|
Holds private stuff.
Helper function used by the draw(OSegment) function, returns the 3 segment corresponding to the "arrows" as 3 pairs of points.
Used both in the SVG and the Opencv backends
/|\
|
|
|
---