![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
GeoJSON Geometry オブジェクト More...
#include <GeoJSON.hpp>
Inherits s3d::GeoJSONBase.
Public Types | |
using | MonoState = int32 |
using | GeometryVariant = std::variant< MonoState, Vec2, Array< Vec2 >, LineString, Array< LineString >, Polygon, Array< Polygon >, Array< GeoJSONGeometry > > |
Public Member Functions | |
SIV3D_NODISCARD_CXX20 | GeoJSONGeometry ()=default |
デフォルトコンストラクタ More... | |
SIV3D_NODISCARD_CXX20 | GeoJSONGeometry (const JSON &object, FlipY flipY=FlipY::Yes) |
Geometry オブジェクトを作成します。 More... | |
template<class Type > | |
Type | get () const |
形状データを取得します。 More... | |
MultiPolygon | getPolygons () const |
形状データをもとに MultiPolygon を作成して返します。 More... | |
template<class Visitor > | |
void | visit (Visitor &&visitor) const |
図形を引数にして関数を呼び出します。 More... | |
![]() | |
SIV3D_NODISCARD_CXX20 | GeoJSONBase ()=default |
デフォルトコンストラクタ More... | |
SIV3D_NODISCARD_CXX20 | GeoJSONBase (const JSON &object) |
GeoJSON オブジェクトを作成します。 More... | |
const Array< double > & | getBBox () const noexcept |
バウンディングボックスデータを返します。 More... | |
GeoJSONType | getType () const noexcept |
GeoJSON type を返します。 More... | |
Friends | |
void | Formatter (FormatData &formatData, const GeoJSONGeometry &geometry) |
Additional Inherited Members | |
![]() | |
Array< double > | m_bbox |
バウンディングボックス More... | |
GeoJSONType | m_type = GeoJSONType::Feature |
GeoJSON type. More... | |
GeoJSON Geometry オブジェクト
using s3d::GeoJSONGeometry::GeometryVariant = std::variant< MonoState, Vec2, Array<Vec2>, LineString, Array<LineString>, Polygon, Array<Polygon>, Array<GeoJSONGeometry> > |
using s3d::GeoJSONGeometry::MonoState = int32 |
|
default |
デフォルトコンストラクタ
SIV3D_NODISCARD_CXX20 s3d::GeoJSONGeometry::GeoJSONGeometry | ( | const JSON & | object, |
FlipY | flipY = FlipY::Yes |
||
) |
Geometry オブジェクトを作成します。
object | JSON データ |
Type s3d::GeoJSONGeometry::get | ( | ) | const |
形状データを取得します。
Type | 形状データの型 |
MultiPolygon s3d::GeoJSONGeometry::getPolygons | ( | ) | const |
形状データをもとに MultiPolygon を作成して返します。
|
inline |
図形を引数にして関数を呼び出します。
Visitor | Visitor オブジェクトの型 |
visitor | Visitor オブジェクト |
|
friend |