VisionFlowPro/ShapeDrawer/DrawViewParams.h

42 lines
461 B
C
Raw Permalink Normal View History

2023-02-28 14:50:28 +08:00
#pragma once
#include <QString>
enum class ViewMode
{
tNone,
tTranslate,
tZoom,
tDrawing
};
enum class EShapeType
{
sNone,
sLine,
sRectangle1Add,
sRectangle2Add,
sPolygonAdd,
sFreeDrawAdd,
sRectangle1Div,
sRectangle2Div,
sPolygonDiv,
sFreeDrawDiv
};
enum class ShapeMode
{
mNone,
mAdd,
mDiv
};
struct ShapeDataStruct
{
QString name;
QVector<QPolygonF> shapePolygon;
QVector<EShapeType> shapeType;
QVector<ShapeMode> shapeMode;
};