Top Description Fields Constructors Methods
com.sun.javafx.sg.prism

public abstract Class NGShape3D

extends NGNode
Class Inheritance
Known Direct Subclasses
com.sun.javafx.sg.prism.NGSphere, com.sun.javafx.sg.prism.NGBox, com.sun.javafx.sg.prism.NGCylinder, com.sun.javafx.sg.prism.NGMeshView
Imports
com.sun.javafx.geom.Vec3d, com.sun.javafx.geom.transform.Affine3D, com.sun.javafx.util.Utils, com.sun.prism.Graphics, .Material, .MeshView, .ResourceFactory, javafx.application.ConditionalFeature, .Platform, javafx.scene.shape.CullFace, .DrawMode

Todo

3D - Need documentation

Field Summary

Modifier and TypeField and Description
private CullFace
private DrawMode
private boolean
private NGPhongMaterial
private boolean
pack-priv NGTriangleMesh
private MeshView
Inherited from com.sun.javafx.sg.prism.NGNode:
childDirtycontentBoundscullingBitsdirtyDIRTY_CHILDREN_ACCUMULATED_THRESHOLDDIRTY_REGION_CONTAINS_NODE_BOUNDSDIRTY_REGION_CONTAINS_OR_INTERSECTS_NODE_BOUNDSDIRTY_REGION_INTERSECTS_NODE_BOUNDSdirtyBoundsdirtyChildrenAccumulatedTEMP_TRANSFORMtransformedBounds

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
addDirectionalLight(NGDirectionalLight light, int lightIndex, float r, float g, float b)

private void
addPointLight(NGPointLight light, int lightIndex, float r, float g, float b)

private void
addSpotLight(NGSpotLight light, int lightIndex, float r, float g, float b)

protected boolean
pack-priv void
pack-priv boolean
private boolean
public void
protected void
private void
private void
resetLight(int lightIndex)

public void
setCullFace(Object cullFace)

private void
setDefaultLight(Graphics g)

Creates a white point light at the camera's (eye) position.

public void
setDrawMode(Object drawMode)

public void
public void
setMesh(NGTriangleMesh triangleMesh)

private void
Inherited from com.sun.javafx.sg.prism.NGNode:
accumulateDirtyRegionsaccumulateGroupDirtyRegionaccumulateNodeDirtyRegionapplyClipapplyEffectapplyTransformcheckBoundsInQuadclearDirtyclearPaintedcomputeNodeRenderRootcomputeOpaqueRegioncomputePaddingcomputeRenderRootdoPreCullingdoRenderdrawDirtyOptseffectChangedgeometryChangedgetCacheFiltergetClipNodegetClippedBoundsgetCompleteBoundsgetContentBoundsgetEffectgetEffectBoundsgetEffectFiltergetFilterContextgetNamegetNodeBlendModegetOpacitygetOpaqueRegiongetParentgetRenderRootgetTransformhasOpaqueRegionhasVisualsinvalidateCacheinvalidateCacheByTranslationinvalidateOpaqueRegionisCleanisContentBounds2DisDepthTestisOpaqueRegionInvalidisReadbackSupportedisRectClipisVisiblemarkCullRegionsmarkDirtymarkTreeDirtymarkTreeDirtyNoIncrementneedsBlendingprintDirtyOptsrenderrenderCliprenderEffectrenderForcedContentrenderForClipsetCachedAsBitmapsetClipNodesetContentBoundssetDepthTestsetEffectsetNamesetNodeBlendModesetOpacitysetParentsetTransformedBoundssetTransformMatrixsetViewOrdersetVisiblesupportsOpaqueRegionstoStringvisualsChanged

Field Detail

cullFaceback to summary
private CullFace cullFace
drawModeback to summary
private DrawMode drawMode
drawModeDirtyback to summary
private boolean drawModeDirty
materialback to summary
private NGPhongMaterial material
materialDirtyback to summary
private boolean materialDirty
meshback to summary
pack-priv NGTriangleMesh mesh
meshViewback to summary
private MeshView meshView

Constructor Detail

NGShape3Dback to summary
public NGShape3D()

Method Detail

addDirectionalLightback to summary
private void addDirectionalLight(NGDirectionalLight light, int lightIndex, float r, float g, float b)
addPointLightback to summary
private void addPointLight(NGPointLight light, int lightIndex, float r, float g, float b)
addSpotLightback to summary
private void addSpotLight(NGSpotLight light, int lightIndex, float r, float g, float b)
hasOverlappingContentsback to summary
protected boolean hasOverlappingContents()

Implements abstract com.sun.javafx.sg.prism.NGNode.hasOverlappingContents.

Annotations
@Override
invalidateback to summary
pack-priv void invalidate()
isShape3Dback to summary
pack-priv boolean isShape3D()

Overrides com.sun.javafx.sg.prism.NGNode.isShape3D.

Annotations
@Override
noLightsback to summary
private boolean noLights(NGLightBase[] lights)
releaseback to summary
public void release()

Overrides com.sun.javafx.sg.prism.NGNode.release.

Doc from com.sun.javafx.sg.prism.NGNode.release.

* Stuff * *

Annotations
@Override
renderContentback to summary
protected void renderContent(Graphics g)

Implements abstract com.sun.javafx.sg.prism.NGNode.renderContent.

Annotations
@Override
renderMeshViewback to summary
private void renderMeshView(Graphics g)
resetLightback to summary
private void resetLight(int lightIndex)
setCullFaceback to summary
public void setCullFace(Object cullFace)
setDefaultLightback to summary
private void setDefaultLight(Graphics g)

Creates a white point light at the camera's (eye) position. The light uses the default attenuation parameters, which means that it is not attenuated (isAttenuated == 0).

setDrawModeback to summary
public void setDrawMode(Object drawMode)
setMaterialback to summary
public void setMaterial(NGPhongMaterial material)
setMeshback to summary
public void setMesh(NGTriangleMesh triangleMesh)
setupLightsback to summary
private void setupLights(Graphics g)