2017-12-21 12:20:57 +01:00
|
|
|
//
|
|
|
|
// Created by mpapa on 05.12.2017.
|
|
|
|
//
|
|
|
|
|
2017-12-21 12:43:31 +01:00
|
|
|
#pragma once
|
2017-12-21 12:20:57 +01:00
|
|
|
|
2017-12-21 12:43:31 +01:00
|
|
|
#include <cstdint>
|
2017-12-18 21:24:21 +01:00
|
|
|
#include "../functions/AbstractionLayers/Layer1/AbstractionLayer_1_Properties.h"
|
2017-12-20 22:05:04 +01:00
|
|
|
#include "../functions/AbstractionLayers/DestructionPower/DestructionPower_Properties.h"
|
2018-01-20 16:02:44 +01:00
|
|
|
#include "../functions/AbstractionLayers/Layer3_PoempelPosition/AbstractionLayer_PoempelPosition_Properties.h"
|
2018-01-25 22:14:00 +01:00
|
|
|
#include "../functions/AbstractionLayers/Layer_SURFFeatures/AbstractionLayer_SURFFeatures_Properties.h"
|
|
|
|
|
2017-12-21 12:20:57 +01:00
|
|
|
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)
|
2017-12-21 12:43:31 +01:00
|
|
|
{}
|
|
|
|
~Part() = default;
|
2017-11-17 22:10:36 +01:00
|
|
|
|
2017-12-18 21:24:21 +01:00
|
|
|
int32_t GetPartID () const
|
|
|
|
{
|
|
|
|
return m_partID;
|
|
|
|
}
|
2017-11-17 22:10:36 +01:00
|
|
|
|
2017-12-18 21:24:21 +01:00
|
|
|
void SetPartID(const int32_t partID)
|
|
|
|
{
|
|
|
|
m_partID = partID;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t GetNumOfRotations () const
|
|
|
|
{
|
|
|
|
return m_numOfRotations;
|
|
|
|
}
|
2017-12-06 16:25:13 +01:00
|
|
|
|
2017-12-18 21:24:21 +01:00
|
|
|
void SetNumOfRotations(const uint8_t numOfRotations)
|
|
|
|
{
|
|
|
|
m_numOfRotations = numOfRotations;
|
|
|
|
}
|
|
|
|
|
2017-12-23 10:11:07 +01:00
|
|
|
void print(){m_a1.print();}
|
|
|
|
|
2018-01-07 20:08:50 +01:00
|
|
|
bool set;
|
2017-12-23 10:11:07 +01:00
|
|
|
AbstractionLayer_1_Properties m_a1;
|
2018-01-20 16:02:44 +01:00
|
|
|
AbstractionLayer_PoempelPosition_Properties m_a3;
|
2018-01-25 22:14:00 +01:00
|
|
|
AbstractionLayer_SURFFeatures_Properties m_a4;
|
2017-12-18 21:24:21 +01:00
|
|
|
private:
|
|
|
|
int32_t m_partID;
|
|
|
|
uint8_t m_numOfRotations;
|
|
|
|
};
|
2017-12-21 12:20:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
class coor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
unsigned int col, row;
|
2017-12-21 12:43:31 +01:00
|
|
|
coor (unsigned int newcol,unsigned int newrow): col(newcol), row(newrow)
|
2017-12-21 12:20:57 +01:00
|
|
|
{}
|
|
|
|
};
|