All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.generic.geometry.Cone

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.generic.geometry.Geometry
                   |
                   +----vlc.vrml.generic.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 Anchor node please see the VRML 97 Anchor specification

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o Cone()
Default Constructor.
 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(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

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