|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.drawing3d.Element org.opensourcephysics.drawing3d.ElementCylinder
public class ElementCylinder
Title: ElementCylinder
Description: A 3D cylinder
Field Summary |
---|
Fields inherited from class org.opensourcephysics.drawing3d.Element |
---|
CHANGE_COLOR, CHANGE_GROUP, CHANGE_INTERACTION_POINTS, CHANGE_NONE, CHANGE_POSITION, CHANGE_POSITION_AND_SIZE, CHANGE_PROJECTION, CHANGE_RESOLUTION, CHANGE_SHAPE, CHANGE_SIZE, CHANGE_TRANSFORMATION, CHANGE_VISIBILITY, STD_CENTERED_END, STD_CENTERED_ORIGIN, STD_END, STD_ORIGIN, TARGET_POSITION, TARGET_SIZE, TO_RADIANS, X_UNIT_VECTOR, Y_UNIT_VECTOR, Z_UNIT_VECTOR |
Constructor Summary | |
---|---|
ElementCylinder()
|
Method Summary | |
---|---|
boolean |
checkStandarCylinder()
Returns true if the cylinder is a complete primitive shape. |
static double[][][] |
createStandardCylinder(int nr,
int nu,
int nz,
double angle1,
double angle2,
boolean top,
boolean bottom,
boolean left,
boolean right)
Returns the data for a standard cylinder (from (-0.5,-0.5,-0.5) to (0.5,0.5,0.5) ) with the given parameters |
int |
getMaximumAngle()
Returns the end angle for a possible non-360 degrees cylinder. |
int |
getMinimumAngle()
Returns the starting angle for a possible non-360 degrees cylinder. |
boolean |
isClosedBottom()
Whether the cylinder is closed at its bottom. |
boolean |
isClosedLeft()
Whether the (non-360 degrees) cylinder is closed at its left side. |
boolean |
isClosedRight()
Whether the (non-360 degrees) cylinder is closed at its right side. |
boolean |
isClosedTop()
Whether the (truncated) cylinder is closed at its top. |
void |
setClosedBottom(boolean close)
Whether the cylinder should be closed at its bottom. |
void |
setClosedLeft(boolean close)
Whether the (non-360 degrees) cylinder should be closed at its left side. |
void |
setClosedRight(boolean close)
Whether the (non-360 degrees) cylinder should be closed at its right side. |
void |
setClosedTop(boolean close)
Whether the (truncated) cylinder should be closed at its top. |
void |
setMaximumAngle(int angle)
Sets the end angle for a non-360 degrees cylinder. |
void |
setMinimumAngle(int angle)
Sets the starting angle for a non-360 degrees cylinder. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementCylinder()
Method Detail |
---|
public void setClosedBottom(boolean close)
close
- the desired valuepublic boolean isClosedBottom()
public void setClosedTop(boolean close)
close
- the desired valuepublic boolean isClosedTop()
public void setClosedLeft(boolean close)
close
- the desired valuepublic boolean isClosedLeft()
public void setClosedRight(boolean close)
close
- the desired valuepublic boolean isClosedRight()
public void setMinimumAngle(int angle)
angle
- the start angle in degrees, between 0 and 360public int getMinimumAngle()
public void setMaximumAngle(int angle)
angle
- the end angle in degrees, between 0 and 360,
and usually bigger than the minimum anglepublic int getMaximumAngle()
public boolean checkStandarCylinder()
public static double[][][] createStandardCylinder(int nr, int nu, int nz, double angle1, double angle2, boolean top, boolean bottom, boolean left, boolean right)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |