Project
Loading...
Searching...
No Matches
o2::mch::contour::Contour< T > Class Template Reference

#include <Contour.h>

Public Types

using size_type = typename std::vector< o2::mch::contour::Polygon< T > >::size_type
 

Public Member Functions

 Contour ()=default
 
 Contour (std::initializer_list< o2::mch::contour::Polygon< T > > args)
 
size_type size () const
 
o2::mch::contour::Polygon< T > operator[] (int i) const
 
bool empty () const
 
Contour< T > & addPolygon (const Polygon< T > &polygon)
 
bool contains (T x, T y) const
 
bool isClosed () const
 
bool isCounterClockwiseOriented () const
 
std::vector< o2::mch::contour::Vertex< T > > getVertices () const
 
std::vector< o2::mch::contour::Vertex< T > > getSortedVertices () const
 
std::vector< o2::mch::contour::Polygon< T > > getPolygons () const
 

Friends

std::ostream & operator<< (std::ostream &os, const Contour< T > &contour)
 

Detailed Description

template<typename T>
class o2::mch::contour::Contour< T >

Definition at line 63 of file Contour.h.

Member Typedef Documentation

◆ size_type

template<typename T >
using o2::mch::contour::Contour< T >::size_type = typename std::vector<o2::mch::contour::Polygon<T> >::size_type

Definition at line 66 of file Contour.h.

Constructor & Destructor Documentation

◆ Contour() [1/2]

template<typename T >
o2::mch::contour::Contour< T >::Contour ( )
default

◆ Contour() [2/2]

template<typename T >
o2::mch::contour::Contour< T >::Contour ( std::initializer_list< o2::mch::contour::Polygon< T > >  args)
inline

Definition at line 70 of file Contour.h.

Member Function Documentation

◆ addPolygon()

template<typename T >
Contour< T > & o2::mch::contour::Contour< T >::addPolygon ( const Polygon< T > &  polygon)
inline

Definition at line 78 of file Contour.h.

◆ contains()

template<typename T >
bool o2::mch::contour::Contour< T >::contains ( x,
y 
) const
inline

Definition at line 84 of file Contour.h.

◆ empty()

template<typename T >
bool o2::mch::contour::Contour< T >::empty ( ) const
inline

Definition at line 76 of file Contour.h.

◆ getPolygons()

template<typename T >
std::vector< o2::mch::contour::Polygon< T > > o2::mch::contour::Contour< T >::getPolygons ( ) const
inline

Definition at line 113 of file Contour.h.

◆ getSortedVertices()

template<typename T >
std::vector< o2::mch::contour::Vertex< T > > o2::mch::contour::Contour< T >::getSortedVertices ( ) const
inline

Definition at line 108 of file Contour.h.

◆ getVertices()

template<typename T >
std::vector< o2::mch::contour::Vertex< T > > o2::mch::contour::Contour< T >::getVertices ( ) const
inline

Definition at line 106 of file Contour.h.

◆ isClosed()

template<typename T >
bool o2::mch::contour::Contour< T >::isClosed ( ) const
inline

Definition at line 94 of file Contour.h.

◆ isCounterClockwiseOriented()

template<typename T >
bool o2::mch::contour::Contour< T >::isCounterClockwiseOriented ( ) const
inline

Definition at line 104 of file Contour.h.

◆ operator[]()

template<typename T >
o2::mch::contour::Polygon< T > o2::mch::contour::Contour< T >::operator[] ( int  i) const
inline

Definition at line 74 of file Contour.h.

◆ size()

template<typename T >
size_type o2::mch::contour::Contour< T >::size ( ) const
inline

Definition at line 72 of file Contour.h.

Friends And Related Symbol Documentation

◆ operator<<

template<typename T >
std::ostream & operator<< ( std::ostream &  os,
const Contour< T > &  contour 
)
friend

Definition at line 115 of file Contour.h.


The documentation for this class was generated from the following file: