progress on lab 5 part 2

This commit is contained in:
2022-05-03 11:53:11 -05:00
parent e381f5d7ca
commit 780c2bba3c
5 changed files with 192 additions and 15 deletions

View File

@@ -0,0 +1,35 @@
#ifndef image_h
#define image_h
/**
* @file image.h
* @author Trevor Barnes (barnestr@msoe.edu)
* @brief
* @version 1.0
* @date 2022-04-19
*
* @copyright Copyright (c) 2022
*
*/
#include <iostream>
#include "shape.h"
#include "x11context.h"
#include <vector>
using namespace std;
class Image{
public:
Image();
Image(const Image& from);
~Image();
Image& operator=(const Image& rhs);
void add(Shape* shape);
void draw(GraphicsContext* gc);
void out(std::ostream& os);
void in(std::istream& is);
void erase();
private:
vector<Shape*> shapes;
};
#endif