All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.geometry.VrmlObject

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.external.geometry.VrmlObject

public abstract class VrmlObject
extends VrmlObject
implements Cloneable
JVerge

Version:
0.8 (beta 4) Copyright 1997 The Virtual Light Company under the GNU LGPL

The latest information and bugs in JVerge can be found at http://www.vlc.com.au/JVerge

VRML base object definition for EAI based nodes

This class is subclassed from the Generic VrmlObject allowing complete portability of code. This class extends the core functionality by adding support for a Browser object reference.

Author:
Justin Couch justin@vlc.com.au

Variable Index

 o browser
Static Browser reference that allows calling of default constructors without the need to carry around separate references
 o have_browser
If we have a browser reference (either static or dynamically set this is true.
 o local_browser
A copy of the reference to the browser that this class used when it was created.
 o node
The internal reference to the VRML representation of the node.
 o write_count
this is limited in access only to classes of this package.

Constructor Index

 o VrmlObject()
The Basic protected constructor.
 o VrmlObject(Browser)
Constructor to copy the nominated Browser reference into the local copy.

Method Index

 o set_browser(Browser)
Used to set the internal browser reference once.
 o writeReset()
Used for maintaining the reference counting when trying to do DEF/USE in the write to stream method.

Variables

 o have_browser
 protected boolean have_browser
If we have a browser reference (either static or dynamically set this is true. Used by all get and set methods to determine if they should also reference the in scene version or just local copies

 o browser
 protected static Browser browser
Static Browser reference that allows calling of default constructors without the need to carry around separate references

See Also:
html
 o node
 public Node node
The internal reference to the VRML representation of the node. Left public so you can use it to add your own ROUTEs between nodes.

 o write_count
 public int write_count
this is limited in access only to classes of this package. It is used for maintaining the reference counting when trying to do DEF/USE in the write to stream method.
Overrides the one provided in the base class

 o local_browser
 protected Browser local_browser
A copy of the reference to the browser that this class used when it was created. This is needed for cloning so that the cloned object creates the clone in the same browser environment that the original was created in.

Constructors

 o VrmlObject
 protected VrmlObject()
The Basic protected constructor. This is used to copy the static global browser reference into the local one.

 o VrmlObject
 protected VrmlObject(Browser browserUsed)
Constructor to copy the nominated Browser reference into the local copy. This should be called when the derived class constructor that takes a Browser reference is called.

Parameters:
browserUsed - The browser to be used.

Methods

 o writeReset
 public void writeReset()
Used for maintaining the reference counting when trying to do DEF/USE in the write to stream method.

Overrides:
writeReset in class VrmlObject
 o set_browser
 public static void set_browser(Browser b)
Used to set the internal browser reference once. Then allows you to call the standard constructors without carrying around Browser references all through your application


All Packages  Class Hierarchy  This Package  Previous  Next  Index