Public Member Functions | List of all members
f2c::hg::HeadlandGeneratorBase Class Referenceabstract

Base class to generate the headlands. More...

#include <headland_generator_base.h>

Inheritance diagram for f2c::hg::HeadlandGeneratorBase:
Inheritance graph
[legend]

Public Member Functions

virtual F2CCells generateHeadlandArea (const F2CCells &field, double swath_width, int n_swaths)=0
 
virtual F2CCells generateHeadlands (const F2CCells &field, double dist_headland)=0
 
virtual std::vector< F2CCellsgenerateHeadlandSwaths (const F2CCells &field, double swath_width, int n_swaths, bool dir_out2in=true)=0
 
virtual ~HeadlandGeneratorBase ()=default
 

Detailed Description

Base class to generate the headlands.

Definition at line 17 of file headland_generator_base.h.

Constructor & Destructor Documentation

◆ ~HeadlandGeneratorBase()

virtual f2c::hg::HeadlandGeneratorBase::~HeadlandGeneratorBase ( )
virtualdefault

Member Function Documentation

◆ generateHeadlandArea()

virtual F2CCells f2c::hg::HeadlandGeneratorBase::generateHeadlandArea ( const F2CCells field,
double  swath_width,
int  n_swaths 
)
pure virtual

Generate headland area of the field for a given number of swaths with given width.

Parameters
fieldBorders of the field and the obstacles on it.
swath_widthWidth of each headland swath.
n_swathsNumber of headland swaths.
Returns
Headland area

Implemented in f2c::hg::ConstHL.

◆ generateHeadlands()

virtual F2CCells f2c::hg::HeadlandGeneratorBase::generateHeadlands ( const F2CCells field,
double  dist_headland 
)
pure virtual

Get the regions of the field without headlands.

Parameters
_fieldOriginal field
_dist_headlandWidth of the headland
Returns
Field without headlands

Implemented in f2c::hg::ConstHL.

◆ generateHeadlandSwaths()

virtual std::vector<F2CCells> f2c::hg::HeadlandGeneratorBase::generateHeadlandSwaths ( const F2CCells field,
double  swath_width,
int  n_swaths,
bool  dir_out2in = true 
)
pure virtual

Generate headland swaths of the field for a given number of swaths with given width.

Parameters
fieldBorders of the field and the obstacles on it.
swath_widthWidth of each headland swath.
n_swathsNumber of headland swaths.
dir_out2inWhen true, headland swaths are created from outer borders to inner borders. Otherwise, they are created from inner borders to outers.
Returns
Vector of size n_swaths for each headland swath. Each F2CLinearRing on it is a headland swath ring.

Implemented in f2c::hg::ConstHL.


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


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31