You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/FITK_Interface/FITKInterfaceGeometry/FITKAbsGeoDelete.h

104 lines
3.0 KiB
C

/*****************************************************************//**
* @file FITKAbsGeoDelete.h
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*********************************************************************/
#ifndef FITKABSGEODELETE_H
#define FITKABSGEODELETE_H
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"
#include "FITKGeoEnum.h"
#include "FITKAbsGeoCommand.h"
#include "FITKInterfaceGeometryAPI.h"
namespace Interface
{
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-03
*/
class FITKInterfaceGeometryAPI FITKAbsGeoDelete : public Interface::FITKAbsGeoCommand
{
FITKCLASS(Interface, FITKAbsGeoDelete);
public:
/**
* @brief
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*/
FITKAbsGeoDelete() = default;
/**
* @brief []
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*/
virtual ~FITKAbsGeoDelete() = default;
/**
* @brief []
* @return
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*/
FITKGeoEnum::FITKGeometryComType getGeometryCommandType() override;
/**
* @brief [][]
* @return
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*/
virtual bool update() override;
/**
* @brief [][]
* @return
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*/
virtual bool undo() override;
/**
* @brief [][]
* @return
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*/
virtual bool redo() override;
/**
* @brief ID
* @param idID
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*/
void setDeleteCommandID(int id);
/**
* @brief ID
* @return ID
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*/
int getDeleteCommandID();
protected:
/**
* @brief ID
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-09-06
*/
int m_deletedCmdId = -1;
};
}
#endif // !FITKABSGEODELETE_H