All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.generic.geometry.Cylinder

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

public class Cylinder
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 Cylinder()
Default Constructor.
 o Cylinder(float, float, boolean, 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_height()
Get the height of the cone.
 o get_radius()
Get the radius of the bottom of the cone.
 o get_side()
Is the side to be displayed for this cone?
 o get_top()
Is the top to be displayed for this cone?
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

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

 o Cylinder
 public Cylinder(float radius,
                 float height,
                 boolean showSide,
                 boolean showTop,
                 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_radius
 public float get_radius()
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_top
 public boolean get_top()
Is the top to be displayed for this cone?

Returns:
true if the top is 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