|
|||||||||
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.TexCoordGenerationRetained
class TexCoordGenerationRetained
The TexCoordGeneration object contains all parameters needed for texture coordinate generation. It is included as part of an Appearance component object.
Field Summary | |
---|---|
(package private) boolean |
enable
Flag to enable/disable Texture coordinate generation. |
private static int |
ENABLE_CHANGED
|
(package private) int |
format
|
(package private) int |
genMode
|
(package private) boolean |
mirrorCompDirty
|
private static int |
PLANE_Q_CHANGED
|
private static int |
PLANE_R_CHANGED
|
private static int |
PLANE_S_CHANGED
|
private static int |
PLANE_T_CHANGED
|
(package private) Vector4f |
planeQ
|
(package private) Vector4f |
planeR
|
(package private) Vector4f |
planeS
|
(package private) Vector4f |
planeT
|
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 | |
---|---|
TexCoordGenerationRetained()
|
Method Summary | |
---|---|
protected java.lang.Object |
clone()
|
(package private) void |
createMirrorObject()
Creates a mirror object, point the mirror object to the retained object if the object is not editable |
(package private) boolean |
equivalent(TexCoordGenerationRetained tr)
|
(package private) boolean |
getEnable()
Retrieves the state of the texCoordGeneration enable flag. |
(package private) int |
getFormat()
Retrieves the current TexCoordGeneration format. |
(package private) int |
getGenMode()
Retrieves the current TexCoordGeneration generation mode. |
(package private) void |
getPlaneQ(Vector4f planeQ)
Retrieves a copy of the plane equation used to generate the Q coordinate. |
(package private) void |
getPlaneR(Vector4f planeR)
Retrieves a copy of the plane equation used to generate the R coordinate. |
(package private) void |
getPlaneS(Vector4f planeS)
Retrieves a copy of the plane equation used to generate the S coordinate. |
(package private) void |
getPlaneT(Vector4f planeT)
Retrieves a copy of the plane equation used to generate the T coordinate. |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initEnable(boolean state)
Enables or disables texture coordinate generation for this appearance component object. |
(package private) void |
initFormat(int format)
Sets the TexCoordGeneration format to the specified value. |
(package private) void |
initGenMode(int genMode)
Sets the TexCoordGeneration generation mode to the specified value. |
(package private) void |
initMirrorObject()
Initializes a mirror object, point the mirror object to the retained object if the object is not editable |
(package private) void |
initPlaneQ(Vector4f planeQ)
Sets the Q coordinate plane equation. |
(package private) void |
initPlaneR(Vector4f planeR)
Sets the R coordinate plane equation. |
(package private) void |
initPlaneS(Vector4f planeS)
Sets the S coordinate plane equation. |
(package private) void |
initPlaneT(Vector4f planeT)
Sets the T coordinate plane equation. |
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
protected void |
set(TexCoordGenerationRetained tr)
|
(package private) void |
setEnable(boolean state)
Enables or disables texture coordinate generation for this appearance component object and sends a message notifying the interested structures of the change. |
(package private) void |
setPlaneQ(Vector4f planeQ)
Sets the Q coordinate plane equation. |
(package private) void |
setPlaneR(Vector4f planeR)
Sets the R coordinate plane equation. |
(package private) void |
setPlaneS(Vector4f planeS)
Sets the S coordinate plane equation. |
(package private) void |
setPlaneT(Vector4f planeT)
Sets the T coordinate plane equation. |
(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(Canvas3D cv)
|
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 |
---|
private static final int ENABLE_CHANGED
private static final int PLANE_S_CHANGED
private static final int PLANE_T_CHANGED
private static final int PLANE_R_CHANGED
private static final int PLANE_Q_CHANGED
int genMode
int format
Vector4f planeS
Vector4f planeT
Vector4f planeR
Vector4f planeQ
boolean enable
boolean mirrorCompDirty
Constructor Detail |
---|
TexCoordGenerationRetained()
Method Detail |
---|
final void initEnable(boolean state)
state
- true or false to enable or disable texture coordinate
generationfinal void setEnable(boolean state)
state
- true or false to enable or disable texture coordinate
generationfinal boolean getEnable()
final void initFormat(int format)
format
- texture format, one of: TEXTURE_COORDINATE_2
or TEXTURE_COORDINATE_3final int getFormat()
final void initGenMode(int genMode)
genMode
- texture generation mode, one of: OBJECT_LINEAR,
EYE_LINEAR, or SPHERE_MAPfinal int getGenMode()
final void setPlaneS(Vector4f planeS)
planeS
- plane equation for the S coordinatefinal void initPlaneS(Vector4f planeS)
planeS
- plane equation for the S coordinatefinal void getPlaneS(Vector4f planeS)
planeS
- the S coordinate plane equationfinal void setPlaneT(Vector4f planeT)
planeT
- plane equation for the T coordinatefinal void initPlaneT(Vector4f planeT)
planeT
- plane equation for the T coordinatefinal void getPlaneT(Vector4f planeT)
planeT
- the T coordinate plane equationfinal void setPlaneR(Vector4f planeR)
planeR
- plane equation for the R coordinatefinal void initPlaneR(Vector4f planeR)
planeR
- plane equation for the R coordinatefinal void getPlaneR(Vector4f planeR)
planeR
- the R coordinate plane equationfinal void setPlaneQ(Vector4f planeQ)
planeQ
- plane equation for the Q coordinatefinal void initPlaneQ(Vector4f planeQ)
planeQ
- plane equation for the Q coordinatefinal void getPlaneQ(Vector4f planeQ)
planeQ
- the Q coordinate plane equationvoid createMirrorObject()
createMirrorObject
in class NodeComponentRetained
void updateNative(Canvas3D cv)
void initMirrorObject()
initMirrorObject
in class NodeComponentRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class NodeComponentRetained
boolean equivalent(TexCoordGenerationRetained tr)
protected java.lang.Object clone()
clone
in class NodeComponentRetained
protected void set(TexCoordGenerationRetained tr)
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 |