/*
* This file is part of project OpenEmbroidery. It's copyrighted by
* the contributors recorded in the version control history of the file.
* Original project location https://code.electrolab.fr/openEmbroidery/openEmbroidery_software
*
* SPDX-License-Identifier: CECILL-2.1
* License-Filename: Licence_CeCILL_V2.1-en.txt
*/

#pragma once

#include <string>
#include <vector>
#include <list>
#include "OE_utils.h"

namespace Pakal { class  Archive; }

class OE_pattern
{
	public:
		std::vector<vector_2d> pts;
		float defaultOffset;

		OE_pattern();
		OE_pattern(std::vector<vector_2d> _pts, float _defaultOffset, bool _endPoints, std::string _name);

		void persist(Pakal::Archive* archive);

		static std::list<OE_pattern*> createStandardPatterns();

	private:
		bool endPoints;
		std::string name;
};

