🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
FOVRectangular.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "FieldOfView.hpp"
24
25AST_NAMESPACE_BEGIN
26
28class AST_CORE_API FOVRectangular: public FieldOfView
29{
30public:
32 FOVRectangular() = default;
33
35 virtual ~FOVRectangular() = default;
36
39 virtual EFOVType getFOVType() const override { return EFOVType::eRectangular; }
40
43 virtual void accept(FieldOfViewVisitor& visitor) override { visitor.visit(*this); }
44
47 void setHorizontalHalfAngle(double angle) { horizontalHalfAngle_ = angle; }
48
51 double getHorizontalHalfAngle() const { return horizontalHalfAngle_; }
52
55 void setVerticalHalfAngle(double angle) { verticalHalfAngle_ = angle; }
56
59 double getVerticalHalfAngle() const { return verticalHalfAngle_; }
60
61private:
62 double horizontalHalfAngle_{0.0};
63 double verticalHalfAngle_{0.0};
64};
65
66AST_NAMESPACE_END
视场基类
矩形视场类
定义 FOVRectangular.hpp:29
FOVRectangular()=default
构造函数
virtual EFOVType getFOVType() const override
获取视场类型
定义 FOVRectangular.hpp:39
double getHorizontalHalfAngle() const
获取水平半角
定义 FOVRectangular.hpp:51
double getVerticalHalfAngle() const
获取垂直半角
定义 FOVRectangular.hpp:59
void setVerticalHalfAngle(double angle)
设置垂直半角
定义 FOVRectangular.hpp:55
virtual void accept(FieldOfViewVisitor &visitor) override
接受访问者
定义 FOVRectangular.hpp:43
virtual ~FOVRectangular()=default
析构函数
void setHorizontalHalfAngle(double angle)
设置水平半角
定义 FOVRectangular.hpp:47
定义 FieldOfViewVisitor.hpp:41
视场基类
定义 FieldOfView.hpp:43
EFOVType
视场类型枚举
定义 FieldOfView.hpp:32
@ eRectangular
矩形视场