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

57 lines
1.1 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 DESIGNER_H
#define DESIGNER_H
/**
* @author Fabrizio Morciano <fabrizio.morciano@gmail.com>
*/
#include "tcommon.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 {
2016-03-19 06:57:51 +13:00
class SmoothDeformation;
class CornerDeformation;
class StraightCornerDeformation;
class StrokeDeformation;
class Selector;
/**
* @brief This class is a visitor to manage properly Draw method.
*/
2016-06-15 18:43:10 +12:00
class DVAPI Designer {
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
Designer();
virtual ~Designer();
/**
*/
virtual void draw(SmoothDeformation *);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
/**
*/
virtual void draw(CornerDeformation *);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
virtual void draw(StraightCornerDeformation *);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
virtual void draw(StrokeDeformation *);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
virtual void draw(Selector *);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
double getPixelSize2() const;
2016-03-19 06:57:51 +13:00
};
}
2016-06-15 18:43:10 +12:00
#endif // !defined(DESIGNER_H)
2016-03-19 06:57:51 +13:00
//-----------------------------------------------------------------------------
// End Of File
//-----------------------------------------------------------------------------