Class Shape3D

java.lang.Object
javafx.scene.Node
javafx.scene.shape.Shape3D
All Implemented Interfaces:
Styleable, EventTarget
Direct Known Subclasses:
Box, Cylinder, MeshView, Sphere

public abstract class Shape3D
extends Node
The Shape3D base class provides definitions of common properties for objects that represent some form of 3D geometric shape. These properties include: Note that this is a conditional feature. See ConditionalFeature.SCENE3D for more information.

An application should not extend the Shape3D class directly. Doing so may lead to an UnsupportedOperationException being thrown.

Since:
JavaFX 8.0
  • Property Details

  • Constructor Details

    • Shape3D

      protected Shape3D()
  • Method Details

    • setMaterial

      public final void setMaterial​(Material value)
      Sets the value of the property material.
      Property description:
      Defines the material this Shape3D. The default material is null. If Material is null, a PhongMaterial with a diffuse color of Color.LIGHTGRAY is used for rendering.
      Default value:
      null
    • getMaterial

      public final Material getMaterial()
      Gets the value of the property material.
      Property description:
      Defines the material this Shape3D. The default material is null. If Material is null, a PhongMaterial with a diffuse color of Color.LIGHTGRAY is used for rendering.
      Default value:
      null
    • materialProperty

      public final ObjectProperty<Material> materialProperty()
      Defines the material this Shape3D. The default material is null. If Material is null, a PhongMaterial with a diffuse color of Color.LIGHTGRAY is used for rendering.
      Default value:
      null
      See Also:
      getMaterial(), setMaterial(Material)
    • setDrawMode

      public final void setDrawMode​(DrawMode value)
      Sets the value of the property drawMode.
      Property description:
      Defines the draw mode used to render this 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.
      Default value:
      DrawMode.FILL
    • getDrawMode

      public final DrawMode getDrawMode()
      Gets the value of the property drawMode.
      Property description:
      Defines the draw mode used to render this 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.
      Default value:
      DrawMode.FILL
    • drawModeProperty

      public final ObjectProperty<DrawMode> drawModeProperty()
      Defines the draw mode used to render this 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.
      Default value:
      DrawMode.FILL
      See Also:
      getDrawMode(), setDrawMode(DrawMode)
    • setCullFace

      public final void setCullFace​(CullFace value)
      Sets the value of the property cullFace.
      Property description:
      Defines the cullFace this Shape3D.
      Default value:
      CullFace.BACK
    • getCullFace

      public final CullFace getCullFace()
      Gets the value of the property cullFace.
      Property description:
      Defines the cullFace this Shape3D.
      Default value:
      CullFace.BACK
    • cullFaceProperty

      public final ObjectProperty<CullFace> cullFaceProperty()
      Defines the cullFace this Shape3D.
      Default value:
      CullFace.BACK
      See Also:
      getCullFace(), setCullFace(CullFace)