2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_SKELETON_SIDE_H
|
|
|
|
#define DUST3D_SKELETON_SIDE_H
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
enum class SkeletonSide
|
|
|
|
{
|
|
|
|
None = 0,
|
|
|
|
Left,
|
|
|
|
Right
|
|
|
|
};
|
|
|
|
|
|
|
|
QString SkeletonSideToDispName(SkeletonSide side);
|
|
|
|
#define IMPL_SkeletonSideToDispName \
|
|
|
|
QString SkeletonSideToDispName(SkeletonSide side) \
|
|
|
|
{ \
|
|
|
|
switch (side) { \
|
|
|
|
case SkeletonSide::Left: \
|
|
|
|
return QObject::tr("Left"); \
|
|
|
|
case SkeletonSide::Right: \
|
|
|
|
return QObject::tr("Right"); \
|
|
|
|
case SkeletonSide::None: \
|
|
|
|
return ""; \
|
|
|
|
default: \
|
|
|
|
return ""; \
|
|
|
|
} \
|
|
|
|
}
|
2019-07-29 08:03:35 +00:00
|
|
|
QString SkeletonSideToString(SkeletonSide side);
|
|
|
|
#define IMPL_SkeletonSideToString \
|
|
|
|
QString SkeletonSideToString(SkeletonSide side) \
|
|
|
|
{ \
|
|
|
|
switch (side) { \
|
|
|
|
case SkeletonSide::Left: \
|
|
|
|
return "Left"; \
|
|
|
|
case SkeletonSide::Right: \
|
|
|
|
return "Right"; \
|
|
|
|
case SkeletonSide::None: \
|
|
|
|
return ""; \
|
|
|
|
default: \
|
|
|
|
return ""; \
|
|
|
|
} \
|
|
|
|
}
|
2019-06-17 12:49:08 +00:00
|
|
|
SkeletonSide SkeletonSideFromBoneName(const QString &boneName);
|
2018-10-25 00:19:38 +00:00
|
|
|
|
|
|
|
#endif
|