My Project
|
Contains loaded bricks. More...
#include "model/composite.h"
Public Member Functions | |
Composite () | |
~Composite () | |
void | add (Brick *obj) |
void | remove (int ID) |
virtual void | modificate (Modification *modification, Vertex *center) override |
void | clear () |
![]() | |
virtual bool | isVertex () |
Public Attributes | |
vector< Brick * > | objects |
![]() | |
int | ID |
Contains loaded bricks.
Array of bricks. Interface for add/delete/modificate any of bricks.
Definition at line 23 of file composite.h.
Composite::Composite | ( | ) |
Empty constructor. Initialise ID with zero.
Definition at line 5 of file composite.cpp.
Composite::~Composite | ( | ) |
Destructor. Clears objects array and free memory.
Definition at line 10 of file composite.cpp.
void Composite::add | ( | Brick * | obj | ) |
Add brick into array
[in] | obj | Brick to add |
Definition at line 15 of file composite.cpp.
void Composite::clear | ( | ) |
Clears objects array and free memory.
Definition at line 46 of file composite.cpp.
|
overridevirtual |
Modificate brick in array
[in] | modiffication | Modification object |
Implements BaseObject.
Definition at line 25 of file composite.cpp.
void Composite::remove | ( | int | ID | ) |
Remove brick with user`s ID
[in] | ID | ID of brick to remove |
Definition at line 33 of file composite.cpp.
vector<Brick*> Composite::objects |
Array of bricks
Definition at line 59 of file composite.h.