Tesseract  3.02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EDGEPT Struct Reference

#include <blobs.h>

Public Member Functions

 EDGEPT ()
 
 EDGEPT (const EDGEPT &src)
 
EDGEPToperator= (const EDGEPT &src)
 
void CopyFrom (const EDGEPT &src)
 
void Hide ()
 
void Reveal ()
 
bool IsHidden () const
 

Public Attributes

TPOINT pos
 
VECTOR vec
 
char flags [EDGEPTFLAGS]
 
EDGEPTnext
 
EDGEPTprev
 

Detailed Description

Definition at line 72 of file blobs.h.

Constructor & Destructor Documentation

EDGEPT::EDGEPT ( )
inline

Definition at line 73 of file blobs.h.

73  : next(NULL), prev(NULL) {
74  memset(flags, 0, EDGEPTFLAGS * sizeof(flags[0]));
75  }
EDGEPT * next
Definition: blobs.h:106
EDGEPT * prev
Definition: blobs.h:107
#define NULL
Definition: host.h:144
#define EDGEPTFLAGS
Definition: blobs.h:45
char flags[EDGEPTFLAGS]
Definition: blobs.h:105
EDGEPT::EDGEPT ( const EDGEPT src)
inline

Definition at line 76 of file blobs.h.

76  : next(NULL), prev(NULL) {
77  CopyFrom(src);
78  }
void CopyFrom(const EDGEPT &src)
Definition: blobs.h:84
EDGEPT * next
Definition: blobs.h:106
EDGEPT * prev
Definition: blobs.h:107
#define NULL
Definition: host.h:144

Member Function Documentation

void EDGEPT::CopyFrom ( const EDGEPT src)
inline

Definition at line 84 of file blobs.h.

84  {
85  pos = src.pos;
86  vec = src.vec;
87  memcpy(flags, src.flags, EDGEPTFLAGS * sizeof(flags[0]));
88  }
VECTOR vec
Definition: blobs.h:101
TPOINT pos
Definition: blobs.h:100
#define EDGEPTFLAGS
Definition: blobs.h:45
char flags[EDGEPTFLAGS]
Definition: blobs.h:105
void EDGEPT::Hide ( )
inline

Definition at line 90 of file blobs.h.

90  {
91  flags[0] = true;
92  }
char flags[EDGEPTFLAGS]
Definition: blobs.h:105
bool EDGEPT::IsHidden ( ) const
inline

Definition at line 96 of file blobs.h.

96  {
97  return flags[0] != 0;
98  }
char flags[EDGEPTFLAGS]
Definition: blobs.h:105
EDGEPT& EDGEPT::operator= ( const EDGEPT src)
inline

Definition at line 79 of file blobs.h.

79  {
80  CopyFrom(src);
81  return *this;
82  }
void CopyFrom(const EDGEPT &src)
Definition: blobs.h:84
void EDGEPT::Reveal ( )
inline

Definition at line 93 of file blobs.h.

93  {
94  flags[0] = false;
95  }
char flags[EDGEPTFLAGS]
Definition: blobs.h:105

Member Data Documentation

char EDGEPT::flags[EDGEPTFLAGS]

Definition at line 105 of file blobs.h.

EDGEPT* EDGEPT::next

Definition at line 106 of file blobs.h.

TPOINT EDGEPT::pos

Definition at line 100 of file blobs.h.

EDGEPT* EDGEPT::prev

Definition at line 107 of file blobs.h.

VECTOR EDGEPT::vec

Definition at line 101 of file blobs.h.


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