Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
// outlineApproximation.h: interface for the outlineApproximation class.
Toshihiro Shimizu 890ddd
//
Toshihiro Shimizu 890ddd
//////////////////////////////////////////////////////////////////////
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#if !defined(OUTLINEAPPROXIMATION_H)
Toshihiro Shimizu 890ddd
#define OUTLINEAPPROXIMATION_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#if _MSC_VER > 1000
Toshihiro Shimizu 890ddd
#pragma once
Shinya Kitaoka 120a6e
#endif  // _MSC_VER > 1000
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include <vector></vector>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class TQuadratic;
Toshihiro Shimizu 890ddd
class TStroke;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
typedef std::pair<tquadratic *="" *,="" tquadratic=""> outlineEdge;</tquadratic>
Toshihiro Shimizu 890ddd
typedef std::vector<outlineedge> outlineBoundary;</outlineedge>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void drawOutline(const outlineBoundary &, double pixelSize);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void computeOutline(const TStroke *stroke, std::vector<tquadratic *=""> &quadArray,</tquadratic>
Shinya Kitaoka 120a6e
                    double error2)
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
/*
Toshihiro Shimizu 890ddd
ONLY FOT TEST
Toshihiro Shimizu 890ddd
class TThickQuadratic;
Toshihiro Shimizu 890ddd
class TSegment;
Shinya Kitaoka 120a6e
extern  TSegment  g_tangEnvelope_1;
Toshihiro Shimizu 890ddd
extern  TSegment  g_tangEnvelope_2;
Toshihiro Shimizu 890ddd
extern  std::vector<tquadratic>  g_testOutline;</tquadratic>
Toshihiro Shimizu 890ddd
TQuadratic  makeOutline( const TThickQuadratic* tq, int upOrDown );
Toshihiro Shimizu 890ddd
*/
Shinya Kitaoka 120a6e
#endif  // !defined(OUTLINEAPPROXIMATION_H)