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/FITKInterfacePhysics/FITKInteractionLocation.h

147 lines
4.3 KiB
C

/**
*
* @file FITKInteractionLocation.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-30
*
*/
#ifndef __FITKINTERACTION_LOCATION_H__
#define __FITKINTERACTION_LOCATION_H__
#include "FITKInterfacePhysicsAPI.h"
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"
#include <QList>
namespace Interface
{
class FITKBoundaryLocation;
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-30
*/
class FITKInterfacePhysicsAPI FITKInteractionLocation : public Core::FITKAbstractNDataObject
{
public:
/**
* @brief Construct a new FITKInteractionLocation object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-30
*/
explicit FITKInteractionLocation();
/**
* @brief Destroy the FITKInteractionLocation object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-30
*/
virtual ~FITKInteractionLocation();
/**
* @brief
* @return FITKBoundaryLocation*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-30
*/
FITKBoundaryLocation* getFirstLocation();
/**
* @brief
* @return FITKBoundaryLocation*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-30
*/
FITKBoundaryLocation* getSecondLocation();
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-30
*/
void swap();
/**
* @brief index
* @param[i] index
* @return FITKBoundaryLocation*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-05-03
*/
FITKBoundaryLocation* getLocationAt(const int index);
/**
* @brief
* @return int
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-05-03
*/
int getLocationCount() const;
/**
* @brief obj
* @param[i] obj
* @return true
* @return false
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-05-03
*/
bool copy(Core::FITKAbstractDataObject* obj) override;
/**
* @brief index
* @param[i] index
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-05-16
*/
void removeLocationAt(int index);
/**
* @brief
* @param[i] indexs
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-05-16
*/
void removeLocationAt(QList<int> indexs);
/**
* @brief
* @param[i] index1
* @param[i] index2
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-05-16
*/
void removeLocationAt(int index1, int index2);
/**
* @brief
* @param[i] loc
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-05-16
*/
void removeLocation(FITKBoundaryLocation* loc);
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-05-16
*/
void removeLastLocation();
/**
* @brief
* @param[i] indexs
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-05-22
*/
void setLocationInvalid(const int index);
private:
/**
* @brief
* @param[i] nize
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-05-03
*/
void resize(const int nize);
protected:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-05-03
*/
QList<FITKBoundaryLocation*> _locations{};
};
}
#endif // ifndef