PuzzleSolver/Source/header/input.h

64 lines
1.7 KiB
C
Raw Permalink Normal View History

//
// Created by mpapa on 05.12.2017.
//
#pragma once
#include <cstdint>
#include "../functions/AbstractionLayers/Layer1/AbstractionLayer_1_Properties.h"
#include "../functions/AbstractionLayers/DestructionPower/DestructionPower_Properties.h"
#include "../functions/AbstractionLayers/Layer3_PoempelPosition/AbstractionLayer_PoempelPosition_Properties.h"
2018-01-27 16:27:06 +01:00
#include "../functions/AbstractionLayers/Layer_ColorMatching/AbstractionLayer_ColorMatching_Properties.h"
2018-01-25 22:14:00 +01:00
#include "../functions/AbstractionLayers/Layer_SURFFeatures/AbstractionLayer_SURFFeatures_Properties.h"
2018-01-30 18:45:54 +01:00
#include "../functions/AbstractionLayers/Layer2_KantenLaenge/AbstractionLayer_KantenLaenge_Properties.h"
class LayerContainer;
2017-11-17 22:10:36 +01:00
class Part
{
public:
2018-01-07 20:08:50 +01:00
Part() : m_partID(0), m_numOfRotations(0), set(false)
{}
~Part() = default;
2017-11-17 22:10:36 +01:00
int32_t GetPartID () const
{
return m_partID;
}
2017-11-17 22:10:36 +01:00
void SetPartID(const int32_t partID)
{
m_partID = partID;
}
uint8_t GetNumOfRotations () const
{
return m_numOfRotations;
}
void SetNumOfRotations(const uint8_t numOfRotations)
{
m_numOfRotations = numOfRotations;
}
void print(){m_a1.print();}
2018-01-07 20:08:50 +01:00
bool set;
AbstractionLayer_1_Properties m_a1;
AbstractionLayer_PoempelPosition_Properties m_a3;
2018-01-25 22:14:00 +01:00
AbstractionLayer_SURFFeatures_Properties m_a4;
2018-01-27 16:27:06 +01:00
AbstractionLayer_ColorMatching_Properties m_acm;
2018-01-30 18:45:54 +01:00
AbstractionLayer_KantenLaenge_Properties m_a2;
private:
int32_t m_partID;
uint8_t m_numOfRotations;
};
class coor
{
public:
unsigned int col, row;
coor (unsigned int newcol,unsigned int newrow): col(newcol), row(newrow)
{}
};