# Events in web-project-templates-master

**URL:** https://discourse.vtk.org/t/events-in-web-project-templates-master/7210
**Category:** Support
**Created:** [November 18, 2021, 6:29am UTC](https://discourse.vtk.org/t/events-in-web-project-templates-master/7210 "2021-11-18T06:29:46Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [November 18, 2021, 6:29am UTC](https://discourse.vtk.org/t/events-in-web-project-templates-master/7210/1 "2021-11-18T06:29:46Z")

</div>

Dear All,

In web-project-templates-master example what the following instructions do?

self.getApplication().InvokeEvent(‘StartInteractionEvent’)  
self.getApplication().InvokeEvent(‘EndInteractionEvent’)  
self.getApplication().InvokeEvent(‘UpdateEvent’)

Another question: Are there any superposition of the run of handler of the events generated by the browser? Or an event is ran only after the before one is finish?

Thanks,

Luís Gonçalves

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [November 18, 2021, 2:56pm UTC](https://discourse.vtk.org/t/events-in-web-project-templates-master/7210/2 "2021-11-18T14:56:57Z")

</div>

self.getApplication().InvokeEvent(‘StartInteractionEvent’)  
=\> Start animation loop which keep rendering based on targeted fps

self.getApplication().InvokeEvent(‘EndInteractionEvent’)  
=\> Stop animation loop that was previously started

self.getApplication().InvokeEvent(‘UpdateEvent’)  
=\> Do a single render

For the other question, I don’t know as I don’t understand it.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [November 18, 2021, 3:02pm UTC](https://discourse.vtk.org/t/events-in-web-project-templates-master/7210/3 "2021-11-18T15:02:09Z")

</div>

The other question is:  
In the web browser are generated several events. Are those events handled in parallel or in serial?

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [November 18, 2021, 4:31pm UTC](https://discourse.vtk.org/t/events-in-web-project-templates-master/7210/4 "2021-11-18T16:31:59Z")

</div>

Everything is serial. But I still don’t get what is the relationship between the server question and the browser events (also what events are you talking about?).

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [November 18, 2021, 4:38pm UTC](https://discourse.vtk.org/t/events-in-web-project-templates-master/7210/5 "2021-11-18T16:38:04Z")

</div>

Browser Events → Key pressed, Mouse Pressed and Moved  
Server Side → Handlers of the above events.  
You say:  
Several Browser Events → Handled serial in server.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [November 18, 2021, 5:15pm UTC](https://discourse.vtk.org/t/events-in-web-project-templates-master/7210/6 "2021-11-18T17:15:02Z")

</div>

What happen if we start a  
self.getApplication().InvokeEvent(‘StartInteractionEvent’)

without a

self.getApplication().InvokeEvent(‘EndInteractionEvent’)

in the end?

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [November 18, 2021, 5:50pm UTC](https://discourse.vtk.org/t/events-in-web-project-templates-master/7210/7 "2021-11-18T17:50:28Z")

</div>

The server will keep pushing images for ever like a movie.
