tsp_cpp/snippets/Circle.h
trotFunky 71ce85cec4 Continuing vector graphics exercise
New classes :
 - DrawingElement (Base class for every other element)
 - Group : Groups DrawingElements together

Modified Circle to work with DrawingElement
Corrected a *maybe* failed vector copy in Polynomial.tpp
2019-05-16 01:16:19 +02:00

31 lines
513 B
C++

//
// Created by trotfunky on 07/05/19.
//
#ifndef SNIPPETS_CIRCLE_H
#define SNIPPETS_CIRCLE_H
#include <string>
#include <pugixml.hpp>
#include <SFML/Graphics.hpp>
#include "DrawingElement.h"
namespace xmlParser
{
class Circle : public DrawingElement
{
public:
Circle();
explicit Circle(const pugi::xml_node&);
void draw(sf::RenderWindow&) override;
int getR() const;
void setR(int newR);
private:
int r;
};
}
#endif //SNIPPETS_CIRCLE_H