javax.media.j3d
Class Shape3DCompileRetained
java.lang.Object
javax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeRetained
javax.media.j3d.LeafRetained
javax.media.j3d.Shape3DRetained
javax.media.j3d.Shape3DCompileRetained
- All Implemented Interfaces:
- java.lang.Cloneable, NnuId
class Shape3DCompileRetained
- extends Shape3DRetained
A leaf node that holds a merged shapes in compile mode
Field Summary |
(package private) java.util.ArrayList |
geometryInfo
|
(package private) int |
numShapes
|
(package private) java.lang.Object[] |
srcList
|
Fields inherited from class javax.media.j3d.Shape3DRetained |
altApps, appearance, APPEARANCE_CHANGED, APPEARANCEOVERRIDE_CHANGED, appearanceOverrideEnable, bounds, BOUNDS_CHANGED, branchGroupPath, changedFrequent, closestSwitchIndex, closestSwitchParent, COLLISION_CHANGED, collisionBound, collisionVwcBound, fogs, GEOMETRY_CHANGED, geometryList, inImmCtx, isCollidable, isDirty, isPickable, key, LAST_DEFINED_BIT, lights, mirrorShape3D, modelClips, numAltApps, numfogs, numlights, numModelClips, orderedPath, otherAppearance, sourceNode, targetThreads, viewList, visible, vwcBounds |
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 |
Method Summary |
(package private) java.util.Enumeration |
getAllGeometries(int childIndex)
Returns an enumeration of this Shape3D node's list of geometry
components. |
(package private) Bounds |
getBounds(int childIndex)
|
(package private) Bounds |
getCollisionBounds(int childIndex)
Gets the collision bounds of a node. |
(package private) Geometry |
getGeometry(int i,
int childIndex)
Retrieves the geometry component of this Shape3D node. |
(package private) boolean |
intersect(PickInfo pickInfo,
PickShape pickShape,
int flags,
java.util.ArrayList geometryList)
|
(package private) boolean |
intersect(SceneGraphPath path,
PickShape pickShape,
double[] dist)
Check if the geometry component of this shape node under path
intersects with the pickRay. |
(package private) int |
numGeometries(int childIndex)
Returns the number of geometry components in this Shape3D node's
list of geometry components. |
Methods inherited from class javax.media.j3d.Shape3DRetained |
addAltApp, addFog, addGeometry, addLight, addModelClip, allowIntersect, checkEquivalenceClass, clearLive, clearMirrorShape, compile, computeCombineBounds, doSetLive, getAppearance, getAppearanceOverrideEnable, getBounds, getCombineBounds, getEffectiveBounds, getGeomAtom, getGeomAtomsArray, getGeomAtomsList, getInImmCtx, getLocalBounds, getMirrorObjects, getMirrorShape, getMirrorShape, getPrimaryViewIdx, handleFrequencyChange, indexOfGeometry, initializeGAtom, initMirrorShape3D, insertGeometry, intersect, intersectGeometryList, intersectGeometryList, isAlphaEditable, isAlphaFrequentlyEditable, isEquivalent, isStatic, merge, removeAllGeometries, removeAltApp, removeFog, removeGeometry, removeGeometry, removeLight, removeModelClip, searchGeometryAtoms, setAppearance, setAppearanceOverrideEnable, setBounds, setBoundsAutoCompute, setCollisionBounds, setGeomAtom, setGeometry, setInImmCtx, setLive, setMorphGeometry, shapeIsMergeable, staticXformCanBeApplied, updateBounds, updateCollidable, updateImmediateMirrorObject, updatePickable, willRemainOpaque |
Methods inherited from class javax.media.j3d.NodeRetained |
computeNonLiveLocalToVworld, dirtyBoundsCache, equal, findCollidableFlags, findPickableFlags, findTransformLevels, getBoundsAutoCompute, getCollidable, getCurrentLocalToVworld, getCurrentLocalToVworld, getCurrentLocalToVworld, getId, getLastLocalToVworld, getLastLocalToVworld, getLastLocalToVworld, getLocale, getLocalToVworld, getLocalToVworld, getLocalToVworld, getParent, getPickable, getVirtualUniverse, mergeTransform, notifySceneGraphChanged, processViewSpecificInfo, recombineAbove, removeNodeData, setAuxData, setCollidable, setNodeData, setParent, setPickable, transformBounds, updateLocalToVworld |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
clearLive, clearLive, clone, doSetLive, getSource, isInSetLive, markAsLive, setCompiled, setLive, setSource, traverse |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numShapes
int numShapes
geometryInfo
java.util.ArrayList geometryInfo
srcList
java.lang.Object[] srcList
Shape3DCompileRetained
Shape3DCompileRetained(Shape3DRetained[] shapes,
int nShapes,
int compileFlags)
getCollisionBounds
Bounds getCollisionBounds(int childIndex)
- Description copied from class:
Shape3DRetained
- Gets the collision bounds of a node.
- Overrides:
getCollisionBounds
in class Shape3DRetained
- Returns:
- the node's bounding object
numGeometries
int numGeometries(int childIndex)
- Description copied from class:
Shape3DRetained
- Returns the number of geometry components in this Shape3D node's
list of geometry components.
- Overrides:
numGeometries
in class Shape3DRetained
- Returns:
- the number of geometry components in this Shape3D node's
list of geometry components.
getGeometry
Geometry getGeometry(int i,
int childIndex)
- Description copied from class:
Shape3DRetained
- Retrieves the geometry component of this Shape3D node.
- Overrides:
getGeometry
in class Shape3DRetained
- Returns:
- the geometry component of this shape node
getAllGeometries
java.util.Enumeration getAllGeometries(int childIndex)
- Description copied from class:
Shape3DRetained
- Returns an enumeration of this Shape3D node's list of geometry
components.
- Overrides:
getAllGeometries
in class Shape3DRetained
- Returns:
- an Enumeration object containing all geometry components in
this Shape3D node's list of geometry components.
getBounds
Bounds getBounds(int childIndex)
intersect
boolean intersect(SceneGraphPath path,
PickShape pickShape,
double[] dist)
- Check if the geometry component of this shape node under path
intersects with the pickRay.
- Overrides:
intersect
in class Shape3DRetained
- Returns:
- true if intersected else false. If return is true, dist
contains the closest
distance of intersection.
- Throws:
java.lang.IllegalArgumentException
- if path
is
invalid.
intersect
boolean intersect(PickInfo pickInfo,
PickShape pickShape,
int flags,
java.util.ArrayList geometryList)
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.