|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.NodeComponent
org.xith3d.scenegraph.TexCoordGeneration
public class TexCoordGeneration
TexCoordGeneration defines attributes that apply to texture coordinates generation.
| Nested Class Summary | |
|---|---|
static class |
TexCoordGeneration.CoordMode
|
| Field Summary | |
|---|---|
static org.jagatoo.opengl.enums.TexCoordGenMode |
EYE_LINEAR
Generates texture coordinates as a linear function in eye coordinates. |
static org.jagatoo.opengl.enums.TexCoordGenMode |
NORMAL_MAP
|
static org.jagatoo.opengl.enums.TexCoordGenMode |
OBJECT_LINEAR
Generates texture coordinates as a linear function in object coordinates. |
static org.jagatoo.opengl.enums.TexCoordGenMode |
REFLECTION_MAP
|
static org.jagatoo.opengl.enums.TexCoordGenMode |
SPHERE_MAP
Generates texture coordinates using a sphereical reflection mapping in eye coordinates. |
static TexCoordGeneration.CoordMode |
TEXTURE_COORDINATE_1
|
static TexCoordGeneration.CoordMode |
TEXTURE_COORDINATE_2
|
static TexCoordGeneration.CoordMode |
TEXTURE_COORDINATE_3
|
static TexCoordGeneration.CoordMode |
TEXTURE_COORDINATE_4
|
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
TexCoordGeneration()
Constructs a new TexCoordGeneration object. |
|
TexCoordGeneration(boolean enabled)
Constructs a new TexCoordGeneration object. |
|
TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format)
Constructs a new TexCoordGeneration object. |
|
TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format,
org.openmali.vecmath2.Vector4f planeS)
Constructs a new TexCoordGeneration object. |
|
TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format,
org.openmali.vecmath2.Vector4f planeS,
org.openmali.vecmath2.Vector4f planeT)
Constructs a new TexCoordGeneration object. |
|
TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format,
org.openmali.vecmath2.Vector4f planeS,
org.openmali.vecmath2.Vector4f planeT,
org.openmali.vecmath2.Vector4f planeR)
Constructs a new TexCoordGeneration object. |
|
TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format,
org.openmali.vecmath2.Vector4f planeS,
org.openmali.vecmath2.Vector4f planeT,
org.openmali.vecmath2.Vector4f planeR,
org.openmali.vecmath2.Vector4f planeQ)
Constructs a new TexCoordGeneration object. |
|
| Method Summary | |
|---|---|
TexCoordGeneration |
cloneNodeComponent(boolean forceDuplicate)
|
int |
compareTo(TexCoordGeneration o)
|
protected void |
duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
|
boolean |
equals(java.lang.Object o)
|
void |
freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all this NodeComponent and all child-components. |
TexCoordGeneration |
getCopy()
|
TexCoordGeneration.CoordMode |
getFormat()
Gets the texture format |
org.jagatoo.opengl.enums.TexCoordGenMode |
getGenMode()
Gets the texture generation mode. |
org.openmali.vecmath2.Vector4f |
getPlaneQ()
Gets the Q coordinate plane equation. |
org.openmali.vecmath2.Vector4f |
getPlaneR()
Gets the R coordinate plane equation. |
org.openmali.vecmath2.Vector4f |
getPlaneS()
Gets the S coordinate plane equation. |
org.openmali.vecmath2.Vector4f |
getPlaneT()
Gets the T coordinate plane equation. |
long |
getStateId()
|
StateNode |
getStateNode()
|
boolean |
isEnabled()
Is texture coordinate generation enabled or disabled |
protected void |
setChanged(boolean changed)
|
void |
setEnabled(boolean state)
Enables or disables texture coordinate generation |
void |
setFormat(TexCoordGeneration.CoordMode format)
Sets the desired texture format (1D, 2D, 3D or 4D). |
void |
setGenMode(org.jagatoo.opengl.enums.TexCoordGenMode genMode)
Sets the desired texture generation mode. |
void |
setPlaneQ(float planeQx,
float planeQy,
float planeQz,
float planeQw)
Sets the Q coordinate plane equation. |
void |
setPlaneQ(org.openmali.vecmath2.Vector4f planeQ)
Sets the Q coordinate plane equation. |
void |
setPlaneR(float planeRx,
float planeRy,
float planeRz,
float planeRw)
Sets the R coordinate plane equation. |
void |
setPlaneR(org.openmali.vecmath2.Vector4f planeR)
Sets the R coordinate plane equation. |
void |
setPlaneS(float planeSx,
float planeSy,
float planeSz,
float planeSw)
Sets the S coordinate plane equation. |
void |
setPlaneS(org.openmali.vecmath2.Vector4f planeS)
Sets the S coordinate plane equation. |
void |
setPlaneT(float planeTx,
float planeTy,
float planeTz,
float planeTw)
Sets the T coordinate plane equation. |
void |
setPlaneT(org.openmali.vecmath2.Vector4f planeT)
Sets the T coordinate plane equation. |
void |
setStateNode(StateNode node)
Used by the render engine to set the state id for the node. |
java.lang.String |
toString()
|
| Methods inherited from class org.xith3d.scenegraph.NodeComponent |
|---|
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setDuplicateOnCloneTree, setModListener |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.jagatoo.opengl.enums.TexCoordGenMode OBJECT_LINEAR
TexCoordGenMode.OBJECT_LINEARpublic static final org.jagatoo.opengl.enums.TexCoordGenMode EYE_LINEAR
TexCoordGenMode.OBJECT_LINEARpublic static final org.jagatoo.opengl.enums.TexCoordGenMode SPHERE_MAP
TexCoordGenMode.OBJECT_LINEARpublic static final org.jagatoo.opengl.enums.TexCoordGenMode NORMAL_MAP
TexCoordGenMode.OBJECT_LINEARpublic static final org.jagatoo.opengl.enums.TexCoordGenMode REFLECTION_MAP
TexCoordGenMode.OBJECT_LINEARpublic static final TexCoordGeneration.CoordMode TEXTURE_COORDINATE_1
TexCoordGeneration.CoordMode.TEXTURE_COORDINATES_1public static final TexCoordGeneration.CoordMode TEXTURE_COORDINATE_2
TexCoordGeneration.CoordMode.TEXTURE_COORDINATES_2public static final TexCoordGeneration.CoordMode TEXTURE_COORDINATE_3
TexCoordGeneration.CoordMode.TEXTURE_COORDINATES_3public static final TexCoordGeneration.CoordMode TEXTURE_COORDINATE_4
TexCoordGeneration.CoordMode.TEXTURE_COORDINATES_4| Constructor Detail |
|---|
public TexCoordGeneration()
public TexCoordGeneration(boolean enabled)
enabled -
public TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format)
genMode - format -
public TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format,
org.openmali.vecmath2.Vector4f planeS)
genMode - format - planeS -
public TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format,
org.openmali.vecmath2.Vector4f planeS,
org.openmali.vecmath2.Vector4f planeT)
genMode - format - planeS - planeT -
public TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format,
org.openmali.vecmath2.Vector4f planeS,
org.openmali.vecmath2.Vector4f planeT,
org.openmali.vecmath2.Vector4f planeR)
genMode - format - planeS - planeT - planeR -
public TexCoordGeneration(org.jagatoo.opengl.enums.TexCoordGenMode genMode,
TexCoordGeneration.CoordMode format,
org.openmali.vecmath2.Vector4f planeS,
org.openmali.vecmath2.Vector4f planeT,
org.openmali.vecmath2.Vector4f planeR,
org.openmali.vecmath2.Vector4f planeQ)
genMode - format - planeS - planeT - planeR - planeQ - | Method Detail |
|---|
public void setEnabled(boolean state)
setEnabled in interface org.jagatoo.datatypes.Enableablepublic final boolean isEnabled()
isEnabled in interface org.jagatoo.datatypes.Enableableprotected void setChanged(boolean changed)
setChanged in class NodeComponentpublic final void setFormat(TexCoordGeneration.CoordMode format)
public final TexCoordGeneration.CoordMode getFormat()
public final void setGenMode(org.jagatoo.opengl.enums.TexCoordGenMode genMode)
public final org.jagatoo.opengl.enums.TexCoordGenMode getGenMode()
public final void setPlaneS(float planeSx,
float planeSy,
float planeSz,
float planeSw)
planeSx - planeSy - planeSz - planeSw - public final void setPlaneS(org.openmali.vecmath2.Vector4f planeS)
planeS - public final org.openmali.vecmath2.Vector4f getPlaneS()
public final void setPlaneT(float planeTx,
float planeTy,
float planeTz,
float planeTw)
planeTx - planeTy - planeTz - planeTw - public final void setPlaneT(org.openmali.vecmath2.Vector4f planeT)
planeT - public final org.openmali.vecmath2.Vector4f getPlaneT()
public final void setPlaneR(float planeRx,
float planeRy,
float planeRz,
float planeRw)
planeRx - planeRy - planeRz - planeRw - public final void setPlaneR(org.openmali.vecmath2.Vector4f planeR)
planeR - public final org.openmali.vecmath2.Vector4f getPlaneR()
public final void setPlaneQ(float planeQx,
float planeQy,
float planeQz,
float planeQw)
planeQx - planeQy - planeQz - planeQw - public final void setPlaneQ(org.openmali.vecmath2.Vector4f planeQ)
planeQ - public final org.openmali.vecmath2.Vector4f getPlaneQ()
public java.lang.String toString()
toString in class SceneGraphObject
protected void duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
duplicateNodeComponent in class NodeComponentpublic TexCoordGeneration cloneNodeComponent(boolean forceDuplicate)
cloneNodeComponent in class NodeComponentpublic void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in class NodeComponentpublic final void setStateNode(StateNode node)
setStateNode in interface StateTrackable<TexCoordGeneration>public final StateNode getStateNode()
getStateNode in interface StateTrackable<TexCoordGeneration>public final long getStateId()
public TexCoordGeneration getCopy()
getCopy in interface StateTrackable<TexCoordGeneration>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(TexCoordGeneration o)
compareTo in interface java.lang.Comparable<TexCoordGeneration>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||