All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.internal.geometry.Cone

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.internal.geometry.VrmlObject
                   |
                   +----vlc.vrml.internal.geometry.Geometry
                           |
                           +----vlc.vrml.internal.geometry.Cone

public class Cone
extends Geometry
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 Cone node please see the VRML 97 Cone specification

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o Cone()
Default Constructor.
 o Cone(Browser)
Default Constructor when you wish to supply your own Browser reference.
 o Cone(Browser, float, float, boolean, boolean)
Default constructor when you want to used non default values for the radius, height, and showing the sides or bottom.
 o Cone(float, float, boolean, boolean)
Default constructor when you want to used non default values for the radius, height, and showing the sides or bottom

Method Index

 o clone()
Make a clone of this object
 o get_bottom()
Is the bottom to be displayed for this cone?
 o get_bottomRadius()
Get the radius of the bottom of the cone.
 o get_height()
Get the height of the cone.
 o get_side()
Is the side to be displayed for this cone?
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

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

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

 o Cone
 public Cone(float radius,
             float height,
             boolean showSide,
             boolean showBottom)
Default constructor when you want to used non default values for the radius, height, and showing the sides or bottom

 o Cone
 public Cone(Browser b,
             float radius,
             float height,
             boolean showSide,
             boolean showBottom)
Default constructor when you want to used non default values for the radius, height, and showing the sides or bottom. You will also need to supply your own Browser reference.

Methods

 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 get_bottomRadius
 public float get_bottomRadius()
Get the radius of the bottom of the cone.

Returns:
A float representing the radius.
 o get_height
 public float get_height()
Get the height of the cone.

Returns:
A float representing the height.
 o get_side
 public boolean get_side()
Is the side to be displayed for this cone?

Returns:
true if the sides are to be show, false if not
 o get_bottom
 public boolean get_bottom()
Is the bottom to be displayed for this cone?

Returns:
true if the bottom is to be show, false if not
 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