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

public Class NGSubScene

extends NGNode
Class Inheritance
Imports
com.sun.javafx.geom.transform.BaseTransform, com.sun.prism.CompositeMode, .Graphics, .RTTexture, .RenderTarget, .ResourceFactory, .Texture, com.sun.prism.paint.Color, .Paint

Author
Thor Johannesson

Field Summary

Modifier and TypeField and Description
private NGCamera
private final boolean
private Paint
private boolean
private double
private double
private NGLightBase[]
private final boolean
private boolean
private RTTexture
private NGNode
private RTTexture
private float
private float
pack-priv static final double
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
NGSubScene(boolean depthBuffer, boolean msaa)

private

Method Summary

Modifier and TypeMethod and Description
private void
public void
clearDirty()

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

Clears the dirty flag.

protected void
public NGCamera
public NGLightBase[]
protected boolean
private static double
hypot(double x, double y, double z)

private void
private static boolean
isDirectBlitTransform(BaseTransform tx, double sx, double sy)

public void
protected void
public void
renderForcedContent(Graphics
the Graphics object that was used to render the Scene, or null
gOptional
)

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

Called on every render pulse for all nodes in case they have render-time operations that must be completed on a pulse, but were not otherwise rendered by the ordinary damage management logic.

public void
public void
public void
setHeight(float height)

public void
public void
public void
setWidth(float width)

protected void
visualsChanged()

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

Invoked by subclasses whenever some change to the geometry or visuals has occurred.

Inherited from com.sun.javafx.sg.prism.NGNode:
accumulateDirtyRegionsaccumulateGroupDirtyRegionaccumulateNodeDirtyRegionapplyClipapplyEffectapplyTransformcheckBoundsInQuadclearPaintedcomputeNodeRenderRootcomputeOpaqueRegioncomputePaddingcomputeRenderRootdoPreCullingdoRenderdrawDirtyOptseffectChangedgetCacheFiltergetClipNodegetClippedBoundsgetCompleteBoundsgetContentBoundsgetEffectgetEffectBoundsgetEffectFiltergetFilterContextgetNamegetNodeBlendModegetOpacitygetOpaqueRegiongetParentgetRenderRootgetTransformhasOpaqueRegionhasVisualsinvalidateCacheinvalidateCacheByTranslationinvalidateOpaqueRegionisCleanisContentBounds2DisDepthTestisOpaqueRegionInvalidisReadbackSupportedisRectClipisShape3DisVisiblemarkCullRegionsmarkDirtymarkTreeDirtymarkTreeDirtyNoIncrementneedsBlendingprintDirtyOptsreleaserenderrenderCliprenderEffectrenderForClipsetCachedAsBitmapsetClipNodesetContentBoundssetDepthTestsetEffectsetNamesetNodeBlendModesetOpacitysetParentsetTransformedBoundssetTransformMatrixsetViewOrdersetVisiblesupportsOpaqueRegionstoString

Field Detail

cameraback to summary
private NGCamera camera
depthBufferback to summary
private final boolean depthBuffer
fillPaintback to summary
private Paint fillPaint
isOpaqueback to summary
private boolean isOpaque
lastScaledHback to summary
private double lastScaledH
lastScaledWback to summary
private double lastScaledW
lightsback to summary
private NGLightBase[] lights
msaaback to summary
private final boolean msaa
renderSGback to summary
private boolean renderSG
resolveRTTback to summary
private RTTexture resolveRTT
rootback to summary
private NGNode root
rttback to summary
private RTTexture rtt
slHeightback to summary
private float slHeight
slWidthback to summary
private float slWidth
THRESHOLDback to summary
pack-priv static final double THRESHOLD

Constructor Detail

NGSubSceneback to summary
public NGSubScene(boolean depthBuffer, boolean msaa)
NGSubSceneback to summary
private NGSubScene()

Method Detail

applyBackgroundFillPaintback to summary
private void applyBackgroundFillPaint(Graphics g)
clearDirtyback to summary
public void clearDirty()

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

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

Clears the dirty flag. This should only happen during rendering.

Annotations
@Override
geometryChangedback to summary
protected void geometryChanged()

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

Annotations
@Override
getCameraback to summary
public NGCamera getCamera()
getLightsback to summary
public NGLightBase[] getLights()
hasOverlappingContentsback to summary
protected boolean hasOverlappingContents()

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

Annotations
@Override
hypotback to summary
private static double hypot(double x, double y, double z)
invalidateRTTback to summary
private void invalidateRTT()
isDirectBlitTransformback to summary
private static boolean isDirectBlitTransform(BaseTransform tx, double sx, double sy)
markContentDirtyback to summary
public void markContentDirty()
renderContentback to summary
protected void renderContent(Graphics g)

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

Annotations
@Override
renderForcedContentback to summary
public void renderForcedContent(Graphics gOptional)

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

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

Called on every render pulse for all nodes in case they have render-time operations that must be completed on a pulse, but were not otherwise rendered by the ordinary damage management logic. The graphics argument will be the graphics that was used to render the scene if it is available, but may be null for cases when the scene required no visible updates and thus no back buffer graphics was actually obtained. Implementors must have a backup plan for that case when the Graphics object is null.

Parameters
gOptional:Graphics

the Graphics object that was used to render the Scene, or null

Annotations
@Override
setCameraback to summary
public void setCamera(NGCamera camera)
setFillPaintback to summary
public void setFillPaint(Object paint)
setHeightback to summary
public void setHeight(float height)
setLightsback to summary
public void setLights(NGLightBase[] lights)
setRootback to summary
public void setRoot(NGNode root)
setWidthback to summary
public void setWidth(float width)
visualsChangedback to summary
protected void visualsChanged()

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

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

Invoked by subclasses whenever some change to the geometry or visuals has occurred. This will mark the node as dirty and invalidate the cache.

Annotations
@Override