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.
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @file FITKBoundaryActor.h
|
|
|
|
|
* @brief 边界范围actor,用于渲染对象的边界范围
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2024-05-05
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#ifndef __FITKBOUNDARYACTOR_H___
|
|
|
|
|
#define __FITKBOUNDARYACTOR_H___
|
|
|
|
|
|
|
|
|
|
class vtkActor;
|
|
|
|
|
class vtkUnstructuredGrid;
|
|
|
|
|
|
|
|
|
|
namespace Comp
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @brief 边界范围actor,用于渲染对象的边界范围
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2024-05-05
|
|
|
|
|
*/
|
|
|
|
|
class FITKBoundaryActor
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @brief Construct a new FITKBoundaryActor object
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2024-05-05
|
|
|
|
|
*/
|
|
|
|
|
explicit FITKBoundaryActor();
|
|
|
|
|
/**
|
|
|
|
|
* @brief Destroy the FITKBoundaryActor object
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2024-05-05
|
|
|
|
|
*/
|
|
|
|
|
virtual ~FITKBoundaryActor();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取边界范围actor
|
|
|
|
|
* @return vtkActor*
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2024-05-05
|
|
|
|
|
*/
|
|
|
|
|
vtkActor* getActor();
|
|
|
|
|
/**
|
|
|
|
|
* @brief 更新边界范围
|
|
|
|
|
* @param bound 6个分量 minx maxX minY maxY minZ maxZ
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2024-05-05
|
|
|
|
|
*/
|
|
|
|
|
void updateBoundary(double* bound);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 边界范围actor
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2024-05-05
|
|
|
|
|
*/
|
|
|
|
|
vtkActor* _boundaryActor{};
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|