Base class for blocks in spaces.
More...
#include <CRNAltoSpace.hpp>
|
| Block (const Element &el) |
| Constructor. More...
|
|
| Block (const Element &el, const Id &id_, int x, int y, int w, int h) |
| Constructor. More...
|
|
Base class for blocks in spaces.
- Author
- Yann LEYDIER
Definition at line 70 of file CRNAltoSpace.hpp.
Space::Block::Block |
( |
const Block & |
| ) |
|
|
delete |
Space::Block::Block |
( |
Block && |
| ) |
|
|
default |
virtual Space::Block::~Block |
( |
| ) |
|
|
inlineoverridevirtual |
Space::Block::Block |
( |
const Element & |
el | ) |
|
|
protected |
Space::Block::Block |
( |
const Element & |
el, |
|
|
const Id & |
id_, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
protected |
void Space::Block::AddStyle |
( |
const Id & |
styleid | ) |
|
Adds a reference to a style.
int Space::Block::GetHeight |
( |
| ) |
const |
Returns the height of the element.
int Space::Block::GetHPos |
( |
| ) |
const |
Returns the abscissa of the element.
const Id& Space::Block::GetId |
( |
| ) |
const |
|
inline |
Option<Id> Space::Block::GetNextId |
( |
| ) |
const |
Returns the id of the next block.
Option<double> Space::Block::GetRotation |
( |
| ) |
const |
Returns the rotation of the object, in degree, counterclockwise.
std::vector<Id> Space::Block::GetStyles |
( |
| ) |
const |
Returns the list of style references.
int Space::Block::GetVPos |
( |
| ) |
const |
Returns the ordinate of the element.
int Space::Block::GetWidth |
( |
| ) |
const |
Returns the width of the element.
void Space::Block::RemoveStyle |
( |
const Id & |
styleid | ) |
|
Removes a reference to a style.
void Space::Block::SetHeight |
( |
int |
i | ) |
|
Sets the height of the element.
void Space::Block::SetHPos |
( |
int |
i | ) |
|
Sets the abscissa of the element.
void Space::Block::SetVPos |
( |
int |
i | ) |
|
Sets the ordinate of the element.
void Space::Block::SetWidth |
( |
int |
i | ) |
|
Sets the width of the element.
The documentation for this class was generated from the following file: