[wadalabfont-kit] / jis2prim / PatMatch.h  

View of /jis2prim/PatMatch.h

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

#include <string>
#include <iostream>
#include "BitmapFont.h"
#include "Assumption.h"
#include <vector>

/* @ : 黒 */
/* . : 白 */
/* else(?) : どちらでも */
class PatMatch{
  friend std::ostream& operator<<(std::ostream &os,const PatMatch &pm);
 protected:
  int width, height;
  std::string pat;
  Assumption assumption;
 public:
  PatMatch(int w,int h,std::string s,const Assumption &as); 
  PatMatch(int w,int h,std::string s, const SimpleAssumption &sa); 
  int get(int x,int y) const;
#if 0
  bool isMatch(const BitmapFont& bf, int x, int y) const;
#endif
  int matchPenalty(const BitmapFont& bf, int x, int y) const;
  std::vector<pixel> getPixels(int x, int y) const;
};
std::ostream& operator<<(std::ostream &os,const PatMatch &pm);
#endif /* _PAT_MATCH_H */

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help