RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
IndexedPolygon< T > Class Template Referenceabstract

indexed polygon class that saves N indices to the N vertices of the polygon More...

#include <IndexedPolygon.hpp>

Public Types

typedef rw::core::Ptr< IndexedPolygon< T > > Ptr
 Smart pointer to IndexedPolygonN.
 
typedef T value_type
 value type of the index pointer
 

Public Member Functions

virtual ~IndexedPolygon ()
 destructor
 
virtual T & getVertexIdx (size_t i)=0
 returns the index of vertex i of the triangle
 
virtual const T & getVertexIdx (size_t i) const =0
 returns the index of vertex i of the triangle
 
T & operator[] (size_t i)
 get vertex at index i
 
const T & operator[] (size_t i) const
 get vertex at index i
 
virtual size_t size () const =0
 Number of vertices of this polygon. More...
 

Detailed Description

template<class T = uint16_t>
class rw::geometry::IndexedPolygon< T >

indexed polygon class that saves N indices to the N vertices of the polygon

Member Function Documentation

◆ size()

virtual size_t size ( ) const
pure virtual

Number of vertices of this polygon.

Returns
Number of vertices

Implemented in IndexedPolygonN< T >, and IndexedPolygonN< uint16_t >.


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