🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
DetectorPointRelated.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "EventDetector.hpp"
25#include "AstCore/Point.hpp"
26
27AST_NAMESPACE_BEGIN
28
35class AST_CORE_API DetectorPointRelated : public EventDetector
36{
37public:
38 AST_OBJECT(DetectorPointRelated)
39
40 DetectorPointRelated() = default;
41 ~DetectorPointRelated() = default;
42public:
43 void setPointByName(StringView pointName);
44public:
45 Point* point() const { return point_.get(); }
46 void setPoint(Point* point) { point_ = point; }
47private:
48 WeakPtr<Point> point_;
49};
50
53AST_NAMESPACE_END
定义 DetectorPointRelated.hpp:36
事件检测基类 事件检测基类,用于检测事件是否发生。 参考orekit的EventDetector类
定义 EventDetector.hpp:38
定义 Point.hpp:38
弱引用指针
定义 WeakPtr.hpp:35