GRAPHICS_BLOCK Class Reference

#include <pageblk.h>

Inheritance diagram for GRAPHICS_BLOCK:

PAGE_BLOCK List of all members.

Detailed Description

Class for dealing with graphics block.

Definition at line 258 of file pageblk.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

GRAPHICS_BLOCK::GRAPHICS_BLOCK (  )  [inline]

Definition at line 261 of file pageblk.h.

00261                      { 
00262     }                            //empty constructor

GRAPHICS_BLOCK::GRAPHICS_BLOCK ( ICOORDELT_LIST *  points,
BOOL8  backg[NUM_BACKGROUNDS],
INT8  foreg 
)

Init a BLAH, where BLAH is GRAPHICS_BLOCK.

Definition at line 707 of file pageblk.cpp.

References background, foreground, and BITS16::set_bit().

00707                                                                                                 :PAGE_BLOCK (points,
00708 PB_GRAPHICS) {
00709   int
00710     i;
00711 
00712   for (i = 0; i < NUM_BACKGROUNDS; i++)
00713     background.set_bit (i, backg[i]);
00714 
00715   foreground = foreg;
00716 }


Member Function Documentation

void GRAPHICS_BLOCK::de_serialise_asc ( FILE *  f  ) 

Convert BLAH from ascii file, where BLAH is GRAPHICS_BLOCK.

Definition at line 755 of file pageblk.cpp.

References background, de_serialise_INT32(), foreground, and BITS16::val.

00757                                        {
00758   ((PAGE_BLOCK *) this)->de_serialise_asc (f);
00759   background.val = de_serialise_INT32 (f);
00760   foreground = de_serialise_INT32 (f);
00761 }

GRAPHICS_BLOCK::make_serialise ( GRAPHICS_BLOCK   ) 

void GRAPHICS_BLOCK::set_attrs ( BOOL8  backg[NUM_BACKGROUNDS],
INT8  foreg 
)

Definition at line 720 of file pageblk.cpp.

References background, foreground, and BITS16::set_bit().

00720                                                                    {
00721   int i;
00722 
00723   for (i = 0; i < NUM_BACKGROUNDS; i++)
00724     background.set_bit (i, backg[i]);
00725 
00726   foreground = foreg;
00727 }

void GRAPHICS_BLOCK::show_attrs ( DEBUG_WIN debug  ) 

Print info about BLAH, where BLAH is GRAPHICS_BLOCK.

Definition at line 733 of file pageblk.cpp.

References background, blabel, f, foreground, G_START, and print_background().

00733                                             { 
00734   f->dprintf ("GRAPHICS BLOCK with attribute %s\n",
00735     blabel[G_START][foreground]);
00736   print_background(f, background); 
00737 }


Member Data Documentation

BITS16 GRAPHICS_BLOCK::background [private]

FIX:.

Definition at line 278 of file pageblk.h.

Referenced by de_serialise_asc(), GRAPHICS_BLOCK(), set_attrs(), and show_attrs().

INT8 GRAPHICS_BLOCK::foreground [private]

FIX:.

Definition at line 280 of file pageblk.h.

Referenced by de_serialise_asc(), GRAPHICS_BLOCK(), set_attrs(), and show_attrs().


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 19:49:31 2007 for Tesseract by  doxygen 1.5.1