BIMHome v1.0.0
BIMHome接口文档说明
LineSegment.h
浏览该文件的文档.
1/************************************************************************
2* @file LineSegment.h
3*
4* @brief 三维直线段
5*
6* @details 三维直线段
7*
8* @author lirf
9*
10* @version 1.0
11*
12* @date 2025-6-7
13*
14* @license 北京华科软科技有限公司
15*
16*************************************************************************/
17
18#ifndef BIMHOMEBASE_LINESEGMENT_H
19#define BIMHOMEBASE_LINESEGMENT_H
20
21#include "Base/Math/Geometry/Curve.h"
22
23namespace Base
24{
25
26 //直线段
27 class BaseExport LineSegment :public Curve
28 {
30 public:
39 virtual Geometry* copy(void) const;
40
46
52
59
65 void setEndPoint(const Base::Vector3d& pt);
66 bool isClosed();
67 double getLength()const;
68
70 Base::Vector3d findPointbyRate(double rate /*= 0.5*/);
71
72 void Reverse();
73
74
75 private:
78
79 };
80}
81
82#endif
#define GEOMETRY_HEADER(_name_)
Definition Geometry.h:27
Definition Curve.h:27
Definition Geometry.h:81
Base::Vector3d getEndPoint() const
获取终点
Base::Vector3d getStartPoint() const
获取起点
void setEndPoint(const Base::Vector3d &pt)
设置终点
LineSegment(Base::Vector3d startPoint, Base::Vector3d endPoint)
创建三维直线段
Base::Vector3d mEndPoint
Definition LineSegment.h:77
Base::Vector3d findPointbyRate(double rate)
virtual Geometry * copy(void) const
Base::Vector3d mStartPoint
Definition LineSegment.h:76
void setStartPoint(const Base::Vector3d &pt)
设置起点
Base::Vector3d getMidPoint()
double getLength() const
Definition LineSegment.h:28
Definition BaseFigureFactory.h:24