LabelMe
Public Types | Public Member Functions | Public Attributes | List of all members
My::Shape Class Referenceabstract

所有标注形状的基类 More...

#include <shape.h>

Inheritance diagram for My::Shape:
My::Shape2D My::Shape3D My::Brush My::Circle My::Curve My::Polygons My::Rectangle My::Brush3D My::Rectangle3D

Public Types

enum  Type {
  Brush, Rectangle, Polygons, Circle,
  Curve, Rectangle3D, Brush3D
}
 标注形状的类型 More...
 

Public Member Functions

 Shape (Type t)
 
virtual ~Shape ()=0
 

Public Attributes

const Type type
 标注类型 More...
 
QString label
 标注对应的标签文字 More...
 
QColor color =QColor(100,255,0,100)
 默认标注颜色 More...
 
bool isFill =false
 是否填充内部 More...
 
bool isHide =false
 是否隐藏标注 More...
 
bool isHover =false
 是否悬浮 More...
 

Detailed Description

所有标注形状的基类

负责形状的绘制及形状的存储

Member Enumeration Documentation

◆ Type

标注形状的类型

Brush代表画刷形状,用于分割标注, Rectangle代表矩形形状,Polygons代表多边形形状,Circle代表圆形形状,Curve代表平滑曲线形状 Rectangle3D代表3d长方体形状,Brush3D代表3d画刷形状,用于3d分割标注

Enumerator
Brush 
Rectangle 
Polygons 
Circle 
Curve 
Rectangle3D 
Brush3D 

Constructor & Destructor Documentation

◆ Shape()

My::Shape::Shape ( Type  t)

◆ ~Shape()

My::Shape::~Shape ( )
pure virtual

Member Data Documentation

◆ color

QColor My::Shape::color =QColor(100,255,0,100)

默认标注颜色

◆ isFill

bool My::Shape::isFill =false

是否填充内部

当被选中时,isFill会变为true,填充标注形状的内部,便于用户交互

◆ isHide

bool My::Shape::isHide =false

是否隐藏标注

◆ isHover

bool My::Shape::isHover =false

是否悬浮

当前鼠标是否悬浮在标注内部,若悬浮在内部,则变为true,填充内部颜色,便于用户交互

◆ label

QString My::Shape::label

标注对应的标签文字

◆ type

const Type My::Shape::type

标注类型


The documentation for this class was generated from the following files: