libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Space::Block Class Reference

Base class for blocks in spaces. More...

#include <CRNAltoSpace.hpp>

+ Inheritance diagram for Space::Block:
+ Collaboration diagram for Space::Block:

Public Member Functions

 Block (const Block &)=delete
 
 Block (Block &&)=default
 
virtual ~Block () override
 
Blockoperator= (const Block &)=delete
 
Blockoperator= (Block &&)=default
 
const Id & GetId () const
 Returns the id of the element. More...
 
std::vector< Id > GetStyles () const
 Returns the list of style references. More...
 
void AddStyle (const Id &styleid)
 Adds a reference to a style. More...
 
void RemoveStyle (const Id &styleid)
 Removes a reference to a style. More...
 
int GetHeight () const
 Returns the height of the element. More...
 
void SetHeight (int i)
 Sets the height of the element. More...
 
int GetWidth () const
 Returns the width of the element. More...
 
void SetWidth (int i)
 Sets the width of the element. More...
 
int GetHPos () const
 Returns the abscissa of the element. More...
 
void SetHPos (int i)
 Sets the abscissa of the element. More...
 
int GetVPos () const
 Returns the ordinate of the element. More...
 
void SetVPos (int i)
 Sets the ordinate of the element. More...
 
Option< double > GetRotation () const
 Returns the rotation of the object, in degree, counterclockwise. More...
 
Option< Id > GetNextId () const
 Returns the id of the next block. More...
 

Protected Member Functions

 Block (const Element &el)
 Constructor. More...
 
 Block (const Element &el, const Id &id_, int x, int y, int w, int h)
 Constructor. More...
 

Protected Attributes

Id id
 

Detailed Description

Base class for blocks in spaces.

Author
Yann LEYDIER

Definition at line 70 of file CRNAltoSpace.hpp.

Constructor & Destructor Documentation

Space::Block::Block ( const Block )
delete
Space::Block::Block ( Block &&  )
default
virtual Space::Block::~Block ( )
inlineoverridevirtual

Definition at line 75 of file CRNAltoSpace.hpp.

Space::Block::Block ( const Element &  el)
protected

Constructor.

Space::Block::Block ( const Element &  el,
const Id &  id_,
int  x,
int  y,
int  w,
int  h 
)
protected

Constructor.

Member Function Documentation

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

Returns the id of the element.

Definition at line 80 of file CRNAltoSpace.hpp.

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.

Block& Space::Block::operator= ( const Block )
delete
Block& Space::Block::operator= ( Block &&  )
default
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.

Member Data Documentation

Id Space::Block::id
protected

Definition at line 116 of file CRNAltoSpace.hpp.


The documentation for this class was generated from the following file: