org.opensourcephysics.display3d.core
Interface ElementSphere

All Superinterfaces:
Element, ElementEllipsoid, InteractionSource
All Known Implementing Classes:
ElementSphere

public interface ElementSphere
extends ElementEllipsoid

Title: ElementSphere

Description: An Ellipsoid with the same size in all dimensions.

Changing the size in any dimension also sets the other sizes. Setting different sizes to X, Y, and Z will result in setting the radius to the largest of the three dimensions.

Version:
May 2005
Author:
Francisco Esquembre

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opensourcephysics.display3d.core.ElementEllipsoid
ElementEllipsoid.Loader
 
Field Summary
 
Fields inherited from interface org.opensourcephysics.display3d.core.Element
TARGET_POSITION, TARGET_SIZE
 
Method Summary
 double getRadius()
          Gets the radius
 void setRadius(double radius)
          Sets the radius.
 
Methods inherited from interface org.opensourcephysics.display3d.core.ElementEllipsoid
getMaximumAngleU, getMaximumAngleV, getMinimumAngleU, getMinimumAngleV, isClosedBottom, isClosedLeft, isClosedRight, isClosedTop, setClosedBottom, setClosedLeft, setClosedRight, setClosedTop, setMaximumAngleU, setMaximumAngleV, setMinimumAngleU, setMinimumAngleV
 
Methods inherited from interface org.opensourcephysics.display3d.core.Element
getDrawingPanel3D, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame
 
Methods inherited from interface org.opensourcephysics.display3d.core.interaction.InteractionSource
addInteractionListener, getInteractionTarget, removeInteractionListener
 

Method Detail

setRadius

void setRadius(double radius)
Sets the radius.

Parameters:
radius - the radius

getRadius

double getRadius()
Gets the radius

Returns:
the radius