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.
42 lines
896 B
C++
42 lines
896 B
C++
#include "FITKAbsGeoModelSphere.h"
|
|
#include "FITK_Interface/FITKInterfaceModel/FITKAbstractModel.h"
|
|
|
|
namespace Interface
|
|
{
|
|
|
|
FITKAbsGeoModelSphere::~FITKAbsGeoModelSphere()
|
|
{
|
|
|
|
}
|
|
|
|
void FITKAbsGeoModelSphere::setLocation(double* p1)
|
|
{
|
|
//圆心坐标
|
|
if (p1 == nullptr) return;
|
|
FITKAbstractModel::CopyArray(p1, _location, 3);
|
|
}
|
|
|
|
void FITKAbsGeoModelSphere::getLocation(double* p1)
|
|
{
|
|
//圆心坐标
|
|
if (p1 == nullptr) return;
|
|
FITKAbstractModel::CopyArray( _location, p1, 3);
|
|
}
|
|
|
|
void FITKAbsGeoModelSphere::setRadius(double r)
|
|
{
|
|
_radius = r;
|
|
}
|
|
|
|
double FITKAbsGeoModelSphere::getRadius() const
|
|
{
|
|
return _radius;
|
|
}
|
|
|
|
FITKGeoEnum::FITKGeometryComType FITKAbsGeoModelSphere::getGeometryCommandType()
|
|
{
|
|
//创建球体
|
|
return FITKGeoEnum::FGTSphere;
|
|
}
|
|
|
|
} |