Program Listing for File single_cell_swaths_order_base.h
↰ Return to documentation for file (include/fields2cover/route_planning/single_cell_swaths_order_base.h
)
//=============================================================================
// Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
// Author: Gonzalo Mier
// BSD-3 License
//=============================================================================
#pragma once
#ifndef FIELDS2COVER_ROUTE_PLANNING_SINGLE_CELL_SWATHS_ORDER_BASE_H_
#define FIELDS2COVER_ROUTE_PLANNING_SINGLE_CELL_SWATHS_ORDER_BASE_H_
#include "fields2cover/types.h"
namespace f2c::rp {
class SingleCellSwathsOrderBase {
public:
virtual F2CSwaths genSortedSwaths(
const F2CSwaths& swaths, uint32_t variant = 0) const;
virtual ~SingleCellSwathsOrderBase() = default;
protected:
virtual void changeStartPoint(F2CSwaths& swaths, uint32_t variant) const;
virtual void sortSwaths(F2CSwaths& swaths) const = 0;
};
} // namespace f2c::rp
#endif // FIELDS2COVER_ROUTE_PLANNING_SINGLE_CELL_SWATHS_ORDER_BASE_H_