| java.lang.Object javax.media.j3d.IndexedObject javax.media.j3d.SceneGraphObjectRetained javax.media.j3d.NodeRetained javax.media.j3d.LeafRetained javax.media.j3d.Shape3DRetained
All known Subclasses: javax.media.j3d.Shape3DCompileRetained, javax.media.j3d.OrientedShape3DRetained,
Shape3DRetained | class Shape3DRetained extends LeafRetained (Code) | | A shape leaf node consisting of geometry and appearance properties.
|
Method Summary | |
void | addAltApp(AlternateAppearanceRetained aApp) | void | addFog(FogRetained fog) | void | addGeometry(Geometry geometry) Appends the specified geometry component to this Shape3D
node's list of geometry components. | void | addLight(LightRetained light) | void | addModelClip(ModelClipRetained modelClip) | boolean | allowIntersect() | void | checkEquivalenceClass(Geometry geometry, int index) | void | clearLive(SetLiveState s) assign a name to this node when it is made live. | void | clearMirrorShape() | void | compile(CompileState compState) | void | computeCombineBounds(Bounds bounds) ONLY needed for SHAPE, MORPH, and LINK node type. | void | doSetLive(SetLiveState s) | Enumeration | getAllGeometries(int id) Returns an enumeration of this Shape3D node's list of geometry
components. | Appearance | getAppearance() Retrieves the shape node's appearance component. | boolean | getAppearanceOverrideEnable() | Bounds | getBounds() Gets the bounding object of a node. | Bounds | getCollisionBounds(int id) Gets the collision bounds of a node. | void | getCombineBounds(BoundingBox bounds) | Bounds | getEffectiveBounds() | final static GeometryAtom | getGeomAtom(Shape3DRetained shape) | final static GeometryAtom[] | getGeomAtomsArray(ArrayList userList) Return an array of geometry atoms belongs to userList. | final static ArrayList | getGeomAtomsList(ArrayList userList, ArrayList univList) Return a list of geometry atoms belongs to userList and places a list of
universe found in userList in univList. | Geometry | getGeometry(int index, int id) Retrieves the geometry component of this Shape3D node. | boolean | getInImmCtx() | Bounds | getLocalBounds(Bounds bounds) | void | getMirrorObjects(ArrayList list, HashKey k) | Shape3DRetained | getMirrorShape(SceneGraphPath path) | Shape3DRetained | getMirrorShape(HashKey key) | int | getPrimaryViewIdx() | void | handleFrequencyChange(int bit) | int | indexOfGeometry(Geometry geometry) | void | initMirrorShape3D(SetLiveState s, MorphRetained morph, int index) This initialize the mirror shape to reflect the state of the
real Morph. | void | initializeGAtom(Shape3DRetained ms) | void | insertGeometry(Geometry geometry, int index) Inserts the specified geometry component into this Shape3D
node's list of geometry components at the specified index. | boolean | intersect(PickInfo pickInfo, PickShape pickShape, int flags) | boolean | intersect(SceneGraphPath path, PickShape pickShape, double[] dist) Check if the geometry component of this shape node under path
intersects with the pickShape.
This is an expensive method. | boolean | intersectGeometryList(Shape3DRetained otherShape) | boolean | intersectGeometryList(Transform3D thisLocalToVworld, Bounds targetBound) | boolean | isAlphaEditable(GeometryRetained geo) | boolean | isAlphaFrequentlyEditable(GeometryRetained geo) | boolean | isEquivalent(Shape3DRetained shape) | boolean | isStatic() | void | merge(CompileState compState) | int | numGeometries(int id) Returns the number of geometry components in this Shape3D node's
list of geometry components. | void | removeAllGeometries() | void | removeAltApp(AlternateAppearanceRetained aApp) | void | removeFog(FogRetained fog) | void | removeGeometry(int index) Removes the geometry component at the specified index from
this Shape3D node's list of geometry components. | void | removeGeometry(Geometry geometry) | void | removeLight(LightRetained light) | void | removeModelClip(ModelClipRetained modelClip) | void | searchGeometryAtoms(UnorderList list) | void | setAppearance(Appearance newAppearance) Sets the appearance component of this Shape3D node. | void | setAppearanceOverrideEnable(boolean flag) | void | setBounds(Bounds bounds) Sets the geometric bounds of a node. | void | setBoundsAutoCompute(boolean autoCompute) | void | setCollisionBounds(Bounds bounds) Sets the collision bounds of a node. | final static void | setGeomAtom(Shape3DRetained shape, GeometryAtom ga) | void | setGeometry(Geometry geometry, int index) Replaces the geometry component at the specified index in this
Shape3D node's list of geometry components with the specified
geometry component. | void | setInImmCtx(boolean inCtx) | void | setLive(SetLiveState s) assign a name to this node when it is made live. | void | setMorphGeometry(Geometry geometry, ArrayList mirrorShapes) | boolean | shapeIsMergeable(CompileState compState) | boolean | staticXformCanBeApplied() | void | updateBounds() | void | updateCollidable(HashKey keys, boolean collide) | void | updateImmediateMirrorObject(Object[] objs) | void | updatePickable(HashKey keys, boolean pick) | boolean | willRemainOpaque(int geoType) |
APPEARANCEOVERRIDE_CHANGED | final static int APPEARANCEOVERRIDE_CHANGED(Code) | | |
APPEARANCE_CHANGED | final static int APPEARANCE_CHANGED(Code) | | |
BOUNDS_CHANGED | final static int BOUNDS_CHANGED(Code) | | |
COLLISION_CHANGED | final static int COLLISION_CHANGED(Code) | | |
GEOMETRY_CHANGED | final static int GEOMETRY_CHANGED(Code) | | |
LAST_DEFINED_BIT | final static int LAST_DEFINED_BIT(Code) | | |
appearanceOverrideEnable | boolean appearanceOverrideEnable(Code) | | |
branchGroupPath | BranchGroupRetained branchGroupPath(Code) | | Reference to the BranchGroup path of this mirror shape
This is used for picking and GeometryStructure only.
|
changedFrequent | int changedFrequent(Code) | | |
closestSwitchIndex | int closestSwitchIndex(Code) | | |
geometryList | ArrayList geometryList(Code) | | The arraylist of geometry component of the shape node.
|
inImmCtx | boolean inImmCtx(Code) | | |
isCollidable | boolean isCollidable(Code) | | |
isPickable | boolean isPickable(Code) | | |
key | HashKey key(Code) | | The hashkey for this Shape3DRetained mirror object
|
mirrorShape3D | ArrayList mirrorShape3D(Code) | | The mirror Shape3DRetained nodes for this object. There is one
mirror for each instance of this Shape3D node. If it is not in
a SharedGroup, only index 0 is valid.
Do not change the following private variables to public, its access need to synchronize
via mirrorShape3DLock.
|
numAltApps | int numAltApps(Code) | | |
numModelClips | int numModelClips(Code) | | |
sourceNode | NodeRetained sourceNode(Code) | | This field is used for mirror Shape3D nodes accessing their
original nodes. It is a NodeRetained because the original
node may be a Shape3DRetained or a MorphRetained node.
|
targetThreads | final static int targetThreads(Code) | | |
Shape3DRetained | Shape3DRetained()(Code) | | |
addGeometry | void addGeometry(Geometry geometry)(Code) | | Appends the specified geometry component to this Shape3D
node's list of geometry components.
If there are existing geometry components in the list, the new
geometry component must be of the same equivalence class
(point, line, polygon, CompressedGeometry, Raster, Text3D) as
the others.
Parameters: geometry - the geometry component to be appended. exception: IllegalArgumentException - if the new geometrycomponent is not of of the same equivalence class as theexisting geometry components. since: Java 3D 1.2 |
allowIntersect | boolean allowIntersect()(Code) | | |
checkEquivalenceClass | void checkEquivalenceClass(Geometry geometry, int index)(Code) | | |
clearLive | void clearLive(SetLiveState s)(Code) | | assign a name to this node when it is made live.
|
clearMirrorShape | void clearMirrorShape()(Code) | | This clears all references in a mirror shape
|
computeCombineBounds | void computeCombineBounds(Bounds bounds)(Code) | | ONLY needed for SHAPE, MORPH, and LINK node type.
Compute the combine bounds of bounds and its localBounds.
|
getAllGeometries | Enumeration getAllGeometries(int id)(Code) | | Returns an enumeration of this Shape3D node's list of geometry
components.
an Enumeration object containing all geometry components inthis Shape3D node's list of geometry components. since: Java 3D 1.2 |
getAppearance | Appearance getAppearance()(Code) | | Retrieves the shape node's appearance component.
the shape node's appearance |
getAppearanceOverrideEnable | boolean getAppearanceOverrideEnable()(Code) | | |
getBounds | Bounds getBounds()(Code) | | Gets the bounding object of a node.
the node's bounding object |
getCollisionBounds | Bounds getCollisionBounds(int id)(Code) | | Gets the collision bounds of a node.
the node's bounding object |
getGeomAtomsArray | final static GeometryAtom[] getGeomAtomsArray(ArrayList userList)(Code) | | Return an array of geometry atoms belongs to userList.
The input is an arraylist of Shape3DRetained type.
This is used to send a message of the snapshot of the
geometry atoms that are affected by this change.
|
getGeomAtomsList | final static ArrayList getGeomAtomsList(ArrayList userList, ArrayList univList)(Code) | | Return a list of geometry atoms belongs to userList and places a list of
universe found in userList in univList.
The input is an array of Shape3DRetained type.
univList is assume to be empty.
This is used to send a message of the snapshot of the
geometry atoms that are affected by this change.
|
getGeometry | Geometry getGeometry(int index, int id)(Code) | | Retrieves the geometry component of this Shape3D node.
the geometry component of this shape node since: Java 3D 1.2 |
getInImmCtx | boolean getInImmCtx()(Code) | | This gets the immedate mode context flag
|
getPrimaryViewIdx | int getPrimaryViewIdx()(Code) | | |
handleFrequencyChange | void handleFrequencyChange(int bit)(Code) | | |
initMirrorShape3D | void initMirrorShape3D(SetLiveState s, MorphRetained morph, int index)(Code) | | This initialize the mirror shape to reflect the state of the
real Morph.
|
insertGeometry | void insertGeometry(Geometry geometry, int index)(Code) | | Inserts the specified geometry component into this Shape3D
node's list of geometry components at the specified index.
If there are existing geometry components in the list, the new
geometry component must be of the same equivalence class
(point, line, polygon, CompressedGeometry, Raster, Text3D) as
the others.
Parameters: geometry - the geometry component to be inserted at thespecified index. Parameters: index - the index at which the geometry component is inserted. since: Java 3D 1.2 |
intersect | boolean intersect(SceneGraphPath path, PickShape pickShape, double[] dist)(Code) | | Check if the geometry component of this shape node under path
intersects with the pickShape.
This is an expensive method. It should only be called if and only
if the path's bound intersects pickShape.
exception: IllegalArgumentException - if path isinvalid. |
isStatic | boolean isStatic()(Code) | | |
numGeometries | int numGeometries(int id)(Code) | | Returns the number of geometry components in this Shape3D node's
list of geometry components.
the number of geometry components in this Shape3D node'slist of geometry components. since: Java 3D 1.2 |
removeAllGeometries | void removeAllGeometries()(Code) | | |
removeGeometry | void removeGeometry(int index)(Code) | | Removes the geometry component at the specified index from
this Shape3D node's list of geometry components.
Parameters: index - the index of the geometry component to be removed. since: Java 3D 1.2 |
setAppearance | void setAppearance(Appearance newAppearance)(Code) | | Sets the appearance component of this Shape3D node.
Parameters: appearance - the new apearance component for this shape node |
setAppearanceOverrideEnable | void setAppearanceOverrideEnable(boolean flag)(Code) | | |
setBounds | void setBounds(Bounds bounds)(Code) | | Sets the geometric bounds of a node.
Parameters: bounds - the bounding object for the node |
setBoundsAutoCompute | void setBoundsAutoCompute(boolean autoCompute)(Code) | | |
setCollisionBounds | void setCollisionBounds(Bounds bounds)(Code) | | Sets the collision bounds of a node.
Parameters: bounds - the bounding object for the node |
setGeometry | void setGeometry(Geometry geometry, int index)(Code) | | Replaces the geometry component at the specified index in this
Shape3D node's list of geometry components with the specified
geometry component.
If there are existing geometry components in the list (besides
the one being replaced), the new geometry component must be of
the same equivalence class (point, line, polygon, CompressedGeometry,
Raster, Text3D) as the others.
Parameters: geometry - the geometry component to be stored at thespecified index. Parameters: index - the index of the geometry component to be replaced. exception: IllegalArgumentException - if the new geometrycomponent is not of of the same equivalence class as theexisting geometry components. since: Java 3D 1.2 |
setInImmCtx | void setInImmCtx(boolean inCtx)(Code) | | This sets the immedate mode context flag
|
setLive | void setLive(SetLiveState s)(Code) | | assign a name to this node when it is made live.
|
staticXformCanBeApplied | boolean staticXformCanBeApplied()(Code) | | |
updateBounds | void updateBounds()(Code) | | |
updateCollidable | void updateCollidable(HashKey keys, boolean collide)(Code) | | |
updateImmediateMirrorObject | void updateImmediateMirrorObject(Object[] objs)(Code) | | |
updatePickable | void updatePickable(HashKey keys, boolean pick)(Code) | | |
willRemainOpaque | boolean willRemainOpaque(int geoType)(Code) | | |
Methods inherited from javax.media.j3d.NodeRetained | void clearLive(SetLiveState s)(Code)(Java Doc) void computeCombineBounds(Bounds bounds)(Code)(Java Doc) void computeNonLiveLocalToVworld(Transform3D t, Node caller)(Code)(Java Doc) void dirtyBoundsCache()(Code)(Java Doc) void doSetLive(SetLiveState s)(Code)(Java Doc) public int equal(NnuId obj)(Code)(Java Doc) void findCollidableFlags(boolean collide)(Code)(Java Doc) void findPickableFlags(boolean pick)(Code)(Java Doc) void findTransformLevels(int transformLevels)(Code)(Java Doc) Bounds getBounds()(Code)(Java Doc) boolean getBoundsAutoCompute()(Code)(Java Doc) boolean getCollidable()(Code)(Java Doc) Transform3D getCurrentLocalToVworld()(Code)(Java Doc) Transform3D getCurrentLocalToVworld(int index)(Code)(Java Doc) Transform3D getCurrentLocalToVworld(HashKey key)(Code)(Java Doc) Bounds getEffectiveBounds()(Code)(Java Doc) public int getId()(Code)(Java Doc) Transform3D getLastLocalToVworld()(Code)(Java Doc) Transform3D getLastLocalToVworld(int index)(Code)(Java Doc) Transform3D getLastLocalToVworld(HashKey key)(Code)(Java Doc) Bounds getLocalBounds(Bounds bounds)(Code)(Java Doc) void getLocalToVworld(Transform3D t)(Code)(Java Doc) void getLocalToVworld(SceneGraphPath path, Transform3D t)(Code)(Java Doc) void getLocalToVworld(Transform3D t, HashKey key)(Code)(Java Doc) Locale getLocale()(Code)(Java Doc) NodeRetained getParent()(Code)(Java Doc) boolean getPickable()(Code)(Java Doc) VirtualUniverse getVirtualUniverse()(Code)(Java Doc) boolean isStatic()(Code)(Java Doc) void merge(CompileState compState)(Code)(Java Doc) void mergeTransform(TransformGroupRetained xform)(Code)(Java Doc) void notifySceneGraphChanged(boolean globalTraverse)(Code)(Java Doc) int[] processViewSpecificInfo(int mode, HashKey k, View v, ArrayList vsgList, int[] keyList, ArrayList leafList)(Code)(Java Doc) void recombineAbove()(Code)(Java Doc) void removeNodeData(SetLiveState s)(Code)(Java Doc) void searchGeometryAtoms(UnorderList list)(Code)(Java Doc) void setAuxData(SetLiveState s, int index, int hkIndex)(Code)(Java Doc) void setBounds(Bounds bounds)(Code)(Java Doc) void setBoundsAutoCompute(boolean autoCompute)(Code)(Java Doc) void setCollidable(boolean collidable)(Code)(Java Doc) void setLive(SetLiveState s)(Code)(Java Doc) void setNodeData(SetLiveState s)(Code)(Java Doc) void setParent(NodeRetained parent)(Code)(Java Doc) void setPickable(boolean pickable)(Code)(Java Doc) void transformBounds(SceneGraphPath path, Bounds bound)(Code)(Java Doc) void updateCollidable(HashKey keys, boolean collide)(Code)(Java Doc) synchronized void updateLocalToVworld()(Code)(Java Doc) void updatePickable(HashKey pickKeys, boolean pick)(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.IndexedObject | int[][] listIdx(Code)(Java Doc)
|
|
|