Public Member Functions | List of all members
f2c::hg::ConstHL Class Reference

Class to generate headlands with equal width in each border. More...

#include <constant_headland.h>

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

Public Member Functions

F2CCells generateHeadlandArea (const F2CCells &field, double swath_width, int n_swaths) override
 
F2CCells generateHeadlands (const F2CCells &field, double dist_headland) override
 
std::vector< F2CCellsgenerateHeadlandSwaths (const F2CCells &field, double swath_width, int n_swaths, bool dir_out2in=true) override
 
- Public Member Functions inherited from f2c::hg::HeadlandGeneratorBase
virtual ~HeadlandGeneratorBase ()=default
 

Detailed Description

Class to generate headlands with equal width in each border.

Definition at line 18 of file constant_headland.h.

Member Function Documentation

◆ generateHeadlandArea()

F2CCells f2c::hg::ConstHL::generateHeadlandArea ( const F2CCells field,
double  swath_width,
int  n_swaths 
)
overridevirtual

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

Implements f2c::hg::HeadlandGeneratorBase.

Definition at line 17 of file constant_headland.cpp.

◆ generateHeadlands()

F2CCells f2c::hg::ConstHL::generateHeadlands ( const F2CCells field,
double  dist_headland 
)
overridevirtual

Generate headland area of the field at a given distance from borders

Parameters
fieldBorders of the field and the obstacles on it.
dist_headlandDistance between exterior and interior borders of the headlands.
Returns
Mainland area

Implements f2c::hg::HeadlandGeneratorBase.

Definition at line 12 of file constant_headland.cpp.

◆ generateHeadlandSwaths()

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

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.

Implements f2c::hg::HeadlandGeneratorBase.

Definition at line 22 of file constant_headland.cpp.


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


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