Event - superclass: helper; super-superclass:node - 0:0 - classID: #(1962490627, 515064576)
説明:
Event は、[パーティクル ビュー](Particle View)内のアクションをグループ分けして、一定期間におよぶパーティクルの外観を定義するものです。このクラスのインスタンスを作成すると、公開されたインタフェースやメソッドを使用してアクションを入力できる空のホルダが提供されます。
コンストラクタ:
Event インタフェース:
Event クラスによって公開されるインタフェースは、次のとおりです。
インタフェース: ActionList
インタフェース: PViewItem
例:
|
--Open the Particle View to watch the results:
particleFlow.openParticleView()
OK
ev = event()--Create an empty Event
$Event:Event 01 @ [0.000000,0.000000,0.000000]
--In order to fill in the empty Event, we have to disable
--the automatic Event encapsulation of newly created Actions.
particleFlow.beginEdit()
OK
--Now we can create a new Birth action to add to the Event.
br = birth()
$Birth:Birth 01 @ [0.000000,0.000000,0.000000]
--We can now append the new Birth Action to the empty Event:
ev.appendAction br
true
--We can also create Action class instances
--and append them to the Event in a single step:
ev.appendAction (Position_Icon())
true
ev.appendAction (Speed())
true
ev.appendAction (ShapeStandard())
true
ev.appendAction (DisplayParticles())
true
--Finally, we can exit the Edit mode to enable automatic
--Event encapsulation again:
particleFlow.endEdit()
OK
|