A fuzzy logic C++ library
Public Member Functions | Private Attributes
slifis_plot::GRID_CELL Class Reference

A table cell, identified by origin point and size. See GRID. More...

#include <grid_cell.hpp>

+ Collaboration diagram for slifis_plot::GRID_CELL:

List of all members.

Public Member Functions

 GRID_CELL (const GRID &t)
 We build a cell from a table, to share pointers on image and font.
void SetSize (int w, int h)
int GetW () const
int GetH () const
void SetPos (int x, int y)
GAPI_POINT GetPos () const
int GetX () const
int GetY () const
void Fill (GAPI_COLOR color)
 Fills the cell with given color.
void GC_DrawText (const std::string &txt, GAPI_COLOR text_color, EN_TEXT_POS_H=TEXT_POS_HC, EN_TEXT_POS_V=TEXT_POS_VC, EN_TEXT_ORIENTATION=EN_TXT_HORIZ)
 Draws txt in the cell, with given color text_color and alignement hpos and vpos.
void Print (FILE *)

Private Attributes

GAPI_POINT _org
int _width
int _height
GAPI_IMAGEp_im_cell
GAPI_FONTp_font_cell

Detailed Description

A table cell, identified by origin point and size. See GRID.


Constructor & Destructor Documentation

We build a cell from a table, to share pointers on image and font.

References slifis_plot::GRID::p_font_table, and slifis_plot::GRID::pp_im_table.


Member Function Documentation

void slifis_plot::GRID_CELL::SetSize ( int  w,
int  h 
) [inline]
int slifis_plot::GRID_CELL::GetW ( ) const [inline]
int slifis_plot::GRID_CELL::GetH ( ) const [inline]
void slifis_plot::GRID_CELL::SetPos ( int  x,
int  y 
) [inline]

References _org.

int slifis_plot::GRID_CELL::GetX ( ) const [inline]
int slifis_plot::GRID_CELL::GetY ( ) const [inline]
void slifis_plot::GRID_CELL::GC_DrawText ( const std::string &  txt,
GAPI_COLOR  text_color,
EN_TEXT_POS_H  hpos = TEXT_POS_HC,
EN_TEXT_POS_V  vpos = TEXT_POS_VC,
EN_TEXT_ORIENTATION  text_or = EN_TXT_HORIZ 
)
void slifis_plot::GRID_CELL::Print ( FILE *  f)

Member Data Documentation

Referenced by GetPos(), GetX(), GetY(), and SetPos().

Referenced by GetW(), and SetSize().

Referenced by GetH(), and SetSize().