tahoma2d/toonz/sources/toonzlib/cleanupcommon.h

25 lines
480 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef CLEANUPCOMMON_INCLUDED
#define CLEANUPCOMMON_INCLUDED
#include "texception.h"
// unit conversion
inline double inToPixel(double val, double dpi) { return val * dpi; }
2016-06-15 18:43:10 +12:00
inline double mmToPixel(double val, double dpi) {
return (val * dpi) * (1.0 / 25.4);
}
2016-03-19 06:57:51 +13:00
class TCleanupException final : public TException {
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
TCleanupException(const char *msg) : TException(msg) {}
~TCleanupException() {}
2016-03-19 06:57:51 +13:00
};
#ifndef MAX_DOT
#define MAX_DOT 500
#endif
#endif