🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
FieldOfViewConstraint.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AccessConstraint.hpp"
24#include "AstCore/FieldOfView.hpp"
25
26AST_NAMESPACE_BEGIN
27
28class Frame;
29
33class AST_CORE_API FieldOfViewConstraint : public AccessConstraint
34{
35public:
36 AST_OBJECT(FieldOfViewConstraint)
37
38 FieldOfViewConstraint() = default;
39 A_DISABLE_COPY(FieldOfViewConstraint);
40
45 FieldOfViewConstraint(Frame* frame, Point* target, FieldOfView* fov);
46
47 double evaluate(const TimePoint& time) const override;
48
49 void setFrame(Frame* f) { frame_ = f; }
50 Frame* frame() const { return frame_; }
51
52 void setTarget(Point* p) { target_ = p; }
53 Point* target() const { return target_; }
54
55 void setFieldOfView(FieldOfView* fov) { fov_ = fov; }
56 FieldOfView* fieldOfView() const { return fov_; }
57
58private:
59 Frame* frame_{};
60 Point* target_{};
61 FieldOfView* fov_{};
62};
63
64AST_NAMESPACE_END
访问约束抽象基类
访问约束抽象基类
定义 AccessConstraint.hpp:41
virtual double evaluate(const TimePoint &time) const =0
评估约束的特征值
视场约束
定义 FieldOfViewConstraint.hpp:34
视场基类
定义 FieldOfView.hpp:43
坐标系抽象基类
定义 Frame.hpp:62
点抽象基类
定义 Point.hpp:41
绝对时间点
定义 TimePoint.hpp:108