|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Title: ElementCylinder
Description: A 3D Cone. The cone can be incomplete or double, if height!=sizeZ.
Nested Class Summary | |
static class |
ElementCone.Loader
|
Field Summary |
Fields inherited from interface org.opensourcephysics.display3d.core.Element |
TARGET_POSITION, TARGET_SIZE |
Method Summary | |
int |
getMaximumAngle()
Gets the maximum angle used to build the bottom and, if neccesary, top faces of the cone. |
int |
getMinimumAngle()
Gets the minimum angle used to build the bottom and, if neccesary, top faces of the cone. |
double |
getTruncationHeight()
Gets the truncation height for this cone. |
boolean |
isClosedBottom()
Whether the cone is closed at its bottom. |
boolean |
isClosedLeft()
Whether the element is closed at its left side. |
boolean |
isClosedRight()
Whether the element is closed at its right side. |
boolean |
isClosedTop()
Whether the cone is closed at its top. |
void |
setClosedBottom(boolean close)
Whether the cone should be closed at its bottom. |
void |
setClosedLeft(boolean close)
Whether an incomplete element should be closed at its left side. |
void |
setClosedRight(boolean close)
Whether an incomplete element should be closed at its right side. |
void |
setClosedTop(boolean close)
Whether an incomplete cone element should be closed at its top. |
void |
setMaximumAngle(int angle)
Sets the maximum angle to build the bottom and, if neccesary, top faces of the cone. |
void |
setMinimumAngle(int angle)
Sets the minimum angle to build the bottom and, if neccesary, top faces of the cone. |
void |
setTruncationHeight(double height)
Sets the truncation height for this cone. |
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 |
public void setTruncationHeight(double height)
height
- doublepublic double getTruncationHeight()
#setTruncationHeight()
public void setMinimumAngle(int angle)
angle
- the minimum angle (in degrees)public int getMinimumAngle()
public void setMaximumAngle(int angle)
angle
- the maximum angle (in degrees)public int getMaximumAngle()
public void setClosedBottom(boolean close)
close
- the desired valuepublic boolean isClosedBottom()
public void setClosedTop(boolean close)
public boolean isClosedTop()
public void setClosedLeft(boolean close)
public boolean isClosedLeft()
public void setClosedRight(boolean close)
public boolean isClosedRight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |