Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
BasicJqueryGUI example

HTML user interface example using Jquery library.

This example shows you how to use Jquery library in the client-side and how to interact with the RemoteViz service to change the color of the Cone. It displays a gray cone or a red cone when clicking on the HTML button.

Run the example:

  1. Go to "OIVHOME/examples/bin/OIVARCH/RemoteViz" and run the executable "BasicJQueryGUIRenderingService".
  2. Go to "OIVHOME/examples/source/RemoteViz/BasicJqueryGUI/Clients/HTML5" and open the "index.html" file inside a web browser.

Note: In this example, the RemoteViz service uses the localhost IP address (127.0.0.1) by default. To run it on a web server, start the example by passing the service IP address and port as arguments (ex : BasicJQueryGUIRenderingService 192.168.0.1 8082) and edit the file "index.html" (client side) to modify the IP address and the port.

SCREENSHOT:

FILES:

    • RemoteViz/BasicJqueryGUI/BasicJQueryGUIRenderingService/include/BasicJQueryGUIRenderAreaListener.h
    • RemoteViz/BasicJqueryGUI/BasicJQueryGUIRenderingService/include/BasicJQueryGUIServiceListener.h
    • RemoteViz/BasicJqueryGUI/BasicJQueryGUIRenderingService/src/BasicJQueryGUIRenderAreaListener.cxx
    • RemoteViz/BasicJqueryGUI/BasicJQueryGUIRenderingService/src/BasicJQueryGUIServiceListener.cxx
    • RemoteViz/BasicJqueryGUI/BasicJQueryGUIRenderingService/src/main.cxx
    • RemoteViz/BasicJqueryGUI/Clients/HTML5/index.html