tahoma2d/toonz/sources/include/ext/StrokeStatus.h

66 lines
1.4 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef STROKESTATUS_H
#define STROKESTATUS_H
/*****************************************************************************\
* *
* Author Fabrizio Morciano *
* *
\*****************************************************************************/
#include "tcommon.h"
#include "ext/CompositeStatus.h"
#undef DVAPI
#undef DVVAR
#ifdef TNZEXT_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
2016-06-15 18:43:10 +12:00
namespace ToonzExt {
class DVAPI StrokeStatus : public CompositeStatus {
// cached information
TStroke *stroke2change_;
// stroke number in vimage
unsigned int n_;
// parameter of selected stroke
double w_;
2016-09-06 01:20:21 +12:00
// length of selected stroke
2016-06-15 18:43:10 +12:00
double strokeLength_;
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
StrokeStatus();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
StrokeStatus(TStroke *stroke2change, unsigned int n, double w,
double strokeLength);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
virtual ~StrokeStatus();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void init();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
TStroke *getItself() const;
void setItself(TStroke *);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
double getW() const;
void setW(double w);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
unsigned int getId() const;
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void setId(unsigned int);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
double getLength() const;
void setLength(double l);
2016-03-19 06:57:51 +13:00
};
//---------------------------------------------------------------------------
}
#endif /* STROKESTATUS_H */