javax.media.j3d
Class LinearFogRetained

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.LinearFogRetained
All Implemented Interfaces:
java.lang.Cloneable, NnuId

 class LinearFogRetained
extends FogRetained

The LinearFog leaf node defines distance parameters for linear fog.


Field Summary
(package private) static int BACK_DISTANCE_CHANGED
           
private  double backDistance
           
private  double backDistanceInEc
           
(package private) static int FRONT_DISTANCE_CHANGED
           
private  double frontDistance
          Fog front and back distance
private  double frontDistanceInEc
           
 
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
LinearFogRetained()
           
 
Method Summary
(package private)  double getBackDistance()
          Gets back distance for fog
(package private)  double getFrontDistance()
          Gets front distance for fog
(package private)  void initBackDistance(double backDistance)
          Initializes back distance for fog
(package private)  void initFrontDistance(double frontDistance)
          Initializes front distance for fog before the object is live
(package private)  void setBackDistance(double backDistance)
          Sets back distance for fog
(package private)  void setFrontDistance(double frontDistance)
          Sets front distance for fog and sends 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, clone, 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

frontDistance

private double frontDistance
Fog front and back distance


backDistance

private double backDistance

frontDistanceInEc

private double frontDistanceInEc

backDistanceInEc

private double backDistanceInEc

FRONT_DISTANCE_CHANGED

static final int FRONT_DISTANCE_CHANGED
See Also:
Constant Field Values

BACK_DISTANCE_CHANGED

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

LinearFogRetained

LinearFogRetained()
Method Detail

initFrontDistance

void initFrontDistance(double frontDistance)
Initializes front distance for fog before the object is live


setFrontDistance

void setFrontDistance(double frontDistance)
Sets front distance for fog and sends a message


getFrontDistance

double getFrontDistance()
Gets front distance for fog


initBackDistance

void initBackDistance(double backDistance)
Initializes back distance for fog


setBackDistance

void setBackDistance(double backDistance)
Sets back distance for fog


getBackDistance

double getBackDistance()
Gets back distance for fog


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

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

updateMirrorObject

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

Overrides:
updateMirrorObject 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.