![]() |
Project
|
Classes | |
class | HorizontalEdge |
class | Interval |
class | ManhattanEdge |
class | Node |
class | VerticalEdge |
Typedefs | |
template<typename T > | |
using | GetVertexPosFunc = T(*)(const Vertex< T > &) |
Functions | |
template<typename T > | |
void | sortVerticalEdges (std::vector< VerticalEdge< T > > &edges) |
template<typename T > | |
Interval< T > | interval (const VerticalEdge< T > &edge) |
template<typename T > | |
std::vector< VerticalEdge< T > > | getVerticalEdges (const Polygon< T > &polygon) |
template<typename T > | |
std::vector< VerticalEdge< T > > | getVerticalEdges (const std::vector< Polygon< T > > &polygons) |
template<typename T > | |
T | getX (const Vertex< T > &v) |
template<typename T > | |
T | getY (const Vertex< T > &v) |
template<typename T > | |
std::vector< T > | getPositions (const std::vector< Polygon< T > > &polygons, GetVertexPosFunc< T > func) |
template<typename T > | |
std::vector< T > | getYPositions (const std::vector< Polygon< T > > &polygons) |
template<typename T > | |
std::vector< T > | getXPositions (const std::vector< Polygon< T > > &polygons) |
template<typename T > | |
std::vector< VerticalEdge< T > > | sweep (Node< T > *segmentTree, const std::vector< VerticalEdge< T > > &polygonVerticalEdges) |
template<typename T > | |
std::vector< HorizontalEdge< T > > | verticalsToHorizontals (const std::vector< VerticalEdge< T > > &verticals) |
template<typename T > | |
Contour< T > | finalizeContour (const std::vector< VerticalEdge< T > > &verticals, const std::vector< HorizontalEdge< T > > &horizontals) |
template<typename T > | |
bool | isVertical (const ManhattanEdge< T > &edge) |
template<typename T > | |
bool | isHorizontal (const ManhattanEdge< T > &edge) |
template<typename T > | |
T | top (const VerticalEdge< T > &edge) |
template<typename T > | |
T | bottom (const VerticalEdge< T > &edge) |
template<typename T > | |
bool | isLeftEdge (const VerticalEdge< T > &edge) |
template<typename T > | |
bool | isRightEdge (const VerticalEdge< T > &edge) |
template<typename T > | |
bool | isTopToBottom (const VerticalEdge< T > &edge) |
template<typename T > | |
bool | isBottomToTop (const VerticalEdge< T > &edge) |
template<typename T > | |
T | left (const HorizontalEdge< T > &edge) |
template<typename T > | |
T | right (const HorizontalEdge< T > &edge) |
template<typename T > | |
bool | isLeftToRight (const HorizontalEdge< T > &edge) |
template<typename T > | |
bool | isRightToLeft (const HorizontalEdge< T > &edge) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const ManhattanEdge< T > &edge) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const VerticalEdge< T > &edge) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const HorizontalEdge< T > &edge) |
template<typename T > | |
bool | operator== (const ManhattanEdge< T > &lhs, const ManhattanEdge< T > &rhs) |
template<typename T > | |
bool | operator!= (const ManhattanEdge< T > &&lhs, const ManhattanEdge< T > &rhs) |
template<typename T , typename U > | |
bool | CanTypeFitValue (const U value) |
bool | areEqual (double a, double b) |
bool | areEqual (int a, int b) |
bool | isStrictlyBelow (double a, double b) |
bool | isStrictlyBelow (int a, int b) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Interval< T > &i) |
template<typename T > | |
Node< T > * | buildNode (const std::vector< T > &values, int b, int e) |
template<typename T > | |
bool | isActive (const Node< T > &node) |
template<typename T > | |
Node< T > * | createSegmentTree (std::vector< T > values) |
template<typename T > | |
void | dump (const char *msg, const Node< T > &node, const Interval< T > &i) |
template<typename T > | |
int | numberOfLeaves (const Node< T > &rootNode) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Node< T > &node) |
using o2::mch::contour::impl::GetVertexPosFunc = typedef T (*)(const Vertex<T>&) |
Definition at line 115 of file ContourCreator.inl.
|
inline |
T o2::mch::contour::impl::bottom | ( | const VerticalEdge< T > & | edge | ) |
Node< T > * o2::mch::contour::impl::buildNode | ( | const std::vector< T > & | values, |
int | b, | ||
int | e | ||
) |
Definition at line 118 of file SegmentTree.h.
bool o2::mch::contour::impl::CanTypeFitValue | ( | const U | value | ) |
Node< T > * o2::mch::contour::impl::createSegmentTree | ( | std::vector< T > | values | ) |
Definition at line 137 of file SegmentTree.h.
void o2::mch::contour::impl::dump | ( | const char * | msg, |
const Node< T > & | node, | ||
const Interval< T > & | i | ||
) |
Definition at line 189 of file SegmentTree.h.
Contour< T > o2::mch::contour::impl::finalizeContour | ( | const std::vector< VerticalEdge< T > > & | verticals, |
const std::vector< HorizontalEdge< T > > & | horizontals | ||
) |
Definition at line 231 of file ContourCreator.inl.
std::vector< T > o2::mch::contour::impl::getPositions | ( | const std::vector< Polygon< T > > & | polygons, |
GetVertexPosFunc< T > | func | ||
) |
Definition at line 118 of file ContourCreator.inl.
std::vector< VerticalEdge< T > > o2::mch::contour::impl::getVerticalEdges | ( | const Polygon< T > & | polygon | ) |
Return the vertical edges of the input polygon
Definition at line 77 of file ContourCreator.inl.
std::vector< VerticalEdge< T > > o2::mch::contour::impl::getVerticalEdges | ( | const std::vector< Polygon< T > > & | polygons | ) |
Definition at line 92 of file ContourCreator.inl.
T o2::mch::contour::impl::getX | ( | const Vertex< T > & | v | ) |
Definition at line 103 of file ContourCreator.inl.
std::vector< T > o2::mch::contour::impl::getXPositions | ( | const std::vector< Polygon< T > > & | polygons | ) |
Definition at line 139 of file ContourCreator.inl.
T o2::mch::contour::impl::getY | ( | const Vertex< T > & | v | ) |
Definition at line 109 of file ContourCreator.inl.
std::vector< T > o2::mch::contour::impl::getYPositions | ( | const std::vector< Polygon< T > > & | polygons | ) |
Definition at line 133 of file ContourCreator.inl.
Interval< T > o2::mch::contour::impl::interval | ( | const VerticalEdge< T > & | edge | ) |
Definition at line 69 of file ContourCreator.inl.
bool o2::mch::contour::impl::isActive | ( | const Node< T > & | node | ) |
Definition at line 131 of file SegmentTree.h.
bool o2::mch::contour::impl::isBottomToTop | ( | const VerticalEdge< T > & | edge | ) |
bool o2::mch::contour::impl::isHorizontal | ( | const ManhattanEdge< T > & | edge | ) |
bool o2::mch::contour::impl::isLeftEdge | ( | const VerticalEdge< T > & | edge | ) |
bool o2::mch::contour::impl::isLeftToRight | ( | const HorizontalEdge< T > & | edge | ) |
bool o2::mch::contour::impl::isRightEdge | ( | const VerticalEdge< T > & | edge | ) |
bool o2::mch::contour::impl::isRightToLeft | ( | const HorizontalEdge< T > & | edge | ) |
|
inline |
bool o2::mch::contour::impl::isTopToBottom | ( | const VerticalEdge< T > & | edge | ) |
bool o2::mch::contour::impl::isVertical | ( | const ManhattanEdge< T > & | edge | ) |
T o2::mch::contour::impl::left | ( | const HorizontalEdge< T > & | edge | ) |
Definition at line 281 of file SegmentTree.h.
bool o2::mch::contour::impl::operator!= | ( | const ManhattanEdge< T > && | lhs, |
const ManhattanEdge< T > & | rhs | ||
) |
std::ostream & o2::mch::contour::impl::operator<< | ( | std::ostream & | os, |
const HorizontalEdge< T > & | edge | ||
) |
|
inline |
Definition at line 70 of file Interval.h.
std::ostream & o2::mch::contour::impl::operator<< | ( | std::ostream & | os, |
const ManhattanEdge< T > & | edge | ||
) |
std::ostream & o2::mch::contour::impl::operator<< | ( | std::ostream & | os, |
const Node< T > & | node | ||
) |
Definition at line 288 of file SegmentTree.h.
std::ostream & o2::mch::contour::impl::operator<< | ( | std::ostream & | os, |
const VerticalEdge< T > & | edge | ||
) |
bool o2::mch::contour::impl::operator== | ( | const ManhattanEdge< T > & | lhs, |
const ManhattanEdge< T > & | rhs | ||
) |
T o2::mch::contour::impl::right | ( | const HorizontalEdge< T > & | edge | ) |
void o2::mch::contour::impl::sortVerticalEdges | ( | std::vector< VerticalEdge< T > > & | edges | ) |
Definition at line 37 of file ContourCreator.inl.
std::vector< VerticalEdge< T > > o2::mch::contour::impl::sweep | ( | Node< T > * | segmentTree, |
const std::vector< VerticalEdge< T > > & | polygonVerticalEdges | ||
) |
Definition at line 145 of file ContourCreator.inl.
T o2::mch::contour::impl::top | ( | const VerticalEdge< T > & | edge | ) |
std::vector< HorizontalEdge< T > > o2::mch::contour::impl::verticalsToHorizontals | ( | const std::vector< VerticalEdge< T > > & | verticals | ) |
Generates horizontal edges from the vertical ones The horizontals are ordered relative to the verticals, i.e. the first horizontal should be the edge following the first vertical, etc...
verticals |
Definition at line 192 of file ContourCreator.inl.