include
fields2cover
headland_generator
headland_generator_base.h
Go to the documentation of this file.
1
//=============================================================================
2
// Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
3
// Author: Gonzalo Mier
4
// BSD-3 License
5
//=============================================================================
6
7
#pragma once
8
#ifndef FIELDS2COVER_HEADLAND_GENERATOR_HEADLAND_GENERATOR_BASE_H_
9
#define FIELDS2COVER_HEADLAND_GENERATOR_HEADLAND_GENERATOR_BASE_H_
10
11
#include <vector>
12
#include "
fields2cover/types.h
"
13
14
namespace
f2c::hg
{
15
17
class
HeadlandGeneratorBase
{
18
public
:
23
virtual
F2CCells
generateHeadlands
(
24
const
F2CCells
&
field
,
double
dist_headland) = 0;
25
33
virtual
F2CCells
generateHeadlandArea
(
34
const
F2CCells
&
field
,
double
swath_width,
int
n_swaths
) = 0;
35
47
virtual
std::vector<F2CCells>
generateHeadlandSwaths
(
48
const
F2CCells
&
field
,
double
swath_width,
int
n_swaths
,
49
bool
dir_out2in =
true
) = 0;
50
51
virtual
~HeadlandGeneratorBase
() =
default
;
52
};
53
54
}
// namespace f2c::hg
55
56
#endif // FIELDS2COVER_HEADLAND_GENERATOR_HEADLAND_GENERATOR_BASE_H_
2_objective_functions.n_swaths
n_swaths
Definition:
2_objective_functions.py:50
types.h
f2c::hg::HeadlandGeneratorBase::generateHeadlandArea
virtual F2CCells generateHeadlandArea(const F2CCells &field, double swath_width, int n_swaths)=0
f2c::hg::HeadlandGeneratorBase
Base class to generate the headlands.
Definition:
headland_generator_base.h:17
f2c::hg::HeadlandGeneratorBase::generateHeadlandSwaths
virtual std::vector< F2CCells > generateHeadlandSwaths(const F2CCells &field, double swath_width, int n_swaths, bool dir_out2in=true)=0
f2c::hg::HeadlandGeneratorBase::generateHeadlands
virtual F2CCells generateHeadlands(const F2CCells &field, double dist_headland)=0
f2c::types::Cells
Definition:
Cells.h:21
2_objective_functions.field
field
Definition:
2_objective_functions.py:16
f2c::hg::HeadlandGeneratorBase::~HeadlandGeneratorBase
virtual ~HeadlandGeneratorBase()=default
f2c::hg
Headland generator algorithms' namespace.
Definition:
constant_headland.h:15
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31