Program Listing for File constant_headland.h

Return to documentation for file (fields2cover/headland_generator/constant_headland.h)

//=============================================================================
//    Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
//                     Author: Gonzalo Mier
//                        BSD-3 License
//=============================================================================

#pragma once
#ifndef FIELDS2COVER_HEADLAND_GENERATOR_CONSTANT_HEADLAND_H_
#define FIELDS2COVER_HEADLAND_GENERATOR_CONSTANT_HEADLAND_H_

#include <vector>
#include "fields2cover/types.h"
#include "fields2cover/headland_generator/headland_generator_base.h"

namespace f2c::hg {

class ConstHL : public HeadlandGeneratorBase {
 public:
  F2CCells generateHeadlands(
    const F2CCells& field, double dist_headland) override;

  F2CCells generateHeadlandArea(
    const F2CCells& field, double swath_width, int n_swaths) override;

  std::vector<F2CCells> generateHeadlandSwaths(
    const F2CCells& field, double swath_width, int n_swaths,
    bool dir_out2in = true) override;
};

}  // namespace f2c::hg


#endif  // FIELDS2COVER_HEADLAND_GENERATOR_CONSTANT_HEADLAND_H_