OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::GeoJSONGeometry Class Reference

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...
 
- Public Member Functions inherited from s3d::GeoJSONBase
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

- Protected Attributes inherited from s3d::GeoJSONBase
Array< double > m_bbox
 バウンディングボックス More...
 
GeoJSONType m_type = GeoJSONType::Feature
 GeoJSON type. More...
 

Detailed Description

GeoJSON Geometry オブジェクト

https://tools.ietf.org/html/rfc7946#section-3.1

Member Typedef Documentation

◆ GeometryVariant

◆ MonoState

Constructor & Destructor Documentation

◆ GeoJSONGeometry() [1/2]

SIV3D_NODISCARD_CXX20 s3d::GeoJSONGeometry::GeoJSONGeometry ( )
default

デフォルトコンストラクタ

◆ GeoJSONGeometry() [2/2]

SIV3D_NODISCARD_CXX20 s3d::GeoJSONGeometry::GeoJSONGeometry ( const JSON object,
FlipY  flipY = FlipY::Yes 
)

Geometry オブジェクトを作成します。

Parameters
objectJSON データ

Member Function Documentation

◆ get()

template<class Type >
Type s3d::GeoJSONGeometry::get ( ) const

形状データを取得します。

Template Parameters
Type形状データの型
Returns
形状データ

◆ getPolygons()

MultiPolygon s3d::GeoJSONGeometry::getPolygons ( ) const

形状データをもとに MultiPolygon を作成して返します。

Returns
形状データをもとに作成した MultiPolygon

◆ visit()

template<class Visitor >
void s3d::GeoJSONGeometry::visit ( Visitor &&  visitor) const
inline

図形を引数にして関数を呼び出します。

Template Parameters
VisitorVisitor オブジェクトの型
Parameters
visitorVisitor オブジェクト

Friends And Related Function Documentation

◆ Formatter

void Formatter ( FormatData formatData,
const GeoJSONGeometry geometry 
)
friend

The documentation for this class was generated from the following file: