public class NGSubScene extends NGNode
NGNode.DirtyFlag, NGNode.RenderRootResult
childDirty, contentBounds, cullingBits, dirty, DIRTY_CHILDREN_ACCUMULATED_THRESHOLD, dirtyChildrenAccumulated, TEMP_TRANSFORM, transformedBounds
Constructor and Description |
---|
NGSubScene(boolean depthBuffer,
boolean msaa) |
Modifier and Type | Method and Description |
---|---|
protected void |
geometryChanged() |
NGCamera |
getCamera() |
NGLightBase[] |
getLights() |
protected boolean |
hasOverlappingContents() |
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(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, applyClip, applyEffect, applyTransform, clearDirty, clearDirtyTree, clearPainted, computeOpaqueRegion, computePadding, doPreCulling, doRender, drawDirtyOpts, effectChanged, getCacheFilter, getClipNode, getClippedBounds, getCompleteBounds, getContentBounds, getEffect, getEffectBounds, getEffectFilter, getName, getNodeBlendMode, getOpacity, getOpaqueRegion, getParent, getRenderRoot, getTransform, hasOpaqueRegion, hasVisuals, invalidateCache, invalidateCacheByTranslation, invalidateOpaqueRegion, isClean, isContentBounds2D, isDepthTest, isRectClip, isVisible, markDirty, markTreeDirty, markTreeDirtyNoIncrement, needsBlending, printDirtyOpts, release, render, renderEffect, setCachedAsBitmap, setClipNode, setContentBounds, setDepthTest, setEffect, setName, setNodeBlendMode, setOpacity, setParent, setTransformedBounds, setTransformMatrix, setVisible, supportsOpaqueRegions, toString
public void setRoot(NGNode root)
public void setFillPaint(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
protected boolean hasOverlappingContents()
hasOverlappingContents
in class NGNode
public void renderForcedContent(Graphics gOptional)
NGNode
renderForcedContent
in class NGNode
gOptional
- the Graphics object that was used to render the
Scene, or nullprotected void renderContent(Graphics g)
renderContent
in class NGNode
public NGCamera getCamera()
Copyright © 2020. All rights reserved.