xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
polygone.hpp
浏览该文件的文档.
1#pragma once
5
6namespace xcal::mobject {
7
9 : public ComposedMObject<Polygone, BaseTransformableMobject,
10 StrokeableMObject> {
12 private:
14
15 public:
16 Polygone() : points_() { register_properties(points_); }
17 template <typename... Args>
18 requires std::constructible_from<property::PositionList, Args...>
19 Polygone(Args&&... args)
20 : points_(std::make_unique<property::PositionList>(
21 std::forward<Args>(args)...)) {
22 register_properties(points_);
23 points_.closed() = true;
24 }
26 return points_.positions();
27 }
29 points_ = points;
30 }
31 ~Polygone() override = default;
32};
33
34} // namespace xcal::mobject
Polygone(Args &&... args)
Definition polygone.hpp:19
~Polygone() override=default
void set_points(const property::PositionList::data_t &points)
Definition polygone.hpp:28
const property::PositionList::data_t & points() const
Definition polygone.hpp:25
std::vector< __ItemType > data_t
const std::vector< __ItemType > & positions() const
const Proxy< bool_t > & closed() const
基础图形对象类
#define XCAL_MOBJECT_TYPE(type)
#define XCAL_API
Definition public.h:69