WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
TemporalGeometry Class Reference

#include <webcface/components.h>

Inheritance diagram for TemporalGeometry:
[legend]
Collaboration diagram for TemporalGeometry:
[legend]

Public Member Functions

 TemporalGeometry (GeometryType type, std::vector< double > &&properties)
 
TemporalComponentid (std::string_view id) &
 idを設定
 
TemporalComponent && id (std::string_view id) &&
 
TemporalComponentid (std::wstring_view id) &
 idを設定(wstring)
 
TemporalComponent && id (std::wstring_view id) &&
 
TemporalComponentonClick (const Func &func) &
 クリック時に実行される関数を設定 (Viewまたは2D, Funcオブジェクト)
 
TemporalComponent && onClick (const Func &func) &&
 
TemporalComponentonClick (const FuncListener &func) &
 クリック時に実行される関数を設定 (Viewまたは2D, FuncListener)
 
TemporalComponent && onClick (const FuncListener &func) &&
 
TemporalComponentonClick (T func) &
 クリック時に実行される関数を設定 (Viewまたは2D)
 
TemporalComponent && onClick (T func) &&
 
TemporalComponentorigin (const Transform &origin) &
 要素の移動 (2Dまたは3D)
 
TemporalComponent && origin (const Transform &origin) &&
 
TemporalComponentcolor (ViewColor c) &
 
 
TemporalComponent && color (ViewColor c) &&
 
TemporalComponenttext (std::string_view str) &
 表示する文字列 (View, Canvas2D)
 
TemporalComponent && text (std::string_view str) &&
 
TemporalComponenttext (std::wstring_view str) &
 表示する文字列(wstring) (View, Canvas2D)
 
TemporalComponent && text (std::wstring_view str) &&
 
TemporalComponenttextColor (ViewColor c) &
 文字色 (Viewまたは2D)
 
TemporalComponent && textColor (ViewColor c) &&
 
TemporalComponentfillColor (ViewColor c) &
 背景色 (Viewまたは2D)
 
TemporalComponent && fillColor (ViewColor c) &&
 
TemporalComponentbgColor (ViewColor c) &
 背景色 (Viewまたは2D)
 
TemporalComponent && bgColor (ViewColor c) &&
 
TemporalComponentstrokeWidth (double s) &
 線の太さ (2Dのみ)
 
TemporalComponent && strokeWidth (double s) &&
 
TemporalComponenttextSize (double s) &
 文字の大きさ (2Dのみ)
 
TemporalComponent && textSize (double s) &&
 
template<typename GeometryDerived , std::enable_if_t< std::is_constructible_v< GeometryDerived, Geometry & >, std::nullptr_t > = nullptr>
GeometryDerived as () const
 各種Geometry型に変換
 
bool operator== (const Geometry &other) const
 
bool operator!= (const Geometry &other) const
 

Public Attributes

TemporalViewComponent component_v
 
TemporalCanvas2DComponent component_2d
 
TemporalCanvas3DComponent component_3d
 
GeometryType type
 
std::vector< double > properties
 

Constructor & Destructor Documentation

◆ TemporalGeometry()

TemporalGeometry ( GeometryType  type,
std::vector< double > &&  properties 
)
inline

Member Function Documentation

◆ as()

template<typename GeometryDerived , std::enable_if_t< std::is_constructible_v< GeometryDerived, Geometry & >, std::nullptr_t > = nullptr>
GeometryDerived as ( ) const
inlineinherited

各種Geometry型に変換

as<Line>(), as<Plane>() などとしてそれぞれのgeometry型のプロパティを取得する。

◆ bgColor() [1/2]

TemporalComponent & bgColor ( ViewColor  c) &
inlineinherited

背景色 (Viewまたは2D)

◆ bgColor() [2/2]

TemporalComponent && bgColor ( ViewColor  c) &&
inlineinherited
Since
ver2.5

◆ color() [1/2]

TemporalComponent & color ( ViewColor  c) &
inlineinherited

Viewの要素では textColor として設定される

◆ color() [2/2]

TemporalComponent && color ( ViewColor  c) &&
inlineinherited
Since
ver2.5

◆ fillColor() [1/2]

TemporalComponent & fillColor ( ViewColor  c) &
inlineinherited

