class ColoringAttributesRetained extends NodeComponentRetained
| Modifier and Type | Field and Description |
|---|---|
(package private) Color3f |
color |
(package private) static int |
COLOR_CHANGED |
(package private) static int |
SHADE_MODEL_CHANGED |
(package private) int |
shadeModel |
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, usersDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdx| Constructor and Description |
|---|
ColoringAttributesRetained() |
| Modifier and Type | Method and Description |
|---|---|
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) |
addAMirrorUser, addUser, clearLive, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, setLiveclearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traversegetIdxUsed, incIdxUsedstatic final int COLOR_CHANGED
static final int SHADE_MODEL_CHANGED
Color3f color
int shadeModel
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 NodeComponentRetainedvoid updateNative(Context ctx, float dRed, float dGreen, float dBlue, float alpha, boolean lEnable)
void initMirrorObject()
initMirrorObject in class NodeComponentRetainedvoid updateMirrorObject(int component,
java.lang.Object value)
updateMirrorObject in class NodeComponentRetainedboolean equivalent(ColoringAttributesRetained cr)
protected java.lang.Object clone()
clone in class NodeComponentRetainedprotected void set(ColoringAttributesRetained cr)
final void sendMessage(int attrMask,
java.lang.Object attr)
void handleFrequencyChange(int bit)
handleFrequencyChange in class SceneGraphObjectRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.