|
|||||||||
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.NodeComponentRetained
javax.media.j3d.ColoringAttributesRetained
class ColoringAttributesRetained
The ColoringAttributesRetained object defines attributes that apply to to coloring mapping.
Field Summary | |
---|---|
(package private) Color3f |
color
|
(package private) static int |
COLOR_CHANGED
|
(package private) static int |
SHADE_MODEL_CHANGED
|
(package private) int |
shadeModel
|
Fields inherited from class javax.media.j3d.NodeComponentRetained |
---|
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users |
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 | |
---|---|
ColoringAttributesRetained()
|
Method Summary | |
---|---|
protected java.lang.Object |
clone()
|
(package private) void |
createMirrorObject()
Creates and initializes a mirror object, point the mirror object to the retained object if the object is not editable |
(package private) boolean |
equivalent(ColoringAttributesRetained cr)
|
(package private) void |
getColor(Color3f color)
Gets the intrinsic color of this ColoringAttributes component object. |
(package private) int |
getShadeModel()
Gets the shade mode for this ColoringAttributes component object. |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initColor(Color3f color)
Sets the intrinsic color of this ColoringAttributes component object. |
(package private) void |
initColor(float r,
float g,
float b)
Sets the intrinsic color of this ColoringAttributes component object. |
(package private) void |
initMirrorObject()
Creates a mirror object, point the mirror object to the retained object if the object is not editable |
(package private) void |
initShadeModel(int shadeModel)
Sets the shade mode for this ColoringAttributes component object. |
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
protected void |
set(ColoringAttributesRetained cr)
|
(package private) void |
setColor(Color3f color)
Sets the intrinsic color of this ColoringAttributes component object and sends a message notifying the interested structures of the change. |
(package private) void |
setColor(float r,
float g,
float b)
Sets the intrinsic color of this ColoringAttributes component object and sends a message notifying the interested structures of the change. |
(package private) void |
setShadeModel(int shadeModel)
Sets the shade mode for this ColoringAttributes component object and sends a message notifying the interested structures of the change. |
(package private) void |
updateMirrorObject(int component,
java.lang.Object value)
Update the "component" field of the mirror object with the given "value" |
(package private) void |
updateNative(Context ctx,
float dRed,
float dGreen,
float dBlue,
float alpha,
boolean lEnable)
|
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addAMirrorUser, addUser, clearLive, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, setLive |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, 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 SHADE_MODEL_CHANGED
Color3f color
int shadeModel
Constructor Detail |
---|
ColoringAttributesRetained()
Method Detail |
---|
final void initColor(Color3f color)
color
- the color that is used when lighting is disabled
or when material is nullfinal void setColor(Color3f color)
color
- the color that is used when lighting is disabled
or when material is nullfinal void initColor(float r, float g, float b)
r
- the red component of the colorg
- the green component of the colorb
- the blue component of the colorfinal void setColor(float r, float g, float b)
r
- the red component of the colorg
- the green component of the colorb
- the blue component of the colorfinal void getColor(Color3f color)
color
- the vector that will receive colorfinal void initShadeModel(int shadeModel)
shadeModel
- the shade mode to be used; one of FASTEST,
NICEST, SHADE_FLAT, or SHADE_GOURAUDfinal void setShadeModel(int shadeModel)
shadeModel
- the shade mode to be used; one of FASTEST,
NICEST, SHADE_FLAT, or SHADE_GOURAUDfinal int getShadeModel()
void createMirrorObject()
createMirrorObject
in class NodeComponentRetained
void updateNative(Context ctx, float dRed, float dGreen, float dBlue, float alpha, boolean lEnable)
void initMirrorObject()
initMirrorObject
in class NodeComponentRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class NodeComponentRetained
boolean equivalent(ColoringAttributesRetained cr)
protected java.lang.Object clone()
clone
in class NodeComponentRetained
protected void set(ColoringAttributesRetained cr)
final void sendMessage(int attrMask, java.lang.Object attr)
void handleFrequencyChange(int bit)
handleFrequencyChange
in class SceneGraphObjectRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |