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 | Friends | List of all members
Space::ComposedBlock Class Reference

A composed block in a space. More...

#include <CRNAltoSpace.hpp>

+ Inheritance diagram for Space::ComposedBlock:
+ Collaboration diagram for Space::ComposedBlock:

Public Member Functions

 ComposedBlock (const ComposedBlock &)=default
 
 ComposedBlock (ComposedBlock &&)=default
 
virtual ~ComposedBlock () override
 
ComposedBlockoperator= (const ComposedBlock &)=default
 
ComposedBlockoperator= (ComposedBlock &&)=default
 
Option< StringUTF8 > GetType () const
 Returns the type of block (table, advertisement…) More...
 
Option< StringUTF8 > GetFileId () const
 Returns a link to an image containing only this block. More...
 
std::vector< BlockPtrGetBlocks () const
 Returns the list of subblocks in the block. More...
 
const std::vector
< std::weak_ptr< TextBlock > > & 
GetTextBlocks () const
 Returns the list of text blocks in the block. More...
 
const std::vector
< std::weak_ptr< Illustration > > & 
GetIllustrations () const
 Returns the list of illustrations in the block. More...
 
const std::vector
< std::weak_ptr
< GraphicalElement > > & 
GetGraphicalElements () const
 Returns the list of graphical elements in the block. More...
 
const std::vector
< std::weak_ptr< ComposedBlock > > & 
GetComposedBlocks () const
 Returns the list of composed blocks in the block. More...
 
- Public Member Functions inherited from Space::Block
 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...
 

Friends

class Space
 

Additional Inherited Members

- Protected Member Functions inherited from Space::Block
 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 inherited from Space::Block
Id id
 

Detailed Description

A composed block in a space.

Author
Yann LEYDIER

Definition at line 212 of file CRNAltoSpace.hpp.

Constructor & Destructor Documentation

Space::ComposedBlock::ComposedBlock ( const ComposedBlock )
default
Space::ComposedBlock::ComposedBlock ( ComposedBlock &&  )
default
virtual Space::ComposedBlock::~ComposedBlock ( )
inlineoverridevirtual

Definition at line 217 of file CRNAltoSpace.hpp.

Member Function Documentation

std::vector<BlockPtr> Space::ComposedBlock::GetBlocks ( ) const
inline

Returns the list of subblocks in the block.

Definition at line 226 of file CRNAltoSpace.hpp.

const std::vector<std::weak_ptr<ComposedBlock> >& Space::ComposedBlock::GetComposedBlocks ( ) const
inline

Returns the list of composed blocks in the block.

Definition at line 234 of file CRNAltoSpace.hpp.

Option<StringUTF8> Space::ComposedBlock::GetFileId ( ) const

Returns a link to an image containing only this block.

const std::vector<std::weak_ptr<GraphicalElement> >& Space::ComposedBlock::GetGraphicalElements ( ) const
inline

Returns the list of graphical elements in the block.

Definition at line 232 of file CRNAltoSpace.hpp.

const std::vector<std::weak_ptr<Illustration> >& Space::ComposedBlock::GetIllustrations ( ) const
inline

Returns the list of illustrations in the block.

Definition at line 230 of file CRNAltoSpace.hpp.

const std::vector<std::weak_ptr<TextBlock> >& Space::ComposedBlock::GetTextBlocks ( ) const
inline

Returns the list of text blocks in the block.

Definition at line 228 of file CRNAltoSpace.hpp.

Option<StringUTF8> Space::ComposedBlock::GetType ( ) const

Returns the type of block (table, advertisement…)

ComposedBlock& Space::ComposedBlock::operator= ( const ComposedBlock )
default
ComposedBlock& Space::ComposedBlock::operator= ( ComposedBlock &&  )
default

Friends And Related Function Documentation

friend class Space
friend

Definition at line 246 of file CRNAltoSpace.hpp.


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