44 std::vector<std::shared_ptr<figures::CanvasPrimitive>> elements;
void add_primitive_to_document(std::shared_ptr< figures::CanvasPrimitive > &primitive)
Definition: model.cpp:15
void remove_primitive_from_document(std::shared_ptr< figures::CanvasPrimitive > &primitive)
Definition: model.cpp:20
GraphicDocument()=default
std::vector< std::string > get_elements_representations() const
Definition: model.cpp:33
void load_document(const std::string &path)
Definition: model.cpp:10
void save_document(const std::string &path)
Definition: model.cpp:28