mirror of
https://github.com/ConjureETS/LOG750-LAB2.git
synced 2026-03-24 03:21:19 +00:00
30 lines
424 B
C++
30 lines
424 B
C++
#include "shapes.h"
|
|
#include <QColor>
|
|
#include <QVector4D>
|
|
|
|
void Cube::accept(Visitor &v) {
|
|
v.visit(*this);
|
|
}
|
|
|
|
void Sphere::accept(Visitor &v) {
|
|
v.visit(*this);
|
|
}
|
|
|
|
// ***
|
|
|
|
void Cube::setColor(QColor& c) {
|
|
color = QColor(c);
|
|
}
|
|
|
|
QColor Cube::getColor(){
|
|
return color;
|
|
};
|
|
|
|
void Sphere::setColor(QColor& c) {
|
|
color = QColor(c);
|
|
}
|
|
|
|
QColor Sphere::getColor(){
|
|
return color;
|
|
};
|