LabelMe
Public Member Functions | Public Attributes | List of all members
My::Command3D Class Reference

3d状态的命令栈类,用于实现撤销和重做功能,继承Command类 More...

#include <command3d.h>

Inheritance diagram for My::Command3D:
My::Command

Public Member Functions

virtual void logAdd (int index)
 记录添加标注 More...
 
virtual void logDelete (int index, int id)
 记录删除标注 More...
 
virtual void logMove (int index, float xoffset, float yoffset, int id=0)
 记录移动标注 More...
 
virtual void logChange (int index, QString s1, QString s2)
 记录更改标注 More...
 
virtual void undo ()
 撤销功能 More...
 
virtual void redo ()
 重做功能 More...
 
 ~Command3D ()
 
- Public Member Functions inherited from My::Command
virtual ~Command ()=0
 

Public Attributes

CentralWInit3Dmanager
 存储中心组件指针 More...
 
- Public Attributes inherited from My::Command
QStack< QString > undoCommands
 存储undo(撤销)命令栈 More...
 
QStack< QString > redoCommands
 存储redo(重做)命令栈 More...
 

Detailed Description

3d状态的命令栈类,用于实现撤销和重做功能,继承Command类

Constructor & Destructor Documentation

◆ ~Command3D()

My::Command3D::~Command3D ( )
inline

Member Function Documentation

◆ logAdd()

void My::Command3D::logAdd ( int  index)
virtual

记录添加标注

3d中心组件的记录添加

Reimplemented from My::Command.

◆ logChange()

void My::Command3D::logChange ( int  index,
QString  s1,
QString  s2 
)
virtual

记录更改标注

3d中心组件的记录改变

Reimplemented from My::Command.

◆ logDelete()

void My::Command3D::logDelete ( int  index,
int  id 
)
virtual

记录删除标注

3d中心组件的记录删除

Reimplemented from My::Command.

◆ logMove()

void My::Command3D::logMove ( int  index,
float  xoffset,
float  yoffset,
int  id = 0 
)
virtual

记录移动标注

3d中心组件的记录移动

Reimplemented from My::Command.

◆ redo()

void My::Command3D::redo ( )
virtual

重做功能

3d中心组件的重做动作

Reimplemented from My::Command.

◆ undo()

void My::Command3D::undo ( )
virtual

撤销功能

3d中心组件的撤销动作

Reimplemented from My::Command.

Member Data Documentation

◆ manager

CentralWInit3D* My::Command3D::manager

存储中心组件指针


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