Cylinder class defines a 3 dimensional cylinder with the specified size.
A Cylinder is a 3D geometry primitive created with a given radius and height.
It is centered at the origin.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final double | |
| pack-priv static final double | |
| private int | |
| private DoubleProperty | height
Defines the height or the Y dimension of the Cylinder. |
| private TriangleMesh | |
| private DoubleProperty | radius
Defines the radius in the Z plane of the Cylinder. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Cylinder(double
Radius radius, double Height height)Creates a new instance of |
| public | Cylinder(double
Radius radius, double Height height, int Divisions divisions)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static TriangleMesh | |
| private boolean | |
| private BaseBounds | |
| private boolean | doComputeIntersects(PickRay pickRay, PickResultChooser pickResult)
Hides javafx.
|
| private NGNode | |
| private void | |
| public int | Returns: the divisions attribute.Retrieves the divisions attribute use to generate this cylinder. |
| public final double | |
| public final double | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final void | |
| public final void |
| DEFAULT_DIVISIONS | back to summary |
|---|---|
| pack-priv static final int DEFAULT_DIVISIONS | |
| DEFAULT_HEIGHT | back to summary |
|---|---|
| pack-priv static final double DEFAULT_HEIGHT | |
| DEFAULT_RADIUS | back to summary |
|---|---|
| pack-priv static final double DEFAULT_RADIUS | |
| divisions | back to summary |
|---|---|
| private int divisions | |
| height | back to summary |
|---|---|
| private DoubleProperty height Defines the height or the Y dimension of the Cylinder.
| |
| mesh | back to summary |
|---|---|
| private TriangleMesh mesh | |
| radius | back to summary |
|---|---|
| private DoubleProperty radius Defines the radius in the Z plane of the Cylinder.
| |
| Cylinder | back to summary |
|---|---|
| public Cylinder() Creates a new instance of | |
| Cylinder | back to summary |
|---|---|
| public Cylinder(double radius, double height) Creates a new instance of
| |
| Cylinder | back to summary |
|---|---|
| public Cylinder(double radius, double height, int divisions) Creates a new instance of
| |
| createMesh | back to summary |
|---|---|
| pack-priv static TriangleMesh createMesh(int div, float h, float r) | |
| doComputeContains | back to summary |
|---|---|
| private boolean doComputeContains(double localX, double localY) | |
| doComputeGeomBounds | back to summary |
|---|---|
| private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) | |
| doComputeIntersects | back to summary |
|---|---|
| private boolean doComputeIntersects(PickRay pickRay, PickResultChooser pickResult) | |
| doCreatePeer | back to summary |
|---|---|
| private NGNode doCreatePeer() | |
| doUpdatePeer | back to summary |
|---|---|
| private void doUpdatePeer() | |
| getDivisions | back to summary |
|---|---|
| public int getDivisions() Retrieves the divisions attribute use to generate this cylinder.
| |
| getHeight | back to summary |
|---|---|
| public final double getHeight() | |
| getRadius | back to summary |
|---|---|
| public final double getRadius() | |
| heightProperty | back to summary |
|---|---|
| public final DoubleProperty heightProperty() | |
| radiusProperty | back to summary |
|---|---|
| public final DoubleProperty radiusProperty() | |
| setHeight | back to summary |
|---|---|
| public final void setHeight(double value) | |
| setRadius | back to summary |
|---|---|
| public final void setRadius(double value) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final double | |
| pack-priv final double |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Implements abstract javafx. Indicates whether some other object is "equal to" this one. |
| public int | hashCode()
Implements abstract javafx. Returns a hash code value for this object. |
| divisions | back to summary |
|---|---|
| pack-priv final int divisions | |
| height | back to summary |
|---|---|
| pack-priv final double height | |
| radius | back to summary |
|---|---|
| pack-priv final double radius | |
| CylinderKey | back to summary |
|---|---|
| private CylinderKey(double radius, double height, int divisions) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract javafx. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract javafx. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |