[wadalabfont-kit] / jis2prim / Matchers.h  

View of /jis2prim/Matchers.h

Parent Directory | Revision Log
Revision: 1.5 - (download) (as text) (annotate)
Tue Aug 20 11:10:36 2002 UTC (21 years, 8 months ago) by ktanaka
Branch: MAIN
CVS Tags: SNAP-20040518, SNAP-20030702, SNAP-20030630, SNAP-20030624, HEAD
Changes since 1.4: +6 -170 lines
*** empty log message ***
#ifndef _MATCHERS_H
#define _MATCHERS_H

#include <vector>
#include <set>
/* Matchters */
#include "PatMatch.h"
#include "BitmapFont.h"

class MatchResult {
  friend ostream& operator<<(ostream &os,const MatchResult &mr);
 protected:
  int x,y;
  PatMatch pm;
  int penalty;
 public:
  MatchResult(int xx, int yy,const PatMatch& p,int penalty) :x(xx),y(yy),pm(p),penalty(penalty){}
  std::vector<pixel> getPixels() const;
};

class Matchers {
  friend ostream& operator<<(ostream &os,const Matchers &mt);
 protected:
  std::vector<PatMatch> pm;
 public:
  Matchers();
  std::vector<MatchResult> findMatch(const BitmapFont& bf) const;
  std::vector<pixel> notCovered(const BitmapFont& bf) const;
};
ostream& operator<<(ostream &os,const Matchers &mt);
ostream& operator<<(ostream &os,const MatchResult &mr);
#endif /* _MATCHERS_H */

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help