All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.geometry.Shape

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

public class Shape
extends ChildrenNode
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

For definition of the Anchor node please see the VRML 97 Anchor specification

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o Shape()
Default Constructor.
 o Shape(Browser)
Default Constructor when you wish to supply your own Browser reference.

Method Index

 o cleanup()
Call when about to remove the node from the scenegraph.
 o clone()
Make a clone of this object
 o get_appearance()
Get the currently set appearance property
 o get_geometry()
Get the currently set appearance property
 o hasAppearance()
Test to see if the shape has an appearance node set. Deprecated.
 o hasGeometry()
Test to see if the shape has a geometry node set. Deprecated.
 o set_appearance(Appearance)
Set the Appearance node attribute of this shape.
 o set_geometry(Geometry)
Set the Greometry node attribute of this shape.
 o writeReset()
Used for maintaining the reference counting when trying to do DEF/USE in the write to stream method.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o Shape
 public Shape()
Default Constructor. Creates a default Shape

 o Shape
 public Shape(Browser b)
Default Constructor when you wish to supply your own Browser reference. Creates a default Shape

Methods

 o cleanup
 public void cleanup()
Call when about to remove the node from the scenegraph.

Overrides:
cleanup in class VrmlObject
 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 writeToStream
 public void writeToStream(int indent)
Prints the formatted contents of this node to the given stream.

Parameters:
indent - The number of spaces to indent this node in the string
Overrides:
writeToStream in class VrmlObject
 o set_appearance
 public void set_appearance(Appearance app)
Set the Appearance node attribute of this shape.

Parameters:
app - A valid JVerge Appearance node or null if to remove the currently set one.
 o get_appearance
 public Appearance get_appearance()
Get the currently set appearance property

Returns:
The current appearance node or null if none set.
 o set_geometry
 public void set_geometry(Geometry geom)
Set the Greometry node attribute of this shape.

Parameters:
app - A valid JVerge geometry node or null if to remove the currently set one.
 o get_geometry
 public Geometry get_geometry()
Get the currently set appearance property

Returns:
The current appearance node or null if none set.
 o hasGeometry
 public boolean hasGeometry()
Note: hasGeometry() is deprecated.

Test to see if the shape has a geometry node set.

See Also:
get_geometry
 o hasAppearance
 public boolean hasAppearance()
Note: hasAppearance() is deprecated.

Test to see if the shape has an appearance node set.

See Also:
get_appearance
 o clone
 public Object clone()
Make a clone of this object

Returns:
A deep clone copy of this object
Overrides:
clone in class VrmlObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index