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/FITKInterfaceModel/FITKAssInstanceTR.h

117 lines
3.4 KiB
C

/**
*
* @file FITKAssInstanceTR.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-29
*
*/
#ifndef _FITKINSTANCEASS_TR_H__
#define _FITKINSTANCEASS_TR_H__
#include "FITKAbstractAssInstance.h"
namespace Interface
{
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-22
*/
class FITKInerfaceModelAPI FITKAssemblyInstanceTR : public FITKAbstractAssInstance
{
FITKCLASS(Interface, FITKAssemblyInstanceTR);
public:
explicit FITKAssemblyInstanceTR() = default;
virtual ~FITKAssemblyInstanceTR() = default;
/**
* @brief
* @param[i] x x
* @param[i] y y
* @param[i] z z
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
void setTransform(const double x, const double y, const double z);
/**
* @brief
* @param[i] p1
* @param[i] p2
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
void setRotateAxis(double* p1, double* p2);
/**
* @brief
* @param[i] a
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
void setAngle(double a);
/**
* @brief
* @param[i] transform
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
void getTransfom(double* transform) const;
/**
* @brief 线
* @param[o] p1
* @param[o] p2
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
void getRotateAxis(double* p1, double* p2) const;
/**
* @brief
* @return double
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
double getAngle() const;
/**
* @brief
* @param[i] pointID ID
* @param[o] coor
* @param[i] modelIndex
* @return bool
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-04-19
*/
virtual bool getPointCoor(int pointID, double* coor, int modelIndex = 0) override;
private:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
double _trans[3] = { 0.0, 0.0, 0.0 };
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
double _rotate1[3] = { 0.0, 0.0, 0.0 };
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
double _rotate2[3] = { 0.0, 0.0, 0.0 };
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-25
*/
double _angle = 0.0;
};
}
#endif