背景色 (Viewまたは2D)

◆ fillColor() [2/2]

TemporalComponent && fillColor ( ViewColor  c) &&
inlineinherited
Since
ver2.5

◆ id() [1/4]

TemporalComponent & id ( std::string_view  id) &
inlineinherited

idを設定

Since
ver2.5

◆ id() [2/4]

TemporalComponent && id ( std::string_view  id) &&
inlineinherited
Since
ver2.5

◆ id() [3/4]

TemporalComponent & id ( std::wstring_view  id) &
inlineinherited

idを設定(wstring)

Since
ver2.5

◆ id() [4/4]

TemporalComponent && id ( std::wstring_view  id) &&
inlineinherited
Since
ver2.5

◆ onClick() [1/6]

TemporalComponent & onClick ( const Func func) &
inlineinherited

クリック時に実行される関数を設定 (Viewまたは2D, Funcオブジェクト)

Since
ver2.5

引数については ViewComponent::onClick(), Canvas2DComponent::onClick() を参照

◆ onClick() [2/6]

TemporalComponent && onClick ( const Func func) &&
inlineinherited
Since
ver2.5

◆ onClick() [3/6]

TemporalComponent & onClick ( const FuncListener func) &
inlineinherited

クリック時に実行される関数を設定 (Viewまたは2D, FuncListener)

Since
ver2.5

引数については ViewComponent::onClick(), Canvas2DComponent::onClick() を参照

◆ onClick() [4/6]

TemporalComponent && onClick ( const FuncListener func) &&
inlineinherited
Since
ver2.5

◆ onClick() [5/6]

TemporalComponent & onClick ( func) &
inlineinherited

クリック時に実行される関数を設定 (Viewまたは2D)

引数については ViewComponent::onClick(), Canvas2DComponent::onClick() を参照

◆ onClick() [6/6]

TemporalComponent && onClick ( func) &&
inlineinherited
Since
ver2.5

◆ operator!=()

bool operator!= ( const Geometry other) const
inlineinherited

◆ operator==()

bool operator== ( const Geometry other) const
inlineinherited

◆ origin() [1/2]

TemporalComponent & origin ( const Transform origin) &
inlineinherited

要素の移動 (2Dまたは3D)

◆ origin() [2/2]

TemporalComponent && origin ( const Transform origin) &&
inlineinherited
Since
ver2.5

◆ strokeWidth() [1/2]

TemporalComponent & strokeWidth ( double  s) &
inlineinherited

線の太さ (2Dのみ)

文字の太さではない

◆ strokeWidth() [2/2]

TemporalComponent && strokeWidth ( double  s) &&
inlineinherited
Since
ver2.5

◆ text() [1/4]

TemporalComponent & text ( std::string_view  str) &
inlineinherited

表示する文字列 (View, Canvas2D)

Since
ver2.0

◆ text() [2/4]

TemporalComponent && text ( std::string_view  str) &&
inlineinherited
Since
ver2.5

◆ text() [3/4]

TemporalComponent & text ( std::wstring_view  str) &
inlineinherited

表示する文字列(wstring) (View, Canvas2D)

Since
ver2.0

◆ text() [4/4]

TemporalComponent && text ( std::wstring_view  str) &&
inlineinherited
Since
ver2.5

◆ textColor() [1/2]

TemporalComponent & textColor ( ViewColor  c) &
inlineinherited

文字色 (Viewまたは2D)

Canvas2DのTextでは fillColor が文字色の代わりに使われている

◆ textColor() [2/2]

TemporalComponent && textColor ( ViewColor  c) &&
inlineinherited
Since
ver2.5

◆ textSize() [1/2]

TemporalComponent & textSize ( double  s) &
inlineinherited

文字の大きさ (2Dのみ)

◆ textSize() [2/2]

TemporalComponent && textSize ( double  s) &&
inlineinherited
Since
ver2.5

Member Data Documentation

◆ component_2d

TemporalCanvas2DComponent component_2d
inherited

◆ component_3d

TemporalCanvas3DComponent component_3d
inherited

◆ component_v

TemporalViewComponent component_v
inherited

◆ properties

std::vector<double> properties
inherited

◆ type

GeometryType type
inherited

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