|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeRetained
javax.media.j3d.LeafRetained
javax.media.j3d.ModelClipRetained
class ModelClipRetained
The ModelClip retained object.
Field Summary | |
---|---|
(package private) BoundingLeafRetained |
boundingLeaf
The bounding leaf reference |
(package private) static int |
BOUNDINGLEAF_CHANGED
|
(package private) static int |
BOUNDS_CHANGED
|
(package private) static int |
CLEAR_MIRROR
|
(package private) static int |
ENABLE_CHANGED
|
(package private) boolean |
enableFlag
|
(package private) boolean[] |
enables
|
(package private) static int |
ENABLES_CHANGED
|
(package private) UnorderList |
environmentSets
The EnvironmentSets which reference this model clip. |
(package private) boolean |
inImmCtx
|
(package private) static int |
INIT_MIRROR
|
(package private) boolean |
isScoped
|
(package private) boolean |
isViewScoped
|
(package private) static int |
LAST_DEFINED_BIT
|
(package private) ModelClipRetained |
mirrorModelClip
|
(package private) static int |
PLANE_CHANGED
|
(package private) Vector4d[] |
planes
The clip planes and the enable bits |
(package private) static int |
PLANES_CHANGED
|
(package private) Bounds |
region
The transformed value of the influencingRegion. |
(package private) Bounds |
regionOfInfluence
The Boundary object defining the model clip's region of influencing |
(package private) static int |
SCOPE_CHANGED
|
(package private) java.util.Vector |
scopes
Vector of GroupRetained nodes that scopes this model clip. |
(package private) ModelClipRetained |
sgModelClip
|
(package private) static int |
targetThreads
|
(package private) HashKey |
tempKey
|
(package private) Vector4d[] |
xformPlanes
|
Fields inherited from class javax.media.j3d.LeafRetained |
---|
boundsDirty, switchState |
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 | |
---|---|
ModelClipRetained()
Constructs and initializes model clip planes |
Method Summary | |
---|---|
(package private) void |
addScope(Group scope)
Appends the specified scope to this node's list of scopes. |
(package private) void |
clearLive(SetLiveState s)
This clearLive routine first calls the superclass's method, then it removes itself to the list of model clip |
(package private) void |
clearMirrorObject(java.lang.Object[] args)
|
protected java.lang.Object |
clone()
|
(package private) java.util.Enumeration |
getAllScopes()
Returns an enumeration object of the scoperen. |
(package private) boolean |
getEnable(int planeNum)
Gets the specified enable |
(package private) void |
getEnables(boolean[] enables)
Gets enables |
(package private) BoundingLeaf |
getInfluencingBoundingLeaf()
Get the Model Clip's region of influencing. |
(package private) Bounds |
getInfluencingBounds()
Get the Model Clip's region of influencing. |
(package private) boolean |
getInImmCtx()
This gets the immedate mode context flag |
(package private) void |
getMirrorObjects(java.util.ArrayList leafList,
HashKey key)
|
(package private) void |
getPlane(int planeNum,
Vector4d plane)
Gets the specified clipping plane |
(package private) void |
getPlanes(Vector4d[] planes)
Gets planes |
(package private) Group |
getScope(int index)
Returns the scope specified by the index. |
(package private) int |
indexOfScope(Group node)
Returns the index of the specified Group node within the ModelClip's list of scoped Group nodes |
(package private) void |
initAddScope(Group scope)
Appends the specified scope to this node's list of scopes before the fog is alive |
(package private) void |
initEnable(int planeNum,
boolean enable)
Initializes planes before the object is live |
(package private) void |
initEnables(boolean[] enables)
Initializes planes before the object is live |
(package private) void |
initInfluencingBoundingLeaf(BoundingLeaf region)
Set the Model Clip's region of influencing to the specified Leaf node. |
(package private) void |
initInfluencingBounds(Bounds region)
Set the Model Clip's region of influencing |
(package private) void |
initInsertScope(Node scope,
int index)
Inserts the specified scope at specified index |
(package private) void |
initMirrorObject(java.lang.Object[] args)
|
(package private) void |
initPlane(int planeNum,
Vector4d plane)
Initializes planes before the object is live |
(package private) void |
initPlanes(Vector4d[] planes)
Initializes planes before the object is live |
(package private) void |
initRemoveAllScopes()
|
(package private) void |
initRemoveScope(Group node)
|
(package private) void |
initRemoveScope(int index)
|
(package private) void |
initScope(Group scope,
int index)
Replaces the specified scope with the scope provided. |
(package private) void |
insertScope(Node scope,
int index)
Inserts the specified scope at specified index and sends a message |
(package private) void |
mergeTransform(TransformGroupRetained staticTransform)
|
(package private) int |
numScopes()
Returns a count of this nodes' scopes. |
(package private) void |
printEnables(java.lang.String string,
boolean[] enables)
|
(package private) void |
printPlane(int index,
java.lang.String string)
|
(package private) void |
printPlanes(java.lang.String string,
Vector4d[] planes)
|
(package private) void |
removeAllScopes()
Removes all the Group nodes from the ModelClip's scope list. |
(package private) void |
removeScope(Group node)
Removes the specified Group node from this ModelClip's list of scopes if the specified node is not found in the list of scoped nodes, method returns quietly. |
(package private) void |
removeScope(int index)
|
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr1,
java.lang.Object attr2)
|
(package private) void |
setEnable(int planeNum,
boolean enable)
Sets the clip planes and send a message |
(package private) void |
setEnables(boolean[] enables)
Sets the clip planes and send a message |
(package private) void |
setInfluencingBoundingLeaf(BoundingLeaf region)
Set the Model Clip's region of influencing to the specified Leaf node. |
(package private) void |
setInfluencingBounds(Bounds region)
Set the Model Clip's region of influencing and send message |
(package private) void |
setInImmCtx(boolean inCtx)
This sets the immedate mode context flag |
(package private) void |
setLive(SetLiveState s)
|
(package private) void |
setPlane(int planeNum,
Vector4d plane)
Sets the clip planes and send a message |
(package private) void |
setPlanes(Vector4d[] planes)
Sets the clip planes and send a message |
(package private) void |
setScope(Group scope,
int index)
Replaces the specified scope with the scope provided. |
(package private) void |
update(Canvas3D cv,
int enableMask)
This method and its native counterpart update the native context model clip planes. |
(package private) void |
update(Context ctx,
int enableMask,
Transform3D trans)
|
(package private) void |
updateBoundingLeaf()
Note: This routine will only be called on the mirror object - will update the object's cached region and transformed region |
(package private) void |
updateImmediateMirrorObject(java.lang.Object[] objs)
|
(package private) void |
updateImmediateTransformChange()
|
(package private) void |
updateMirrorObject(java.lang.Object[] objs)
|
Methods inherited from class javax.media.j3d.LeafRetained |
---|
clone, updateBounds, updateTransformChange |
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 |
---|
static final int PLANE_CHANGED
static final int PLANES_CHANGED
static final int ENABLE_CHANGED
static final int ENABLES_CHANGED
static final int BOUNDS_CHANGED
static final int BOUNDINGLEAF_CHANGED
static final int SCOPE_CHANGED
static final int INIT_MIRROR
static final int CLEAR_MIRROR
static final int LAST_DEFINED_BIT
Vector4d[] planes
boolean[] enables
Vector4d[] xformPlanes
boolean enableFlag
Bounds regionOfInfluence
BoundingLeafRetained boundingLeaf
Bounds region
java.util.Vector scopes
boolean isScoped
HashKey tempKey
boolean inImmCtx
ModelClipRetained mirrorModelClip
ModelClipRetained sgModelClip
static final int targetThreads
UnorderList environmentSets
boolean isViewScoped
Constructor Detail |
---|
ModelClipRetained()
Method Detail |
---|
void initPlanes(Vector4d[] planes)
void setPlanes(Vector4d[] planes)
void initPlane(int planeNum, Vector4d plane)
void setPlane(int planeNum, Vector4d plane)
void getPlanes(Vector4d[] planes)
void getPlane(int planeNum, Vector4d plane)
void initEnables(boolean[] enables)
void setEnables(boolean[] enables)
void initEnable(int planeNum, boolean enable)
void setEnable(int planeNum, boolean enable)
void getEnables(boolean[] enables)
boolean getEnable(int planeNum)
void initInfluencingBounds(Bounds region)
void setInfluencingBounds(Bounds region)
Bounds getInfluencingBounds()
void initInfluencingBoundingLeaf(BoundingLeaf region)
void setInfluencingBoundingLeaf(BoundingLeaf region)
BoundingLeaf getInfluencingBoundingLeaf()
void initScope(Group scope, int index)
scope
- the new scopeindex
- which scope to replacevoid setScope(Group scope, int index)
scope
- the new scopeindex
- which scope to replacevoid initInsertScope(Node scope, int index)
scope
- the new scopeindex
- position to insert new scope atvoid insertScope(Node scope, int index)
scope
- the new scopeindex
- position to insert new scope atvoid initRemoveScope(int index)
void removeScope(int index)
void removeScope(Group node)
Group
- node to be removedvoid initRemoveScope(Group node)
void removeAllScopes()
void initRemoveAllScopes()
Group getScope(int index)
index
- which scope to return
java.util.Enumeration getAllScopes()
void initAddScope(Group scope)
scope
- the scope to add to this node's list of scopesvoid addScope(Group scope)
scope
- the scope to add to this node's list of scopesint numScopes()
int indexOfScope(Group node)
Group
- node whose index is desired
void setInImmCtx(boolean inCtx)
boolean getInImmCtx()
void update(Canvas3D cv, int enableMask)
void update(Context ctx, int enableMask, Transform3D trans)
void initMirrorObject(java.lang.Object[] args)
void updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject
in class LeafRetained
void updateImmediateMirrorObject(java.lang.Object[] objs)
void updateBoundingLeaf()
updateBoundingLeaf
in class LeafRetained
void setLive(SetLiveState s)
setLive
in class NodeRetained
void clearLive(SetLiveState s)
clearLive
in class NodeRetained
void clearMirrorObject(java.lang.Object[] args)
protected java.lang.Object clone()
clone
in class SceneGraphObjectRetained
void updateImmediateTransformChange()
void printPlane(int index, java.lang.String string)
void printPlanes(java.lang.String string, Vector4d[] planes)
void printEnables(java.lang.String string, boolean[] enables)
final void sendMessage(int attrMask, java.lang.Object attr1, java.lang.Object attr2)
void mergeTransform(TransformGroupRetained staticTransform)
mergeTransform
in class NodeRetained
void getMirrorObjects(java.util.ArrayList leafList, HashKey key)
getMirrorObjects
in class LeafRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |