All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.Shape
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.ChildrenNode
|
+----vlc.vrml.internal.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 Shape node please see the
VRML 97 Shape specification
- Author:
- Justin Couch justin@vlc.com.au
-
Shape()
- Default Constructor.
-
Shape(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_appearance()
- Get the currently set appearance property
-
get_geometry()
- Get the currently set appearance property
-
hasAppearance()
- Test to see if the shape has an appearance node set.
Deprecated.
-
hasGeometry()
- Test to see if the shape has a geometry node set.
Deprecated.
-
set_appearance(Appearance)
- Set the Appearance node attribute of this shape.
-
set_geometry(Geometry)
- Set the Greometry node attribute of this shape.
-
writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Shape
public Shape()
- Default Constructor. Creates a default Shape
Shape
public Shape(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default Shape
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup in class VrmlObject
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
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
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.
get_appearance
public Appearance get_appearance()
- Get the currently set appearance property
- Returns:
- The current appearance node or null if none set.
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.
get_geometry
public Geometry get_geometry()
- Get the currently set appearance property
- Returns:
- The current appearance node or null if none set.
hasGeometry
public boolean hasGeometry()
- Note: hasGeometry() is deprecated.
- Test to see if the shape has a geometry node set.
- See Also:
- get_geometry
hasAppearance
public boolean hasAppearance()
- Note: hasAppearance() is deprecated.
- Test to see if the shape has an appearance node set.
- See Also:
- get_appearance
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