javax.media.j3d
Class ExponentialFogRetained

java.lang.Object
  extended by javax.media.j3d.IndexedObject
      extended by javax.media.j3d.SceneGraphObjectRetained
          extended by javax.media.j3d.NodeRetained
              extended by javax.media.j3d.LeafRetained
                  extended by javax.media.j3d.FogRetained
                      extended by javax.media.j3d.ExponentialFogRetained
All Implemented Interfaces:
java.lang.Cloneable, NnuId

 class ExponentialFogRetained
extends FogRetained

The ExponentialFog leaf node defines distance parameters for exponential fog.


Field Summary
private  float density
           
(package private) static int DENSITY_CHANGED
           
private  float densityInEc
           
 
Fields inherited from class javax.media.j3d.FogRetained
boundingLeaf, BOUNDINGLEAF_CHANGED, BOUNDS_CHANGED, CLEAR_MIRROR, color, COLOR_CHANGED, environmentSets, inImmCtx, INIT_MIRROR, isDirty, isScoped, isViewScoped, LAST_DEFINED_BIT, mirrorFog, region, regionOfInfluence, SCOPE_CHANGED, scopes, sgFog, targetThreads, tempKey
 
Fields inherited from class javax.media.j3d.LeafRetained
boundsDirty, switchState
 
Fields inherited from class javax.media.j3d.NodeRetained
ALTERNATEAPPEARANCE, AMBIENTLIGHT, apiBounds, BACKGROUND, BACKGROUNDSOUND, BEHAVIOR, BOUNDINGLEAF, boundsAutoCompute, BRANCHGROUP, branchGroupPaths, cachedBounds, childIndex, CLIP, collidable, CONESOUND, CONTAINS_VIEWPLATFORM, CURRENT_LOCAL_TO_VWORLD, DECALGROUP, DIRECTIONALLIGHT, EXPONENTIALFOG, geometryBackground, GROUP, inSharedGroup, LAST_LOCAL_TO_VWORLD, LINEARFOG, LINK, localBounds, locale, localToVworld, localToVworldIndex, localToVworldKeys, MODELCLIP, MORPH, nnuId, nodeId, nodeType, NUMNODES, ORDEREDGROUP, orderedId, ORIENTEDSHAPE3D, parent, parentSwitchLink, parentTransformLink, pickable, POINTLIGHT, POINTSOUND, refCount, SHAPE, SHAREDGROUP, SOUNDSCAPE, SPOTLIGHT, staticTransform, SWITCH, TRANSFORMGROUP, universe, validCachedBounds, VIEWPLATFORM, VIEWSPECIFICGROUP
 
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source
 
Fields inherited from class javax.media.j3d.IndexedObject
listIdx
 
Constructor Summary
ExponentialFogRetained()
           
 
Method Summary
protected  java.lang.Object clone()
           
(package private)  float getDensity()
          Gets fog density
(package private)  void initDensity(float density)
          initializes fog density
(package private)  void setDensity(float density)
          Sets fog density and send a message
(package private)  void setLive(SetLiveState s)
          This setLive routine just calls the superclass's method (after checking for use by an immediate context).
(package private)  void update(Context ctx, double scale)
          This method and its native counterpart update the native context fog values.
(package private)  void updateMirrorObject(java.lang.Object[] objs)
          The update Object function.
protected  void validateDistancesInEc(double vworldToCoexistenceScale)
          Scale distances from local to eye coordinate.
 
Methods inherited from class javax.media.j3d.FogRetained
addScope, clearLive, clearMirrorObject, getAllScopes, getColor, getInfluencingBoundingLeaf, getInfluencingBounds, getInImmCtx, getLocalToVworldScale, getMirrorObjects, getScope, indexOfScope, initAddScope, initColor, initColor, initInfluencingBoundingLeaf, initInfluencingBounds, initInsertScope, initMirrorObject, initRemoveAllScopes, initRemoveScope, initRemoveScope, initScope, insertScope, isScoped, mergeTransform, numScopes, removeAllScopes, removeScope, removeScope, sendMessage, setColor, setColor, setInfluencingBoundingLeaf, setInfluencingBounds, setInImmCtx, setLocalToVworldScale, setScope, updateBoundingLeaf, updateImmediateMirrorObject, updateImmediateTransformChange, updateTransformChange
 
Methods inherited from class javax.media.j3d.LeafRetained
clone, updateBounds
 
Methods inherited from class javax.media.j3d.NodeRetained
computeCombineBounds, computeNonLiveLocalToVworld, dirtyBoundsCache, doSetLive, equal, findCollidableFlags, findPickableFlags, findTransformLevels, getBounds, getBoundsAutoCompute, getCollidable, getCurrentLocalToVworld, getCurrentLocalToVworld, getCurrentLocalToVworld, getEffectiveBounds, getId, getLastLocalToVworld, getLastLocalToVworld, getLastLocalToVworld, getLocalBounds, getLocale, getLocalToVworld, getLocalToVworld, getLocalToVworld, getParent, getPickable, getVirtualUniverse, isStatic, merge, notifySceneGraphChanged, processViewSpecificInfo, recombineAbove, removeNodeData, searchGeometryAtoms, setAuxData, setBounds, setBoundsAutoCompute, setCollidable, setNodeData, setParent, setPickable, transformBounds, updateCollidable, updateLocalToVworld, updatePickable
 
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained
clearLive, clearLive, compile, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setCompiled, setLive, setSource, traverse
 
Methods inherited from class javax.media.j3d.IndexedObject
getIdxUsed, incIdxUsed
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

density

private float density

densityInEc

private float densityInEc

DENSITY_CHANGED

static final int DENSITY_CHANGED
See Also:
Constant Field Values
Constructor Detail

ExponentialFogRetained

ExponentialFogRetained()
Method Detail

initDensity

void initDensity(float density)
initializes fog density


setDensity

void setDensity(float density)
Sets fog density and send a message


getDensity

float getDensity()
Gets fog density


setLive

void setLive(SetLiveState s)
Description copied from class: FogRetained
This setLive routine just calls the superclass's method (after checking for use by an immediate context). It is up to the subclasses of fog to add themselves to the list of fogs

Overrides:
setLive in class FogRetained

update

void update(Context ctx,
            double scale)
This method and its native counterpart update the native context fog values.

Specified by:
update in class FogRetained

updateMirrorObject

void updateMirrorObject(java.lang.Object[] objs)
Description copied from class: FogRetained
The update Object function.

Overrides:
updateMirrorObject in class FogRetained

clone

protected java.lang.Object clone()
Overrides:
clone in class FogRetained

validateDistancesInEc

protected void validateDistancesInEc(double vworldToCoexistenceScale)
Scale distances from local to eye coordinate.

Overrides:
validateDistancesInEc in class FogRetained


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.