javax.media.j3d
Class TexCoordGenerationRetained

java.lang.Object
  extended by javax.media.j3d.IndexedObject
      extended by javax.media.j3d.SceneGraphObjectRetained
          extended by javax.media.j3d.NodeComponentRetained
              extended by javax.media.j3d.TexCoordGenerationRetained
All Implemented Interfaces:
java.lang.Cloneable

 class TexCoordGenerationRetained
extends NodeComponentRetained

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

ENABLE_CHANGED

private static final int ENABLE_CHANGED
See Also:
Constant Field Values

PLANE_S_CHANGED

private static final int PLANE_S_CHANGED
See Also:
Constant Field Values

PLANE_T_CHANGED

private static final int PLANE_T_CHANGED
See Also:
Constant Field Values

PLANE_R_CHANGED

private static final int PLANE_R_CHANGED
See Also:
Constant Field Values

PLANE_Q_CHANGED

private static final int PLANE_Q_CHANGED
See Also:
Constant Field Values

genMode

int genMode

format

int format

planeS

Vector4f planeS

planeT

Vector4f planeT

planeR

Vector4f planeR

planeQ

Vector4f planeQ

enable

boolean enable
Flag to enable/disable Texture coordinate generation.


mirrorCompDirty

boolean mirrorCompDirty
Constructor Detail

TexCoordGenerationRetained

TexCoordGenerationRetained()
Method Detail

initEnable

final void initEnable(boolean state)
Enables or disables texture coordinate generation for this appearance component object.

Parameters:
state - true or false to enable or disable texture coordinate generation

setEnable

final 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.

Parameters:
state - true or false to enable or disable texture coordinate generation

getEnable

final boolean getEnable()
Retrieves the state of the texCoordGeneration enable flag.

Returns:
true if texture coordinate generation is enabled, false if texture coordinate generation is disabled

initFormat

final void initFormat(int format)
Sets the TexCoordGeneration format to the specified value.

Parameters:
format - texture format, one of: TEXTURE_COORDINATE_2 or TEXTURE_COORDINATE_3

getFormat

final int getFormat()
Retrieves the current TexCoordGeneration format.

Returns:
the texture format

initGenMode

final void initGenMode(int genMode)
Sets the TexCoordGeneration generation mode to the specified value.

Parameters:
genMode - texture generation mode, one of: OBJECT_LINEAR, EYE_LINEAR, or SPHERE_MAP

getGenMode

final int getGenMode()
Retrieves the current TexCoordGeneration generation mode.

Returns:
the texture generation mode

setPlaneS

final void setPlaneS(Vector4f planeS)
Sets the S coordinate plane equation. This plane equation is used to generate the S coordinate in OBJECT_LINEAR and EYE_LINEAR texture generation modes.

Parameters:
planeS - plane equation for the S coordinate

initPlaneS

final void initPlaneS(Vector4f planeS)
Sets the S coordinate plane equation. This plane equation is used to generate the S coordinate in OBJECT_LINEAR and EYE_LINEAR texture generation modes.

Parameters:
planeS - plane equation for the S coordinate

getPlaneS

final void getPlaneS(Vector4f planeS)
Retrieves a copy of the plane equation used to generate the S coordinate.

Parameters:
planeS - the S coordinate plane equation

setPlaneT

final void setPlaneT(Vector4f planeT)
Sets the T coordinate plane equation. This plane equation is used to generate the T coordinate in OBJECT_LINEAR and EYE_LINEAR texture generation modes.

Parameters:
planeT - plane equation for the T coordinate

initPlaneT

final void initPlaneT(Vector4f planeT)
Sets the T coordinate plane equation. This plane equation is used to generate the T coordinate in OBJECT_LINEAR and EYE_LINEAR texture generation modes.

Parameters:
planeT - plane equation for the T coordinate

getPlaneT

final void getPlaneT(Vector4f planeT)
Retrieves a copy of the plane equation used to generate the T coordinate.

Parameters:
planeT - the T coordinate plane equation

setPlaneR

final void setPlaneR(Vector4f planeR)
Sets the R coordinate plane equation. This plane equation is used to generate the R coordinate in OBJECT_LINEAR and EYE_LINEAR texture generation modes.

Parameters:
planeR - plane equation for the R coordinate

initPlaneR

final void initPlaneR(Vector4f planeR)
Sets the R coordinate plane equation. This plane equation is used to generate the R coordinate in OBJECT_LINEAR and EYE_LINEAR texture generation modes.

Parameters:
planeR - plane equation for the R coordinate

getPlaneR

final void getPlaneR(Vector4f planeR)
Retrieves a copy of the plane equation used to generate the R coordinate.

Parameters:
planeR - the R coordinate plane equation

setPlaneQ

final void setPlaneQ(Vector4f planeQ)
Sets the Q coordinate plane equation. This plane equation is used to generate the Q coordinate in OBJECT_LINEAR and EYE_LINEAR texture generation modes.

Parameters:
planeQ - plane equation for the Q coordinate

initPlaneQ

final void initPlaneQ(Vector4f planeQ)
Sets the Q coordinate plane equation. This plane equation is used to generate the Q coordinate in OBJECT_LINEAR and EYE_LINEAR texture generation modes.

Parameters:
planeQ - plane equation for the Q coordinate

getPlaneQ

final void getPlaneQ(Vector4f planeQ)
Retrieves a copy of the plane equation used to generate the Q coordinate.

Parameters:
planeQ - the Q coordinate plane equation

createMirrorObject

void createMirrorObject()
Creates a mirror object, point the mirror object to the retained object if the object is not editable

Overrides:
createMirrorObject in class NodeComponentRetained

updateNative

void updateNative(Canvas3D cv)

initMirrorObject

void initMirrorObject()
Initializes a mirror object, point the mirror object to the retained object if the object is not editable

Overrides:
initMirrorObject in class NodeComponentRetained

updateMirrorObject

void updateMirrorObject(int component,
                        java.lang.Object value)
Update the "component" field of the mirror object with the given "value"

Overrides:
updateMirrorObject in class NodeComponentRetained

equivalent

boolean equivalent(TexCoordGenerationRetained tr)

clone

protected java.lang.Object clone()
Overrides:
clone in class NodeComponentRetained

set

protected void set(TexCoordGenerationRetained tr)

sendMessage

final void sendMessage(int attrMask,
                       java.lang.Object attr)

handleFrequencyChange

void handleFrequencyChange(int bit)
Overrides:
handleFrequencyChange in class SceneGraphObjectRetained


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.