|
||||||||||
| 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.ColoringAttributes
public class ColoringAttributes
ColoringAttributes defines attributes that apply to color mapping. Coloring attributes also may define some of the material colors if used in conjunction with lit objects and materials with color target set to something else than NONE.
| Field Summary | |
|---|---|
static org.jagatoo.opengl.enums.ShadeModel |
FASTEST
|
static org.jagatoo.opengl.enums.ShadeModel |
NICEST
|
static org.jagatoo.opengl.enums.ShadeModel |
SHADE_FLAT
|
static org.jagatoo.opengl.enums.ShadeModel |
SHADE_GOURAUD
|
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
ColoringAttributes()
Constructs a new ColoringAttributes object. |
|
ColoringAttributes(org.openmali.vecmath2.Colorf color)
Constructs a new ColoringAttributes object with the specified color. |
|
ColoringAttributes(org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.ShadeModel shadeModel)
Constructs a new ColoringAttributes object with the specified color. |
|
ColoringAttributes(float r,
float g,
float b)
Constructs a new ColoringAttributes object with the specified color. |
|
ColoringAttributes(float r,
float g,
float b,
org.jagatoo.opengl.enums.ShadeModel shadeModel)
Constructs a new ColoringAttributes object with the specified color. |
|
ColoringAttributes(org.jagatoo.opengl.enums.ShadeModel shadeModel)
Constructs a new ColoringAttributes object with the specified color. |
|
| Method Summary | |
|---|---|
ColoringAttributes |
cloneNodeComponent(boolean forceDuplicate)
|
int |
compareTo(ColoringAttributes 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. |
org.openmali.vecmath2.Colorf |
getColor()
|
org.openmali.vecmath2.Colorf |
getColor(org.openmali.vecmath2.Colorf color)
|
ColoringAttributes |
getCopy()
|
org.jagatoo.opengl.enums.ShadeModel |
getShadeModel()
|
long |
getStateId()
|
StateNode |
getStateNode()
|
void |
setColor(org.openmali.vecmath2.Colorf color)
Sets the color. |
void |
setColor(float r,
float g,
float b)
Sets the color. |
void |
setShadeModel(org.jagatoo.opengl.enums.ShadeModel model)
Sets the shade model. |
void |
setStateNode(StateNode node)
Used by the render engine to set the state id for the node. |
| Methods inherited from class org.xith3d.scenegraph.NodeComponent |
|---|
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| 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.ShadeModel SHADE_FLAT
ShadeModel.FLATpublic static final org.jagatoo.opengl.enums.ShadeModel SHADE_GOURAUD
ShadeModel.GOURAUDpublic static final org.jagatoo.opengl.enums.ShadeModel FASTEST
ShadeModel.FASTESTpublic static final org.jagatoo.opengl.enums.ShadeModel NICEST
ShadeModel.NICEST| Constructor Detail |
|---|
public ColoringAttributes()
public ColoringAttributes(float r,
float g,
float b,
org.jagatoo.opengl.enums.ShadeModel shadeModel)
public ColoringAttributes(float r,
float g,
float b)
public ColoringAttributes(org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.ShadeModel shadeModel)
public ColoringAttributes(org.openmali.vecmath2.Colorf color)
public ColoringAttributes(org.jagatoo.opengl.enums.ShadeModel shadeModel)
| Method Detail |
|---|
public final void setColor(float r,
float g,
float b)
public final void setColor(org.openmali.vecmath2.Colorf color)
public final org.openmali.vecmath2.Colorf getColor(org.openmali.vecmath2.Colorf color)
public final org.openmali.vecmath2.Colorf getColor()
public final void setShadeModel(org.jagatoo.opengl.enums.ShadeModel model)
public final org.jagatoo.opengl.enums.ShadeModel getShadeModel()
public final void setStateNode(StateNode node)
StateTrackable
setStateNode in interface StateTrackable<ColoringAttributes>public final StateNode getStateNode()
getStateNode in interface StateTrackable<ColoringAttributes>public final long getStateId()
public ColoringAttributes getCopy()
getCopy in interface StateTrackable<ColoringAttributes>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(ColoringAttributes o)
compareTo in interface java.lang.Comparable<ColoringAttributes>
protected void duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
duplicateNodeComponent in class NodeComponentpublic ColoringAttributes cloneNodeComponent(boolean forceDuplicate)
cloneNodeComponent in class NodeComponentpublic void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in class NodeComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||