Owning sampled polyline for renderer-neutral runtime visualization adapters. 更多...
#include <SplinePath.h>
Public 成员函数 | |
| SplinePolyline (std::vector< std::vector< SplineSample > > chunks={}, bool closed=false) | |
| Construct from an owning sequence of sampled points. | |
| int | count () const noexcept |
| Return sampled point count. | |
| Result< SplineSample > | pointResult (int index) const |
| Return one point sample or a structured range error. | |
| int | chunkCount () const noexcept |
| Return disconnected polyline chunk count. | |
| int | chunkPointCount (int chunk) const noexcept |
| Return point count for one chunk, or zero for an invalid index. | |
| Result< SplineSample > | chunkPointResult (int chunk, int index) const |
| Return one point inside one disconnected chunk. | |
| bool | isClosed () const noexcept |
| Report whether presentation adapters should close the last-to-first edge. | |
详细描述
Owning sampled polyline for renderer-neutral runtime visualization adapters.
在文件 SplinePath.h 第 61 行定义.
构造及析构函数说明
◆ SplinePolyline()
|
inlineexplicit |
成员函数说明
◆ chunkCount()
|
inlinenoexcept |
◆ chunkPointCount()
|
noexcept |
Return point count for one chunk, or zero for an invalid index.
在文件 SplinePath.cpp 第 525 行定义.
引用了 size.
被这些函数引用 chunkPointResult().
◆ chunkPointResult()
| Result< SplineSample > eve::procgen::SplinePolyline::chunkPointResult | ( | int | chunk, |
| int | index | ||
| ) | const |
Return one point inside one disconnected chunk.
在文件 SplinePath.cpp 第 529 行定义.
引用了 chunkCount(), chunkPointCount(), eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::NotFound , 以及 eve::Result< T >::success().
◆ count()
|
noexcept |
Return sampled point count.
在文件 SplinePath.cpp 第 519 行定义.
◆ isClosed()
|
inlinenoexcept |
Report whether presentation adapters should close the last-to-first edge.
在文件 SplinePath.h 第 78 行定义.
◆ pointResult()
| Result< SplineSample > eve::procgen::SplinePolyline::pointResult | ( | int | index | ) | const |
Return one point sample or a structured range error.
在文件 SplinePath.cpp 第 537 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index , 以及 eve::NotFound.
该类的文档由以下文件生成:
- src/modules/procgen/spline/SplinePath.h
- src/modules/procgen/spline/SplinePath.cpp