Factory that creates new Browser instances.
Namespace: Vrml.EAI
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public class BrowserFactory  
Collapse/Expand Remarks

The methods of the BrowserFactory class are the only way to create new instances of the Browser object, i.e. it is essential for initiating the connection between your software components and the X3D browser.

The BrowserFactory itself does not implement much functionality, instead it depends on an implementation of the BrowserFactoryImpl interface that has to be provided by the deleveloper of the X3D browser you want to use. Usually you do not have to care about these details, because the BrowserFactory automatically chooses an implementation. See the SetBrowserFactoryImpl method for more information about that.

Collapse/Expand Members

Click here to see the list of members.

Collapse/Expand Example
The following example demonstrates how to create a new instance of the Browser interface by using the GetBrowser method of the BrowserFactory class:
C#
System.Net.IPAddress address = System.Net.Dns.GetHostByName("localhost").AddressList[0];
Vrml.EAI.Browser browser = Vrml.EAI.BrowserFactory.GetBrowser(address, 4848);
...
browser.Dispose();