MVC  0.0.1
Открытые члены | Полный список членов класса
Класс Model

There is class of model of the graphic editor. Подробнее...

#include <model.h>

+ Граф наследования:Model:
+ Граф связей класса Model:

Открытые члены

 Model ()=default
 
 ~Model ()=default
 
void newModel () override
 Create new suite. Подробнее...
 
void saveModel () override
 Save suite. Подробнее...
 
void openModel (std::string &) override
 Open new suite. Подробнее...
 
void addPoint (const Point &) override
 Add Point to suite. Подробнее...
 
void addLine (const Point &, const Point &) override
 Add line to suite. Подробнее...
 
void addCircle (const Point &, const int &) override
 Add circle to suite. Подробнее...
 
void removeLast () override
 Removes last shape from suite. Подробнее...
 
void draw (std::shared_ptr< IPainter >) const override
 Draw all primitive from suite. Подробнее...
 
- Открытые члены унаследованные от IModel
virtual ~IModel ()=default
 
- Открытые члены унаследованные от Observable
 Observable ()=default
 
virtual ~Observable ()=default
 
void subscribe (IViewSptr in_observer) noexcept
 
void unsubscribe (IViewSptr in_observer) noexcept
 
void notifyUpdate () noexcept
 

Подробное описание

There is class of model of the graphic editor.

Конструктор(ы)

◆ Model()

Model::Model ( )
default

◆ ~Model()

Model::~Model ( )
default

Методы

◆ addCircle()

void Model::addCircle ( const Point location,
const int &  radius 
)
overridevirtual

Add circle to suite.

Аргументы
[in]Point,Point

Замещает IModel.

◆ addLine()

void Model::addLine ( const Point location,
const Point end_dot 
)
overridevirtual

Add line to suite.

Аргументы
[in]Point,Point

Замещает IModel.

◆ addPoint()

void Model::addPoint ( const Point location)
overridevirtual

Add Point to suite.

Аргументы
[in]Point

Замещает IModel.

◆ draw()

void Model::draw ( std::shared_ptr< IPainter painter) const
overridevirtual

Draw all primitive from suite.

Аргументы
[in]IPainter

Замещает IModel.

◆ newModel()

void Model::newModel ( )
overridevirtual

Create new suite.

Замещает IModel.

◆ openModel()

void Model::openModel ( std::string &  )
overridevirtual

Open new suite.

Аргументы
[in]file_path_name

Замещает IModel.

◆ removeLast()

void Model::removeLast ( )
overridevirtual

Removes last shape from suite.

Замещает IModel.

◆ saveModel()

void Model::saveModel ( )
overridevirtual

Save suite.

Замещает IModel.


Объявления и описания членов классов находятся в файлах: