Sphere class defines a 3 dimensional sphere with the specified size.
A Sphere is a 3D geometry primitive created with a given radius.
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 | |
| private int | |
| private TriangleMesh | |
| private DoubleProperty | radius
Defines the radius of the Sphere. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | Sphere(double
Radius radius, int Divisions divisions)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| 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 sphere. |
| public final double | |
| public final DoubleProperty | |
| public final void |
| DEFAULT_DIVISIONS | back to summary |
|---|---|
| pack-priv static final int DEFAULT_DIVISIONS | |
| DEFAULT_RADIUS | back to summary |
|---|---|
| pack-priv static final double DEFAULT_RADIUS | |
| divisions | back to summary |
|---|---|
| private int divisions | |
| mesh | back to summary |
|---|---|
| private TriangleMesh mesh | |
| radius | back to summary |
|---|---|
| private DoubleProperty radius Defines the radius of the Sphere.
| |
| Sphere | back to summary |
|---|---|
| public Sphere() Creates a new instance of | |
| Sphere | back to summary |
|---|---|
| public Sphere(double radius) Creates a new instance of
| |
| Sphere | back to summary |
|---|---|
| public Sphere(double radius, int divisions) Creates a new instance of
| |
| correctDivisions | back to summary |
|---|---|
| private static int correctDivisions(int div) | |
| createMesh | back to summary |
|---|---|
| pack-priv static TriangleMesh createMesh(int div, 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 sphere.
| |
| getRadius | back to summary |
|---|---|
| public final double getRadius() | |
| radiusProperty | back to summary |
|---|---|
| public final DoubleProperty radiusProperty() | |
| setRadius | back to summary |
|---|---|
| public final void setRadius(double value) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final double |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object 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 | |
| radius | back to summary |
|---|---|
| pack-priv final double radius | |
| SphereKey | back to summary |
|---|---|
| private SphereKey(double radius, 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
| |