Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
// tellipticbrush.h: interface for the TEllipticBrush class.
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#if !defined(TELLIPTIC_BRUSH_H)
Toshihiro Shimizu 890ddd
#define TELLIPTIC_BRUSH_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifdef PER_VECCHIO_ELLIPTIC_BRUSH
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tbrush.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TVRENDER_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//=============================================================================
Toshihiro Shimizu 890ddd
// forward declaration
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class TStroke;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//=============================================================================
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
/*!
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
          |     /
Toshihiro Shimizu 890ddd
        __b__ / \  angle in degree
Shinya Kitaoka 120a6e
       /  |  \   |
Toshihiro Shimizu 890ddd
  ----|---o---a--|-- >
Toshihiro Shimizu 890ddd
       \__|__/
Toshihiro Shimizu 890ddd
          |
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
  N.B. Imp manages angle in radiant.
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
 */
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//=============================================================================
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DVAPI TEllipticBrush : public TBrush {
Shinya Kitaoka 120a6e
  struct Imp;
Shinya Kitaoka 120a6e
  Imp *m_imp;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  //  TEllipticBrush(double a = 1,double b = 1, double angleInDegree = 0);  //
Shinya Kitaoka 120a6e
  //  per brush ellittico
Shinya Kitaoka 120a6e
  TEllipticBrush();
Shinya Kitaoka 120a6e
  TEllipticBrush(const TEllipticBrush &brush);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  virtual ~TEllipticBrush();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void makeOutline(const TStroke &stroke, TStrokeOutline &outline,
Shinya Kitaoka 120a6e
                   const OutlineParameter ¶m);
Shinya Kitaoka 120a6e
  void draw();
Shinya Kitaoka 120a6e
  /*
Toshihiro Shimizu 890ddd
//  per brush ellittico
Shinya Kitaoka 120a6e
void setAngle(double angleInDegree);
Shinya Kitaoka 120a6e
double getAngle() const;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
double getSemiAxisA() const;
Shinya Kitaoka 120a6e
void setSemiAxisA(double);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
double getSemiAxisB() const;
Shinya Kitaoka 120a6e
void setSemiAxisB(double);
Toshihiro Shimizu 890ddd
*/
Shinya Kitaoka 120a6e
  TBrush *clone();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
private:
Shinya Kitaoka 120a6e
  // not implemented
Shinya Kitaoka 120a6e
  TEllipticBrush &operator=(const TEllipticBrush &brush);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
#endif  // PER_VECCHIO_ELLIPTIC_BRUSH
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
#endif  // !defined(TELLIPTIC_BRUSH_H)
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
// End Of File
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------