public class NGSubScene extends NGNode
NGNode.DirtyFlag, NGNode.RenderRootResult
Modifier and Type | Field and Description |
---|---|
private NGCamera |
camera |
private boolean |
depthBuffer |
private Paint |
fillPaint |
private boolean |
isOpaque |
private double |
lastScaledH |
private double |
lastScaledW |
private NGLightBase[] |
lights |
private boolean |
msaa |
private boolean |
renderSG |
private RTTexture |
resolveRTT |
private NGNode |
root |
private RTTexture |
rtt |
private float |
slHeight |
private float |
slWidth |
(package private) static double |
THRESHOLD |
childDirty, contentBounds, cullingBits, dirty, DIRTY_CHILDREN_ACCUMULATED_THRESHOLD, DIRTY_REGION_CONTAINS_NODE_BOUNDS, DIRTY_REGION_CONTAINS_OR_INTERSECTS_NODE_BOUNDS, DIRTY_REGION_INTERSECTS_NODE_BOUNDS, dirtyBounds, dirtyChildrenAccumulated, TEMP_TRANSFORM, transformedBounds
Modifier | Constructor and Description |
---|---|
private |
NGSubScene() |
|
NGSubScene(boolean depthBuffer,
boolean msaa) |
Modifier and Type | Method and Description |
---|---|
private void |
applyBackgroundFillPaint(Graphics g) |
protected void |
geometryChanged() |
NGCamera |
getCamera() |
NGLightBase[] |
getLights() |
protected boolean |
hasOverlappingContents() |
private static double |
hypot(double x,
double y,
double z) |
private void |
invalidateRTT() |
private static boolean |
isDirectBlitTransform(BaseTransform tx,
double sx,
double sy) |
void |
markContentDirty() |
protected void |
renderContent(Graphics g) |
void |
renderForcedContent(Graphics gOptional)
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.
|
void |
setCamera(NGCamera camera) |
void |
setFillPaint(java.lang.Object paint) |
void |
setHeight(float height) |
void |
setLights(NGLightBase[] lights) |
void |
setRoot(NGNode root) |
void |
setWidth(float width) |
protected void |
visualsChanged()
Invoked by subclasses whenever some change to the geometry or visuals
has occurred.
|
accumulateDirtyRegions, accumulateGroupDirtyRegion, accumulateNodeDirtyRegion, applyClip, applyEffect, applyTransform, checkBoundsInQuad, clearDirty, clearDirtyTree, clearPainted, computeNodeRenderRoot, computeOpaqueRegion, computePadding, computeRenderRoot, doPreCulling, doRender, drawDirtyOpts, effectChanged, getCacheFilter, getClipNode, getClippedBounds, getCompleteBounds, getContentBounds, getEffect, getEffectBounds, getEffectFilter, getFilterContext, getName, getNodeBlendMode, getOpacity, getOpaqueRegion, getParent, getRenderRoot, getTransform, hasOpaqueRegion, hasVisuals, invalidateCache, invalidateCacheByTranslation, invalidateOpaqueRegion, isClean, isContentBounds2D, isDepthTest, isOpaqueRegionInvalid, isReadbackSupported, isRectClip, isShape3D, isVisible, markCullRegions, markDirty, markTreeDirty, markTreeDirtyNoIncrement, needsBlending, printDirtyOpts, release, render, renderClip, renderEffect, renderForClip, setCachedAsBitmap, setClipNode, setContentBounds, setDepthTest, setEffect, setName, setNodeBlendMode, setOpacity, setParent, setTransformedBounds, setTransformMatrix, setVisible, supportsOpaqueRegions, toString
private float slWidth
private float slHeight
private double lastScaledW
private double lastScaledH
private RTTexture rtt
private RTTexture resolveRTT
private NGNode root
private boolean renderSG
private final boolean depthBuffer
private final boolean msaa
private Paint fillPaint
private NGCamera camera
private NGLightBase[] lights
private boolean isOpaque
static final double THRESHOLD
public NGSubScene(boolean depthBuffer, boolean msaa)
private NGSubScene()
public void setRoot(NGNode root)
public void setFillPaint(java.lang.Object paint)
public void setCamera(NGCamera camera)
public void setWidth(float width)
public void setHeight(float height)
public NGLightBase[] getLights()
public void setLights(NGLightBase[] lights)
public void markContentDirty()
protected void visualsChanged()
NGNode
visualsChanged
in class NGNode
protected void geometryChanged()
geometryChanged
in class NGNode
private void invalidateRTT()
protected boolean hasOverlappingContents()
hasOverlappingContents
in class NGNode
private void applyBackgroundFillPaint(Graphics g)
public void renderForcedContent(Graphics gOptional)
NGNode
renderForcedContent
in class NGNode
gOptional
- the Graphics object that was used to render the
Scene, or nullprivate static double hypot(double x, double y, double z)
protected void renderContent(Graphics g)
renderContent
in class NGNode
private static boolean isDirectBlitTransform(BaseTransform tx, double sx, double sy)
public NGCamera getCamera()