LabelMe
src
shape.h
Go to the documentation of this file.
1
8
#ifndef SHAPE_H
9
#define SHAPE_H
10
#include<QString>
11
#include<QColor>
12
13
#include"
Namespace.h
"
14
18
class
My::Shape
{
19
public
:
20
26
enum
Type
{
Brush
,
Rectangle
,
Polygons
,
Circle
,
Curve
,
Rectangle3D
,
Brush3D
};
27
29
const
Type
type
;
30
32
QString
label
;
33
35
QColor
color
=QColor(100,255,0,100);
36
40
bool
isFill
=
false
;
41
43
bool
isHide
=
false
;
44
48
bool
isHover
=
false
;
49
50
Shape
(
Type
t);
51
52
virtual
~Shape
()=0;
53
};
54
#endif // SHAPE_H
My::Shape::Shape
Shape(Type t)
Definition:
shape.cpp:11
My::Shape::Brush
Definition:
shape.h:26
My::Shape::color
QColor color
默认标注颜色
Definition:
shape.h:35
My::Brush3D
代表画刷形状,用于3d分割标注,继承Shape3D
Definition:
Brush3D.h:14
My::Shape::Type
Type
标注形状的类型
Definition:
shape.h:26
My::Shape::~Shape
virtual ~Shape()=0
Definition:
shape.cpp:16
My::Shape
所有标注形状的基类
Definition:
shape.h:18
My::Shape::isFill
bool isFill
是否填充内部
Definition:
shape.h:40
My::Shape::type
const Type type
标注类型
Definition:
shape.h:29
My::Shape::Rectangle3D
Definition:
shape.h:26
Namespace.h
自定义组件的命名空间
My::Shape::Rectangle
Definition:
shape.h:26
My::Shape::Polygons
Definition:
shape.h:26
My::Shape::Curve
Definition:
shape.h:26
My::Shape::isHide
bool isHide
是否隐藏标注
Definition:
shape.h:43
My::Shape::isHover
bool isHover
是否悬浮
Definition:
shape.h:48
My::Shape::Circle
Definition:
shape.h:26
My::Shape::label
QString label
标注对应的标签文字
Definition:
shape.h:32
Generated by
1.8.16