IDS peak ICV v1.0.0
Loading...
Searching...
No Matches
Polygon< PointType > Class Template Reference

#include <peak_icv/types/geometry/peak_icv_polygon.hpp>

Inheritance diagram for Polygon< PointType >:
Collaboration diagram for Polygon< PointType >:

Public Member Functions

 Polygon ()
 Creates an empty polygon.
 
 ~Polygon () override
 
 Polygon (const std::vector< peak::common::detail::PointT< PointType > > &points)
 Creates a polygon from a set of points.
 
 Polygon (const Polygon &other)
 
 Polygon (Polygon &&other) noexcept
 
Polygon & operator= (const Polygon &other)
 
Polygon & operator= (Polygon &&other) noexcept
 
std::vector< peak::common::detail::PointT< PointType > > GetPoints () const
 Provides the points from a polygon.
 
bool IsClosed () const
 Checks if a polygon is closed. A closed polygon contains the same point as first and last point. Returns True if closed, False if open.
 

Detailed Description

template<typename PointType>
class peak::icv::detail::Polygon< PointType >

A polygon is a two-dimensional geometric shape that is made up of a finite number of straight line segments connected end-to-end to form an open or closed figure. A polygon is represented by the points where the line segments meet.

Warning
This function is still in development and not released.

Definition at line 100 of file peak_icv_type_traits.hpp.

Constructor & Destructor Documentation

◆ Polygon() [1/4]

template<typename PointType >
Polygon ( )
inline

Creates an empty polygon.

Warning
This function is still in development and not released.

Definition at line 122 of file peak_icv_polygon.hpp.

◆ ~Polygon()

template<typename PointType >
~Polygon ( )
inlineoverride
Warning
This function is still in development and not released.

Definition at line 171 of file peak_icv_polygon.hpp.

◆ Polygon() [2/4]

template<typename PointType >
Polygon ( const std::vector< peak::common::detail::PointT< PointType > > & points)
inlineexplicit

Creates a polygon from a set of points.

Parameters
pointsVector of points representing the polygon.
Warning
This function is still in development and not released.

Definition at line 130 of file peak_icv_polygon.hpp.

◆ Polygon() [3/4]

template<typename PointType >
Polygon ( const Polygon< PointType > & other)
inline
Warning
This function is still in development and not released.

Definition at line 149 of file peak_icv_polygon.hpp.

◆ Polygon() [4/4]

template<typename PointType >
Polygon ( Polygon< PointType > && other)
inlinenoexcept
Warning
This function is still in development and not released.

Definition at line 161 of file peak_icv_polygon.hpp.

Member Function Documentation

◆ GetPoints()

template<typename PointType >
std::vector< peak::common::detail::PointT< PointType > > GetPoints ( ) const
inline

Provides the points from a polygon.

Returns
Returns the points from a polygon.
Warning
This function is still in development and not released.

Definition at line 215 of file peak_icv_polygon.hpp.

◆ IsClosed()

template<typename PointType >
bool IsClosed ( ) const
inline

Checks if a polygon is closed. A closed polygon contains the same point as first and last point. Returns True if closed, False if open.

Returns
Returns True if closed, False if open.
Warning
This function is still in development and not released.

Definition at line 241 of file peak_icv_polygon.hpp.

◆ operator=() [1/2]

template<typename PointType >
Polygon< PointType > & operator= ( const Polygon< PointType > & other)
inline
Warning
This function is still in development and not released.

Definition at line 177 of file peak_icv_polygon.hpp.

◆ operator=() [2/2]

template<typename PointType >
Polygon< PointType > & operator= ( Polygon< PointType > && other)
inlinenoexcept
Warning
This function is still in development and not released.

Definition at line 197 of file peak_icv_polygon.hpp.