Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef STROKESTATUS_H
Toshihiro Shimizu 890ddd
#define STROKESTATUS_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/*****************************************************************************\
Toshihiro Shimizu 890ddd
*                                                                             *
Toshihiro Shimizu 890ddd
*                           Author Fabrizio Morciano                          *
Toshihiro Shimizu 890ddd
*                                                                             *
Toshihiro Shimizu 890ddd
\*****************************************************************************/
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tcommon.h"
Toshihiro Shimizu 890ddd
#include "ext/CompositeStatus.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TNZEXT_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
Shinya Kitaoka 120a6e
namespace ToonzExt {
Shinya Kitaoka 120a6e
class DVAPI StrokeStatus : public CompositeStatus {
Shinya Kitaoka 120a6e
  // cached information
Shinya Kitaoka 120a6e
  TStroke *stroke2change_;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  // stroke number in vimage
Shinya Kitaoka 120a6e
  unsigned int n_;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  // parameter of selected stroke
Shinya Kitaoka 120a6e
  double w_;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  // lenght of selected stroke
Shinya Kitaoka 120a6e
  double strokeLength_;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  StrokeStatus();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  StrokeStatus(TStroke *stroke2change, unsigned int n, double w,
Shinya Kitaoka 120a6e
               double strokeLength);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  virtual ~StrokeStatus();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void init();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  TStroke *getItself() const;
Shinya Kitaoka 120a6e
  void setItself(TStroke *);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  double getW() const;
Shinya Kitaoka 120a6e
  void setW(double w);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  unsigned int getId() const;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void setId(unsigned int);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  double getLength() const;
Shinya Kitaoka 120a6e
  void setLength(double l);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//---------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
#endif /* STROKESTATUS_H */