public abstract class Shape3D
extends Node
Shape3D
base class provides definitions of common properties for
objects that represent some form of 3D geometric shape. These properties
include:
Material
to be applied to the fillable interior of the
shape or the outline of the shape (see setMaterial(Material)
).
setDrawMode(javafx.scene.shape.DrawMode)
).
setCullFace(javafx.scene.shape.CullFace)
).
ConditionalFeature.SCENE3D
for more information.
An application should not extend the Shape3D class directly. Doing so may lead to an UnsupportedOperationException being thrown.
Type | Property and Description |
---|---|
<any> |
cullFace
Defines the cullFace this
Shape3D . |
<any> |
drawMode
Defines the draw mode used to render this
Shape3D . |
<any> |
material
Defines the material this
Shape3D . |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Shape3D.Key
Used by the caching mechanism to compare between instances of the same shape.
|
Modifier and Type | Field and Description |
---|---|
private <any> |
cullFace
Defines the cullFace this
Shape3D . |
private static PhongMaterial |
DEFAULT_MATERIAL |
private <any> |
drawMode
Defines the draw mode used to render this
Shape3D . |
(package private) Shape3D.Key |
key |
(package private) PredefinedMeshManager |
manager |
private <any> |
material
Defines the material this
Shape3D . |
Modifier | Constructor and Description |
---|---|
protected |
Shape3D() |
Modifier and Type | Method and Description |
---|---|
<any> |
cullFaceProperty()
Defines the cullFace this
Shape3D . |
private boolean |
doComputeContains(double localX,
double localY) |
private BaseBounds |
doComputeGeomBounds(BaseBounds bounds,
BaseTransform tx) |
private void |
doUpdatePeer() |
<any> |
drawModeProperty()
Defines the draw mode used to render this
Shape3D . |
CullFace |
getCullFace()
Gets the value of the property cullFace.
|
DrawMode |
getDrawMode()
Gets the value of the property drawMode.
|
Material |
getMaterial()
Gets the value of the property material.
|
<any> |
materialProperty()
Defines the material this
Shape3D . |
void |
setCullFace(CullFace value)
Sets the value of the property cullFace.
|
void |
setDrawMode(DrawMode value)
Sets the value of the property drawMode.
|
void |
setMaterial(Material value)
Sets the value of the property material.
|
public final <any> materialProperty
Shape3D
.
The default material is null. If Material
is null, a PhongMaterial
with a diffuse color of Color.LIGHTGRAY is used for rendering.getMaterial()
,
setMaterial(Material)
public final <any> drawModeProperty
Shape3D
.
DrawMode.LINE
is not available on embedded platforms.
If drawMode
is set to DrawMode.LINE
on an embedded
platform the default value of DrawMode.FILL
will be used instead.getDrawMode()
,
setDrawMode(DrawMode)
public final <any> cullFaceProperty
Shape3D
.getCullFace()
,
setCullFace(CullFace)
private static final PhongMaterial DEFAULT_MATERIAL
PredefinedMeshManager manager
Shape3D.Key key
private <any> material
Shape3D
.
The default material is null. If Material
is null, a PhongMaterial
with a diffuse color of Color.LIGHTGRAY is used for rendering.private <any> drawMode
Shape3D
.
DrawMode.LINE
is not available on embedded platforms.
If drawMode
is set to DrawMode.LINE
on an embedded
platform the default value of DrawMode.FILL
will be used instead.private <any> cullFace
Shape3D
.public final void setMaterial(Material value)
public final Material getMaterial()
public final <any> materialProperty()
Shape3D
.
The default material is null. If Material
is null, a PhongMaterial
with a diffuse color of Color.LIGHTGRAY is used for rendering.getMaterial()
,
setMaterial(Material)
public final void setDrawMode(DrawMode value)
public final DrawMode getDrawMode()
public final <any> drawModeProperty()
Shape3D
.
DrawMode.LINE
is not available on embedded platforms.
If drawMode
is set to DrawMode.LINE
on an embedded
platform the default value of DrawMode.FILL
will be used instead.getDrawMode()
,
setDrawMode(DrawMode)
public final void setCullFace(CullFace value)
public final CullFace getCullFace()
public final <any> cullFaceProperty()
Shape3D
.getCullFace()
,
setCullFace(CullFace)
private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx)
private boolean doComputeContains(double localX, double localY)
private void doUpdatePeer()