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.
nmWTAI-Platform/Include/nmNum/nmSubWxs/nmVolumeSlicePipeline.h

26 lines
937 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef NMVOLUMESLICEPIPELINE_H
#define NMVOLUMESLICEPIPELINE_H
#include "nmSubWxs_global.h"
#include "nmVolumeData.h"
#include "nmVolumeSliceSettings.h"
class vtkPolyData;
/** @brief 单次切片计算入口,无窗口依赖;每次计算独占 Plane/Cutter,不连接预览平面。 */
class NM_SUB_WXS_EXPORT nmVolumeSlicePipeline
{
public:
/**
* @brief 从已发布体网格生成独立截面,不修改原始几何或属性数组。
* @param pOutput 仅成功时替换;零单元输出代表合法的无交集结果。
* @return 参数、VTK 计算或输出校验失败返回 false,并保持原输出引用。
*/
static bool build(const QSharedPointer<const nmVolumeData>& pData,
const nmVolumeSliceSettings& oSettings,
vtkSmartPointer<vtkPolyData>& pOutput,
QString* pError = nullptr);
};
#endif // NMVOLUMESLICEPIPELINE_H