WEIRD_BLOCK Class Reference

#include <pageblk.h>

Inheritance diagram for WEIRD_BLOCK:

PAGE_BLOCK List of all members.

Detailed Description

Class for dealing with weird block.

Probably destined for all 'unclassified' blocks

Definition at line 351 of file pageblk.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

WEIRD_BLOCK::WEIRD_BLOCK (  )  [inline]

Definition at line 354 of file pageblk.h.

00354                   { 
00355     }                            //empty constructor

WEIRD_BLOCK::WEIRD_BLOCK ( ICOORDELT_LIST *  points,
INT32  id_no 
)

Set identity of BLAH, where BLAH is WEIRD_BLOCK.

Definition at line 879 of file pageblk.cpp.

References id_number.

00879                                                              :PAGE_BLOCK (points,
00880 PB_WEIRD) {
00881   id_number = id_no;
00882 }


Member Function Documentation

void WEIRD_BLOCK::de_serialise_asc ( FILE *  f  ) 

Convert BLAH from ascii file, where BLAH is WEIRD_BLOCK.

Definition at line 928 of file pageblk.cpp.

References de_serialise_INT32(), and id_number.

00930                                     {
00931   ((PAGE_BLOCK *) this)->de_serialise_asc (f);
00932   id_number = de_serialise_INT32 (f);
00933 }

INT32 WEIRD_BLOCK::id_no (  )  [inline]

Definition at line 368 of file pageblk.h.

00368                   { 
00369       return id_number;
00370     }

WEIRD_BLOCK::make_serialise ( WEIRD_BLOCK   ) 

void WEIRD_BLOCK::plot ( WINDOW  window,
COLOUR  colour 
)

Plot BLAH, where BLAH is WEIRD_BLOCK.

Definition at line 889 of file pageblk.cpp.

References id_number, and POLY_BLOCK::plot().

00889                                                    { 
00890   PAGE_BLOCK_IT c = this->child ();
00891 
00892   POLY_BLOCK::plot(window, colour, id_number); 
00893 
00894   if (!c.empty ())
00895     for (c.mark_cycle_pt (); !c.cycled_list (); c.forward ())
00896       c.data ()->plot (window, colour);
00897 }

void WEIRD_BLOCK::set_id ( INT32  id_no  ) 

Definition at line 901 of file pageblk.cpp.

References id_number.

00901                                     { 
00902   id_number = id_no;
00903 }

void WEIRD_BLOCK::set_id_no ( INT32  new_id  )  [inline]

Definition at line 362 of file pageblk.h.

00362                                  { 
00363       id_number = new_id;
00364     }

void WEIRD_BLOCK::show_attrs ( DEBUG_WIN debug  ) 

Print info about BLAH, where BLAH is WEIRD_BLOCK.

Definition at line 909 of file pageblk.cpp.

References f, and id_number.

00909                                          { 
00910   f->dprintf ("WEIRD BLOCK with id number %d\n", id_number);
00911 }


Member Data Documentation

INT32 WEIRD_BLOCK::id_number [private]

unique id

Definition at line 380 of file pageblk.h.

Referenced by de_serialise_asc(), plot(), set_id(), show_attrs(), and WEIRD_BLOCK().


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