org.opensourcephysics.display3d.core
Interface ElementEllipsoid

All Superinterfaces:
Element, org.opensourcephysics.display3d.core.interaction.InteractionSource
All Known Subinterfaces:
ElementSphere
All Known Implementing Classes:
ElementEllipsoid, ElementSphere

public interface ElementEllipsoid
extends Element

Title: ElementEllipsoid

Description: A 3D Ellipsoid.


Nested Class Summary
static class ElementEllipsoid.Loader
           
 
Field Summary
 
Fields inherited from interface org.opensourcephysics.display3d.core.Element
TARGET_POSITION, TARGET_SIZE
 
Method Summary
 int getMaximumAngleU()
          Gets the maximum angle for the meridians
 int getMaximumAngleV()
          Gets the maximum angle for the parallels
 int getMinimumAngleU()
          Gets the minimum angle for the meridians
 int getMinimumAngleV()
          Gets the minimum angle for the parallels
 boolean isClosedBottom()
          Whether the ellipsoid is closed at its bottom.
 boolean isClosedLeft()
          Whether the ellipsoid is closed at its left side.
 boolean isClosedRight()
          Whether the ellipsoid is closed at its right side.
 boolean isClosedTop()
          Whether the ellipsoid is closed at its top.
 void setClosedBottom(boolean close)
          Whether an incomplete ellipsoid should be closed at its bottom.
 void setClosedLeft(boolean close)
          Whether an incomplete ellipsoid should be closed at its left side.
 void setClosedRight(boolean close)
          Whether an incomplete ellipsoid should be closed at its right side.
 void setClosedTop(boolean close)
          Whether an incomplete ellipsoid should be closed at its top.
 void setMaximumAngleU(int angle)
          Sets the maximum angle for the meridians.
 void setMaximumAngleV(int angle)
          Sets the maximum angle for the parallels Default is 90.
 void setMinimumAngleU(int angle)
          Sets the minimum angle for the meridians.
 void setMinimumAngleV(int angle)
          Sets the minimum angle for the parallels Default is -90.
 
Methods inherited from interface org.opensourcephysics.display3d.core.Element
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

setMinimumAngleU

public void setMinimumAngleU(int angle)
Sets the minimum angle for the meridians. Default is 0.

Parameters:
angle - the minimum angle (in degrees)

getMinimumAngleU

public int getMinimumAngleU()
Gets the minimum angle for the meridians

Returns:
the minimum angle (in degrees)

setMaximumAngleU

public void setMaximumAngleU(int angle)
Sets the maximum angle for the meridians. Default is 360.

Parameters:
angle - the maximum angle (in degrees)

getMaximumAngleU

public int getMaximumAngleU()
Gets the maximum angle for the meridians

Returns:
the maximum angle (in degrees)

setMinimumAngleV

public void setMinimumAngleV(int angle)
Sets the minimum angle for the parallels Default is -90.

Parameters:
angle - the minimum angle (in degrees)

getMinimumAngleV

public int getMinimumAngleV()
Gets the minimum angle for the parallels

Returns:
the minimum angle (in degrees)

setMaximumAngleV

public void setMaximumAngleV(int angle)
Sets the maximum angle for the parallels Default is 90.

Parameters:
angle - the maximum angle (in degrees)

getMaximumAngleV

public int getMaximumAngleV()
Gets the maximum angle for the parallels

Returns:
the maximum angle (in degrees)

setClosedBottom

public void setClosedBottom(boolean close)
Whether an incomplete ellipsoid should be closed at its bottom.


isClosedBottom

public boolean isClosedBottom()
Whether the ellipsoid is closed at its bottom.

Returns:
the value

setClosedTop

public void setClosedTop(boolean close)
Whether an incomplete ellipsoid should be closed at its top.


isClosedTop

public boolean isClosedTop()
Whether the ellipsoid is closed at its top.

Returns:
the value

setClosedLeft

public void setClosedLeft(boolean close)
Whether an incomplete ellipsoid should be closed at its left side.


isClosedLeft

public boolean isClosedLeft()
Whether the ellipsoid is closed at its left side.

Returns:
the value

setClosedRight

public void setClosedRight(boolean close)
Whether an incomplete ellipsoid should be closed at its right side.


isClosedRight

public boolean isClosedRight()
Whether the ellipsoid is closed at its right side.

Returns:
the value