xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
path.hpp
浏览该文件的文档.
1#pragma once
2#include <xcal/public.h>
3
7
8namespace xcal::mobject {
9
11 : public ComposedMObject<Path, BaseTransformableMobject, StrokeableMObject,
12 FillableMObject> {
14 public:
16 using data_t = std::vector<vec>;
17
18 private:
20
21 public:
22 Path() : Path(property::PositionList::data_t(), false) {}
24 : Path(list, false) {}
26 : points_(list, closed) {}
27
28 const property::PositionList& points() const { return points_; }
30 points_ = points;
31 }
32 ~Path() override = default;
33 Path(const Path&) = delete;
34 Path(Path&&) = delete;
35 Path& operator=(const Path&) = delete;
36 Path& operator=(Path&&) = delete;
37};
38} // namespace xcal::mobject
void set_points(const property::PositionList::data_t &points)
Definition path.hpp:29
Path(Path &&)=delete
std::vector< vec > data_t
Definition path.hpp:16
~Path() override=default
Path(const property::PositionList::data_t &list)
Definition path.hpp:23
Path & operator=(const Path &)=delete
Path & operator=(Path &&)=delete
Path(const Path &)=delete
const property::PositionList & points() const
Definition path.hpp:28
Path(const property::PositionList::data_t &list, bool_t closed)
Definition path.hpp:25
std::vector< __ItemType > data_t
Vector class template
Definition vec.hpp:206
基础图形对象类
#define XCAL_MOBJECT_TYPE(type)
bool bool_t
Definition public.h:28
#define XCAL_API
Definition public.h:69