#include "shapes.h"
#include <QColor>
#include <QVector4D>
#include <iostream>

void Cube::accept(Visitor &v) {
    v.visit(*this);
}

void Sphere::accept(Visitor &v) {
    v.visit(*this);
}

// ***

void Cube::setColor(QColor& c) {
	color = QColor(c);
}

SceneGroup* Cube::getParent() {
    return _parent;
}

void Cube::setParent(SceneGroup* c) {
    _parent = c;
}

QColor Cube::getColor(){
	return color;
};

void Cube::setType(int t) {
	this->type = t;
}

int Cube::getType(){
	return this->type;
};

void Sphere::setColor(QColor& c) {
    color = QColor(c);
}

QColor Sphere::getColor(){
    return color;
};

void Sphere::setType(int t) {
	this->type = t;
}

SceneGroup* Sphere::getParent() {
    return _parent;
}

void Sphere::setParent(SceneGroup* c) {
    _parent = c;
}

int Sphere::getType(){
	return this->type;
};
