Interface ElementEllipsoid
- All Superinterfaces:
Element,InteractionSource
- All Known Subinterfaces:
ElementSphere
- All Known Implementing Classes:
ElementEllipsoid,ElementSphere
Title: ElementEllipsoid
Description: A 3D Ellipsoid.
- Version:
- March 2005
- Author:
- Francisco Esquembre
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.opensourcephysics.display3d.core.Element
TARGET_POSITION, TARGET_SIZE -
Method Summary
Modifier and TypeMethodDescriptionintGets the maximum angle for the meridiansintGets the maximum angle for the parallelsintGets the minimum angle for the meridiansintGets the minimum angle for the parallelsbooleanWhether the ellipsoid is closed at its bottom.booleanWhether the ellipsoid is closed at its left side.booleanWhether the ellipsoid is closed at its right side.booleanWhether the ellipsoid is closed at its top.voidsetClosedBottom(boolean close) Whether an incomplete ellipsoid should be closed at its bottom.voidsetClosedLeft(boolean close) Whether an incomplete ellipsoid should be closed at its left side.voidsetClosedRight(boolean close) Whether an incomplete ellipsoid should be closed at its right side.voidsetClosedTop(boolean close) Whether an incomplete ellipsoid should be closed at its top.voidsetMaximumAngleU(int angle) Sets the maximum angle for the meridians.voidsetMaximumAngleV(int angle) Sets the maximum angle for the parallels Default is 90.voidsetMinimumAngleU(int angle) Sets the minimum angle for the meridians.voidsetMinimumAngleV(int angle) Sets the minimum angle for the parallels Default is -90.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, toSpaceFrameMethods inherited from interface org.opensourcephysics.display3d.core.interaction.InteractionSource
addInteractionListener, getInteractionTarget, removeInteractionListener
-
Method Details
-
setMinimumAngleU
void setMinimumAngleU(int angle) Sets the minimum angle for the meridians. Default is 0.- Parameters:
angle- the minimum angle (in degrees)
-
getMinimumAngleU
int getMinimumAngleU()Gets the minimum angle for the meridians- Returns:
- the minimum angle (in degrees)
-
setMaximumAngleU
void setMaximumAngleU(int angle) Sets the maximum angle for the meridians. Default is 360.- Parameters:
angle- the maximum angle (in degrees)
-
getMaximumAngleU
int getMaximumAngleU()Gets the maximum angle for the meridians- Returns:
- the maximum angle (in degrees)
-
setMinimumAngleV
void setMinimumAngleV(int angle) Sets the minimum angle for the parallels Default is -90.- Parameters:
angle- the minimum angle (in degrees)
-
getMinimumAngleV
int getMinimumAngleV()Gets the minimum angle for the parallels- Returns:
- the minimum angle (in degrees)
-
setMaximumAngleV
void setMaximumAngleV(int angle) Sets the maximum angle for the parallels Default is 90.- Parameters:
angle- the maximum angle (in degrees)
-
getMaximumAngleV
int getMaximumAngleV()Gets the maximum angle for the parallels- Returns:
- the maximum angle (in degrees)
-
setClosedBottom
void setClosedBottom(boolean close) Whether an incomplete ellipsoid should be closed at its bottom.- Parameters:
closed- the desired value
-
isClosedBottom
boolean isClosedBottom()Whether the ellipsoid is closed at its bottom.- Returns:
- the value
-
setClosedTop
void setClosedTop(boolean close) Whether an incomplete ellipsoid should be closed at its top.- Parameters:
closed- the desired value
-
isClosedTop
boolean isClosedTop()Whether the ellipsoid is closed at its top.- Returns:
- the value
-
setClosedLeft
void setClosedLeft(boolean close) Whether an incomplete ellipsoid should be closed at its left side.- Parameters:
closed- the desired value
-
isClosedLeft
boolean isClosedLeft()Whether the ellipsoid is closed at its left side.- Returns:
- the value
-
setClosedRight
void setClosedRight(boolean close) Whether an incomplete ellipsoid should be closed at its right side.- Parameters:
closed- the desired value
-
isClosedRight
boolean isClosedRight()Whether the ellipsoid is closed at its right side.- Returns:
- the value
-