abstract class ViewPainter
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private RectBounds |
clip |
private Rectangle |
dirtyRect |
private DirtyRegionContainer |
dirtyRegionContainer |
private DirtyRegionPool |
dirtyRegionPool |
private RectBounds |
dirtyRegionTemp |
protected ResourceFactory |
factory |
protected boolean |
freshBackBuffer |
private int |
height |
private NGNode |
overlayRoot
root is the root node of the scene.
|
protected int |
penHeight |
protected int |
penWidth |
protected Presentable |
presentable |
private GeneralTransform3D |
projTx |
protected static java.util.concurrent.locks.ReentrantLock |
renderLock |
private NGNode |
root
root is the root node of the scene.
|
private static NodePath[] |
ROOT_PATHS
An array of initially empty ROOT_PATHS.
|
private Affine3D |
scaleTx |
private RTTexture |
sceneBuffer
This is used for drawing dirty regions and overdraw rectangles in cases where we are
not drawing the entire scene every time (specifically, when depth buffer is disabled).
|
protected SceneState |
sceneState |
private Affine3D |
tx |
protected int |
viewHeight |
private GeneralTransform3D |
viewProjTx |
protected int |
viewWidth |
private int |
width |
Modifier | Constructor and Description |
---|---|
protected |
ViewPainter(GlassScene gs) |
Modifier and Type | Method and Description |
---|---|
private void |
adjustPerspective(NGCamera camera) |
protected void |
disposePresentable() |
private void |
doPaint(Graphics g,
NodePath renderRootPath) |
protected float |
getPixelScaleFactor() |
private static NodePath |
getRootPath(int i) |
protected void |
paintImpl(Graphics backBufferGraphics) |
private void |
paintOverdraw(Graphics g,
Rectangle clip)
Utility method for painting the overdraw rectangles.
|
protected void |
setOverlayRoot(NGNode node) |
protected void |
setRoot(NGNode node) |
protected boolean |
validateStageGraphics() |
private static NodePath[] ROOT_PATHS
protected static final java.util.concurrent.locks.ReentrantLock renderLock
protected int penWidth
protected int penHeight
protected int viewWidth
protected int viewHeight
protected final SceneState sceneState
protected Presentable presentable
protected ResourceFactory factory
protected boolean freshBackBuffer
private int width
private int height
private NGNode root
private NGNode overlayRoot
private Rectangle dirtyRect
private RectBounds clip
private RectBounds dirtyRegionTemp
private DirtyRegionPool dirtyRegionPool
private DirtyRegionContainer dirtyRegionContainer
private Affine3D tx
private Affine3D scaleTx
private GeneralTransform3D viewProjTx
private GeneralTransform3D projTx
private RTTexture sceneBuffer
protected ViewPainter(GlassScene gs)
protected final void setRoot(NGNode node)
protected final void setOverlayRoot(NGNode node)
private void adjustPerspective(NGCamera camera)
protected void paintImpl(Graphics backBufferGraphics)
private void paintOverdraw(Graphics g, Rectangle clip)
g
- clip
- private static NodePath getRootPath(int i)
protected void disposePresentable()
protected boolean validateStageGraphics()
protected float getPixelScaleFactor()