|
|||||||||
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.BackgroundRetained
class BackgroundRetained
The Background leaf node defines either a solid background color or a background image that is used to fill the window at the beginning of each new frame. It also specifies an application region in which this background is active.
Field Summary | |
---|---|
(package private) Bounds |
applicationRegion
The Boundary object defining the lights's application region. |
(package private) java.util.ArrayList |
bgGeometryAtomList
|
(package private) boolean |
bgGeometryAtomListDirty
|
(package private) GeometryAtom[] |
bgGeometryAtoms
|
(package private) BoundingLeafRetained |
boundingLeaf
The bounding leaf reference |
(package private) static int |
BOUNDINGLEAF_CHANGED
|
(package private) static int |
BOUNDS_CHANGED
|
(package private) Locale |
cachedLocale
The locale of this Background node since we don't have mirror object when clearLive is called locale is set to null, we still want locale to have a non-null value, since renderingEnv structure may be using the locale |
(package private) Color3f |
color
|
(package private) static int |
COLOR_CHANGED
|
(package private) java.util.ArrayList |
fogs
|
(package private) static int |
GEOMETRY_CHANGED
|
(package private) BranchGroup |
geometryBranch
Background geometry branch group |
(package private) ImageComponent2DRetained |
image
|
(package private) static int |
IMAGE_CHANGED
|
(package private) static int |
IMAGE_SCALE_CHANGED
|
(package private) int |
imageScaleMode
|
(package private) boolean |
inImmCtx
|
(package private) boolean |
isViewScoped
|
(package private) java.util.ArrayList |
lights
|
(package private) SetLiveState |
setLiveState
The state structure used for Background Geometry |
(package private) static int |
targetThreads
|
(package private) Texture2DRetained |
texture
|
(package private) Bounds |
transformedRegion
The transformed value of the applicationRegion. |
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 | |
---|---|
BackgroundRetained()
|
Method Summary | |
---|---|
(package private) void |
addBgGeometryAtomList(GeometryAtom geomAtom)
|
(package private) void |
clearGeometryBranch(BranchGroupRetained branch)
|
(package private) void |
clearLive(SetLiveState s)
This clearLive routine first calls the superclass's method, then it removes itself to the list of lights |
(package private) BoundingLeaf |
getApplicationBoundingLeaf()
Get the Background's application region |
(package private) Bounds |
getApplicationBounds()
Get the Backgound's application region. |
(package private) GeometryAtom[] |
getBackgroundGeometryAtoms()
|
(package private) void |
getColor(Color3f color)
Retrieves the background color. |
(package private) BranchGroup |
getGeometry()
Retrieves the background geometry branch group. |
(package private) ImageComponent2D |
getImage()
Retrieves the background image. |
(package private) int |
getImageScaleMode()
gets the image scale mode for this Background node. |
(package private) boolean |
getInImmCtx()
This gets the immedate mode context flag |
(package private) void |
getMirrorObjects(java.util.ArrayList leafList,
HashKey key)
|
(package private) void |
initApplicationBoundingLeaf(BoundingLeaf region)
Initializes the Background's application region to the specified Leaf node. |
(package private) void |
initApplicationBounds(Bounds region)
Initializes the Background's application region. |
(package private) void |
initColor(Color3f color)
Initializes the background color to the specified color. |
(package private) void |
initColor(float r,
float g,
float b)
Initializes the background color to the specified color. |
(package private) void |
initGeometry(BranchGroup branch)
Initializes the background geometry branch group to the specified branch. |
(package private) void |
initImage(ImageComponent2D img)
Initializes the background image to the specified image. |
(package private) void |
initImageScaleMode(int imageScaleMode)
Initialize the image scale mode to the specified mode |
(package private) void |
mergeTransform(TransformGroupRetained xform)
|
(package private) void |
notifyImageComponentImageChanged(ImageComponentRetained image,
ImageComponentUpdateInfo value)
|
(package private) void |
removeBgGeometryAtomList(GeometryAtom geomAtom)
|
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
(package private) void |
setApplicationBoundingLeaf(BoundingLeaf region)
Set the Background's application region to the specified Leaf node. |
(package private) void |
setApplicationBounds(Bounds region)
Set the Background's application region. |
(package private) void |
setColor(Color3f color)
Sets the background color to the specified color. |
(package private) void |
setColor(float r,
float g,
float b)
Sets the background color to the specified color. |
(package private) void |
setGeometry(BranchGroup branch)
Sets the background geometry branch group to the specified branch. |
(package private) void |
setGeometryBranch(BranchGroupRetained branch)
|
(package private) void |
setImage(ImageComponent2D img)
Sets the background image to the specified image. |
(package private) void |
setImageScaleMode(int imageScaleMode)
Sets the image scale mode for this Background node. |
(package private) void |
setInImmCtx(boolean inCtx)
This sets the immedate mode context flag |
(package private) void |
setLive(SetLiveState s)
This setLive routine first calls the superclass's method, then it adds itself to the list of lights |
(package private) void |
updateBoundingLeaf()
Note: This routine will only be called to update the object's transformed region |
(package private) void |
updateImmediateMirrorObject(java.lang.Object[] objs)
|
(package private) void |
updateImmediateTransformChange()
|
Methods inherited from class javax.media.j3d.LeafRetained |
---|
clone, updateBounds, updateMirrorObject, updateTransformChange |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, clone, 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 COLOR_CHANGED
static final int IMAGE_CHANGED
static final int GEOMETRY_CHANGED
static final int BOUNDS_CHANGED
static final int BOUNDINGLEAF_CHANGED
static final int IMAGE_SCALE_CHANGED
Color3f color
ImageComponent2DRetained image
Texture2DRetained texture
int imageScaleMode
Bounds applicationRegion
BoundingLeafRetained boundingLeaf
BranchGroup geometryBranch
Bounds transformedRegion
SetLiveState setLiveState
Locale cachedLocale
boolean inImmCtx
java.util.ArrayList lights
java.util.ArrayList fogs
java.util.ArrayList bgGeometryAtomList
boolean bgGeometryAtomListDirty
GeometryAtom[] bgGeometryAtoms
static final int targetThreads
boolean isViewScoped
Constructor Detail |
---|
BackgroundRetained()
Method Detail |
---|
final void initColor(Color3f color)
color
- the new background colorfinal void setColor(Color3f color)
color
- the new background colorfinal void initColor(float r, float g, float b)
r
- the red component of the background colorg
- the green component of the background colorb
- the blue component of the background colorfinal void setColor(float r, float g, float b)
r
- the red component of the background colorg
- the green component of the background colorb
- the blue component of the background colorfinal void getColor(Color3f color)
color
- the vector that will receive the current background colorfinal void initImageScaleMode(int imageScaleMode)
final void setImageScaleMode(int imageScaleMode)
imageScaleMode
- the image scale modefinal int getImageScaleMode()
final void initImage(ImageComponent2D img)
image
- new ImageCompoent2D object used as the background imagefinal void setImage(ImageComponent2D img)
image
- new ImageCompoent3D object used as the background imagefinal ImageComponent2D getImage()
final void initGeometry(BranchGroup branch)
branch
- new branch group object used for background geometryfinal void setGeometry(BranchGroup branch)
branch
- new branch group object used for background geometryfinal BranchGroup getGeometry()
final void initApplicationBounds(Bounds region)
region
- a region that contains the Backgound's new application boundsfinal void setApplicationBounds(Bounds region)
region
- a region that contains the Backgound's new application boundsfinal Bounds getApplicationBounds()
void initApplicationBoundingLeaf(BoundingLeaf region)
void setApplicationBoundingLeaf(BoundingLeaf region)
BoundingLeaf getApplicationBoundingLeaf()
void setInImmCtx(boolean inCtx)
boolean getInImmCtx()
void setGeometryBranch(BranchGroupRetained branch)
void clearGeometryBranch(BranchGroupRetained branch)
void setLive(SetLiveState s)
setLive
in class NodeRetained
void clearLive(SetLiveState s)
clearLive
in class NodeRetained
void updateImmediateMirrorObject(java.lang.Object[] objs)
void updateBoundingLeaf()
updateBoundingLeaf
in class LeafRetained
void updateImmediateTransformChange()
final void sendMessage(int attrMask, java.lang.Object attr)
void addBgGeometryAtomList(GeometryAtom geomAtom)
void removeBgGeometryAtomList(GeometryAtom geomAtom)
GeometryAtom[] getBackgroundGeometryAtoms()
void mergeTransform(TransformGroupRetained xform)
mergeTransform
in class NodeRetained
void notifyImageComponentImageChanged(ImageComponentRetained image, ImageComponentUpdateInfo value)
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 |