Box class defines a 3 dimensional box with the specified size.
A Box is a 3D geometry primitive created with a given depth, width,
and height. It is centered at the origin.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final double | DEFAULT_SIZE
Deprecated
for removal since 18. This field was exposed mistakenly and will be removed.
Default size of the Box.
|
| private DoubleProperty | depth
Defines the depth or the Z dimension of the Box. |
| private DoubleProperty | height
Defines the height or the Y dimension of the Box. |
| private TriangleMesh | |
| private DoubleProperty | width
Defines the width or the X dimension of the Box. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Box(double
the width of this box width, double the height of this box height, double the depth of this box depth)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static TriangleMesh | |
| public final DoubleProperty | |
| private boolean | |
| private BaseBounds | |
| private boolean | doComputeIntersects(PickRay pickRay, PickResultChooser pickResult)
Hides javafx.
|
| private NGNode | |
| private void | |
| public final double | |
| public final double | |
| public final double | |
| public final DoubleProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final DoubleProperty |
| DEFAULT_SIZE | back to summary |
|---|---|
| public static final double DEFAULT_SIZE
Deprecated for removal since 18. This field was exposed mistakenly and will be removed. Default size of the
| |
| depth | back to summary |
|---|---|
| private DoubleProperty depth Defines the depth or the Z dimension of the Box.
| |
| height | back to summary |
|---|---|
| private DoubleProperty height Defines the height or the Y dimension of the Box.
| |
| mesh | back to summary |
|---|---|
| private TriangleMesh mesh | |
| width | back to summary |
|---|---|
| private DoubleProperty width Defines the width or the X dimension of the Box.
| |
| Box | back to summary |
|---|---|
| public Box() Creates a new instance of | |
| Box | back to summary |
|---|---|
| public Box(double width, double height, double depth) Creates a new instance of
| |
| createMesh | back to summary |
|---|---|
| pack-priv static TriangleMesh createMesh(float w, float h, float d) | |
| depthProperty | back to summary |
|---|---|
| public final DoubleProperty depthProperty() | |
| 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() | |
| getDepth | back to summary |
|---|---|
| public final double getDepth() | |
| getHeight | back to summary |
|---|---|
| public final double getHeight() | |
| getWidth | back to summary |
|---|---|
| public final double getWidth() | |
| heightProperty | back to summary |
|---|---|
| public final DoubleProperty heightProperty() | |
| setDepth | back to summary |
|---|---|
| public final void setDepth(double value) | |
| setHeight | back to summary |
|---|---|
| public final void setHeight(double value) | |
| setWidth | back to summary |
|---|---|
| public final void setWidth(double value) | |
| widthProperty | back to summary |
|---|---|
| public final DoubleProperty widthProperty() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final double | |
| pack-priv final double | |
| 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. |
| depth | back to summary |
|---|---|
| pack-priv final double depth | |
| height | back to summary |
|---|---|
| pack-priv final double height | |
| width | back to summary |
|---|---|
| pack-priv final double width | |
| BoxKey | back to summary |
|---|---|
| private BoxKey(double width, double height, double depth) | |
| 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
| |