public abstract class NGCamera extends NGNode
NGNode.DirtyFlag, NGNode.RenderRootResult| Modifier and Type | Field and Description |
|---|---|
static NGCamera |
INSTANCE |
protected GeneralTransform3D |
projViewTx |
protected double |
viewHeight |
protected double |
viewWidth |
private Vec3d |
worldPosition |
protected Affine3D |
worldTransform |
protected double |
zFar |
protected double |
zNear |
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| Constructor and Description |
|---|
NGCamera() |
| Modifier and Type | Method and Description |
|---|---|
abstract PickRay |
computePickRay(float x,
float y,
PickRay pickRay) |
protected void |
doRender(Graphics g)
Invoked only by the final render method.
|
double |
getFarClip() |
double |
getNearClip() |
Vec3d |
getPositionInWorld(Vec3d pos) |
GeneralTransform3D |
getProjViewTx(GeneralTransform3D tx) |
double |
getViewHeight() |
double |
getViewWidth() |
protected boolean |
hasOverlappingContents() |
void |
release()
*
Stuff *
*
|
protected void |
renderContent(Graphics g) |
void |
setFarClip(float farClip) |
void |
setNearClip(float nearClip) |
void |
setPosition(Vec3d position) |
void |
setProjViewTransform(GeneralTransform3D projViewTx) |
void |
setViewHeight(double viewHeight) |
void |
setViewWidth(double viewWidth) |
void |
setWorldTransform(Affine3D localToWorldTx) |
accumulateDirtyRegions, accumulateGroupDirtyRegion, accumulateNodeDirtyRegion, applyClip, applyEffect, applyTransform, checkBoundsInQuad, clearDirty, clearDirtyTree, clearPainted, computeNodeRenderRoot, computeOpaqueRegion, computePadding, computeRenderRoot, doPreCulling, drawDirtyOpts, effectChanged, geometryChanged, 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, render, renderClip, renderEffect, renderForcedContent, renderForClip, setCachedAsBitmap, setClipNode, setContentBounds, setDepthTest, setEffect, setName, setNodeBlendMode, setOpacity, setParent, setTransformedBounds, setTransformMatrix, setVisible, supportsOpaqueRegions, toString, visualsChangedpublic static final NGCamera INSTANCE
protected Affine3D worldTransform
protected double viewWidth
protected double viewHeight
protected double zNear
protected double zFar
private Vec3d worldPosition
protected GeneralTransform3D projViewTx
protected void doRender(Graphics g)
NGNodeprotected void renderContent(Graphics g)
renderContent in class NGNodeprotected boolean hasOverlappingContents()
hasOverlappingContents in class NGNodepublic void setNearClip(float nearClip)
public double getNearClip()
public void setFarClip(float farClip)
public double getFarClip()
public void setViewWidth(double viewWidth)
public double getViewWidth()
public void setViewHeight(double viewHeight)
public double getViewHeight()
public void setProjViewTransform(GeneralTransform3D projViewTx)
public void setPosition(Vec3d position)
public void setWorldTransform(Affine3D localToWorldTx)
public GeneralTransform3D getProjViewTx(GeneralTransform3D tx)
public void release()
NGNode