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/FITKAbsGeomTools.cpp

58 lines
1.4 KiB
C++

#include "FITKAbsGeomTools.h"
#include "FITKGeoInterfaceFactory.h"
namespace Interface
{
// 点查询。
//@{
FITKAbstractGeomPointTool* FITKAbstractGeomPointTool::createTool()
{
//获取注册的工具生成器
FITKAbstractGeomToolsCreator* c = Interface::FITKInterfaceGeometryFactory::getInstance()->getGeomToolsCreator();
if (c == nullptr) return nullptr;
//创建工具
return c->createPointTool();
}
bool FITKAbstractGeomPointTool::getXYZ(FITKAbsVirtualTopo* vtp, double* xyz)
{
return false;
}
bool FITKAbstractGeomPointTool::getXYZ(const int & id, double* xyz)
{
return false;
}
//@}
// 平面查询。
//@{
FITKAbstractGeomPlaneFaceTool* FITKAbstractGeomPlaneFaceTool::createTool()
{
//获取注册的工具生成器
FITKAbstractGeomToolsCreator* c = Interface::FITKInterfaceGeometryFactory::getInstance()->getGeomToolsCreator();
if (c == nullptr) return nullptr;
//创建工具
return c->createPlaneFaceTool();
}
//@}
FITKAbstractGeomToolsCreator::~FITKAbstractGeomToolsCreator()
{
}
FITKAbstractGeomPointTool* FITKAbstractGeomToolsCreator::createPointTool()
{
//错误值
return nullptr;
}
FITKAbstractGeomPlaneFaceTool* FITKAbstractGeomToolsCreator::createPlaneFaceTool()
{
//错误值
return nullptr;
}
}