0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Harmoware-VIS】synerex_harmovis 関数書式

Last updated at Posted at 2021-12-13

#Harmoware-VIS とは

#synerexとは
https://www.ucl.nuee.nagoya-u.ac.jp/project

#synerex_harmovis 関数書式
pipインストールはプロンプトから次のコマンドを実行

pip install synerex_harmovis

詳細は https://pypi.org/project/synerex-harmovis/ を参照

ソースコードは https://github.com/synerex/python_Synerex-HarmoVIS を参照

関数一覧

Function name Arguments format
sendBearingAx (bearing : number, duration : number=0)
sendPitchAx (pitch : number, duration : number=0)
sendViewStateAx (lat : number, lon : number, zoom : number=-1, pitch : number=-1, duration : number=0)
sendBarGraphsAx (bg : BGStore)
drawLinesAx (ln : LineStore)
drawArcsAx (ac : ArcStore)
drawScattersAx (st : ScatterStore)
clearArcsAx ()
clearScattersAx ()
sendTopTextLabelAx (label : string, style : string="")
sendHarmoVISAx (jsonStr : string)
sendMeshAx (ms : MeshStore)

引数作成クラス

LineStore

Function name Arguments format
setWidth (width : number)
addLine (srcLat : number, srcLon : number, tgtLat : number, tgtLon : number, color : number=0x708080)

ArcStore

Function name Arguments format
addArc (srcLat : number, srcLon : number, tgtLat : number, tgtLon : number, srcCol : number=0xd0c000, tgtCol : number=0xd0c000, tilt : number=0)

ScatterStore

Function name Arguments format
addScatter (srcLat : number, srcLon : number, tgtLat : number, tgtLon : number, fillCol : number=0xd000f0, lineCol : number=0x200020)

MeshStore

Function name Arguments format
setTimestamp (timestamp : number)
setTimestampNow ()
setMeshID (id : number)
addMeshItem (lat : number, lon : number, value : any, color : string="[0,200,0]", itemId : number=-1)
updateMeshValue (itemId : number, value : any, color : string="[0,200,0]")
getItemIds ()
getJsonStr ()

BGStore

Function name Arguments format
addBarData (timestamp : number, label : string, lat : number, lon : number, barData : any)
addBarDataNow (label : string, lat : number, lon : number, barData : any)
updateBarData (id : number, timestamp : number, lat : number, lon : number, barData : any)
updateBarDataNow (id : number, lat : number, lon : number, barData : any)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?