|
||||||||||
| 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.Appearance
public class Appearance
Appearance is a component object of a Shape3D node that defines all rendering state attributes for that shape node.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
Appearance()
Constructs a new Appearance object. |
|
Appearance(java.lang.String texture)
Constructs a new Appearance object. |
|
Appearance(Texture texture)
Constructs a new Appearance object. |
|
| Method Summary | |
|---|---|
Appearance |
cloneNodeComponent(boolean forceDuplicate)
|
protected void |
duplicateNodeComponent(NodeComponent originalNodeComponent,
boolean forceDuplicate)
|
void |
freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all this NodeComponent and all child-components. |
ColoringAttributes |
getColoringAttributes()
|
ColoringAttributes |
getColoringAttributes(boolean forceExistance)
|
LineAttributes |
getLineAttributes()
|
LineAttributes |
getLineAttributes(boolean forceExistence)
|
Material |
getMaterial()
|
Material |
getMaterial(boolean forceExistence)
|
PointAttributes |
getPointAttributes()
|
PointAttributes |
getPointAttributes(boolean forceExistance)
|
PolygonAttributes |
getPolygonAttributes()
|
PolygonAttributes |
getPolygonAttributes(boolean forceExistence)
|
RenderingAttributes |
getRenderingAttributes()
|
RenderingAttributes |
getRenderingAttributes(boolean forceExistence)
|
ShaderProgramContext |
getShaderProgramContext()
|
TexCoordGeneration |
getTexCoordGeneration()
|
TexCoordGeneration |
getTexCoordGeneration(boolean forceExistence)
|
TexCoordGeneration |
getTexCoordGeneration(int unit)
|
TexCoordGeneration |
getTexCoordGeneration(int unit,
boolean forceExistence)
|
Texture |
getTexture()
|
Texture |
getTexture(int unit)
|
TextureAttributes |
getTextureAttributes()
|
TextureAttributes |
getTextureAttributes(boolean forceExistence)
|
TextureAttributes |
getTextureAttributes(int unit)
|
TextureAttributes |
getTextureAttributes(int unit,
boolean forceExistence)
|
TextureUnit |
getTextureUnit(int index)
|
TextureUnit[] |
getTextureUnits()
|
int |
getTextureUnitsCount()
|
TransparencyAttributes |
getTransparencyAttributes()
|
TransparencyAttributes |
getTransparencyAttributes(boolean forceExistance)
Returns this Appearance'es TransparencyAttributes, if they exist. |
boolean |
isChanged()
|
static boolean |
isDefaultStatic()
|
boolean |
isStatic()
|
boolean |
isStaticDirty()
|
void |
markStaticDirty()
|
void |
setChanged(boolean changed)
|
void |
setChangedRecursive(boolean changed)
|
void |
setColor(org.openmali.vecmath2.Colorf color)
Sets the color of this object, creating a ColoringAttributes if needed. |
void |
setColor(float r,
float g,
float b)
Sets the color of this object, creating a ColoringAttributes if needed. |
void |
setColoringAttributes(ColoringAttributes coloringAttrs)
Sets the coloring attributes information. |
static void |
setDefaultStatic(boolean b)
|
void |
setDrawMode(org.jagatoo.opengl.enums.DrawMode drawMode)
Changes the draw mode |
void |
setFaceCullMode(org.jagatoo.opengl.enums.FaceCullMode mode)
Changes the face culling mode. |
void |
setLineAttributes(LineAttributes lineAttrs)
Sets the line attributes information. |
void |
setMaterial(Material material)
Sets the material information. |
void |
setModListener(ScenegraphModificationsListener modListener)
|
void |
setPointAttributes(PointAttributes pointAttrs)
Sets the point attributes information. |
void |
setPolygonAttributes(PolygonAttributes polygonAttrs)
Sets the polygon attributes information. |
void |
setRenderingAttributes(RenderingAttributes renderingAttrs)
Sets the rendering attributes information. |
void |
setShaderProgramContext(ShaderProgramContext shaderProgramContext)
Sets the ShaderProgram information. |
void |
setStatic(boolean b)
|
void |
setTexCoordGeneration(int unit,
TexCoordGeneration texCoordGen)
Sets the TexCoordGeneration of the given TextureUnit. |
void |
setTexCoordGeneration(TexCoordGeneration texCoordGen)
Sets the TexCoordGeneration of the first (#0) TextureUnit. |
void |
setTexture(int unit,
java.lang.String texture)
Sets the Texture of the first (#0) TextureUnit. |
void |
setTexture(int unit,
Texture texture)
Sets the Texture of the given TextureUnit. |
void |
setTexture(java.lang.String texture)
Sets the Texture of the first (#0) TextureUnit. |
void |
setTexture(Texture texture)
Sets the Texture of the first (#0) TextureUnit. |
void |
setTextureAttributes(int unit,
TextureAttributes textureAttribs)
Sets the TextureAttributes of the given TextureUnit. |
void |
setTextureAttributes(TextureAttributes textureAttribs)
Sets the TextureAttributes of the first (#0) TextureUnit. |
void |
setTextureUnit(int index,
TextureUnit tu)
|
void |
setTextureUnits(TextureUnit... textureUnits)
|
void |
setTransparencyAttributes(TransparencyAttributes transparencyAttrs)
Sets the transparency attributes information. |
long |
verifyChange(Shape3D shape,
OpenGLCapabilities glCaps)
|
| Methods inherited from class org.xith3d.scenegraph.NodeComponent |
|---|
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged2, setDuplicateOnCloneTree |
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Appearance()
public Appearance(Texture texture)
texture - public Appearance(java.lang.String texture)
texture - | Method Detail |
|---|
public static final void setDefaultStatic(boolean b)
public static final boolean isDefaultStatic()
public final void setStatic(boolean b)
public final boolean isStatic()
public void markStaticDirty()
public final boolean isStaticDirty()
public void setModListener(ScenegraphModificationsListener modListener)
setModListener in class NodeComponentpublic final void setMaterial(Material material)
public final Material getMaterial()
public final Material getMaterial(boolean forceExistence)
forceExistence - if this appearance has no material, create one and
return it.
public final void setTexture(int unit,
Texture texture)
unit - texture - public final void setTexture(Texture texture)
texture -
public final void setTexture(int unit,
java.lang.String texture)
texture - public final void setTexture(java.lang.String texture)
texture - public final Texture getTexture(int unit)
unit -
public final Texture getTexture()
public final void setTextureAttributes(int unit,
TextureAttributes textureAttribs)
unit - textureAttribs - public final void setTextureAttributes(TextureAttributes textureAttribs)
textureAttribs - public final TextureAttributes getTextureAttributes(int unit)
unit -
public final TextureAttributes getTextureAttributes(int unit,
boolean forceExistence)
unit -
public final TextureAttributes getTextureAttributes()
public final TextureAttributes getTextureAttributes(boolean forceExistence)
public final void setTexCoordGeneration(int unit,
TexCoordGeneration texCoordGen)
unit - texCoordGen - public final void setTexCoordGeneration(TexCoordGeneration texCoordGen)
texCoordGen - public final TexCoordGeneration getTexCoordGeneration(int unit)
unit -
public final TexCoordGeneration getTexCoordGeneration(int unit,
boolean forceExistence)
unit -
public final TexCoordGeneration getTexCoordGeneration()
public final TexCoordGeneration getTexCoordGeneration(boolean forceExistence)
public final void setTextureUnits(TextureUnit... textureUnits)
public final void setTextureUnit(int index,
TextureUnit tu)
public final TextureUnit[] getTextureUnits()
public TextureUnit getTextureUnit(int index)
public int getTextureUnitsCount()
public final void setShaderProgramContext(ShaderProgramContext shaderProgramContext)
public final ShaderProgramContext getShaderProgramContext()
public final void setColoringAttributes(ColoringAttributes coloringAttrs)
public final ColoringAttributes getColoringAttributes()
public final ColoringAttributes getColoringAttributes(boolean forceExistance)
public final void setTransparencyAttributes(TransparencyAttributes transparencyAttrs)
public final TransparencyAttributes getTransparencyAttributes()
public final TransparencyAttributes getTransparencyAttributes(boolean forceExistance)
forceExistance - if true, a new TransparencyAttributes is created
and attached, if it doesn't already exist.
public final void setRenderingAttributes(RenderingAttributes renderingAttrs)
public final RenderingAttributes getRenderingAttributes()
public final RenderingAttributes getRenderingAttributes(boolean forceExistence)
public final void setPolygonAttributes(PolygonAttributes polygonAttrs)
public final PolygonAttributes getPolygonAttributes()
public final PolygonAttributes getPolygonAttributes(boolean forceExistence)
public final void setLineAttributes(LineAttributes lineAttrs)
public final LineAttributes getLineAttributes()
public final LineAttributes getLineAttributes(boolean forceExistence)
public final void setPointAttributes(PointAttributes pointAttrs)
public final PointAttributes getPointAttributes()
public final PointAttributes getPointAttributes(boolean forceExistance)
public void setChanged(boolean changed)
setChanged in class NodeComponentpublic void setChangedRecursive(boolean changed)
public final long verifyChange(Shape3D shape,
OpenGLCapabilities glCaps)
public void setColor(org.openmali.vecmath2.Colorf color)
color - Color value
public void setColor(float r,
float g,
float b)
r - Red valueg - Green valueb - Blue valuepublic void setFaceCullMode(org.jagatoo.opengl.enums.FaceCullMode mode)
mode - The new culling mode. Can be PolygonAttributes.CULL_NONE,
PolygonAttributes.CULL_BACK, or PolygonAttributes.CULL_FRONTpublic void setDrawMode(org.jagatoo.opengl.enums.DrawMode drawMode)
drawMode - The new draw mode. Can be PolygonAttributes.POLYGON_FILL,
PolygonAttributes.POLYGON_LINE,
PolygonAttributes.POLYGON_POINTpublic boolean isChanged()
isChanged in class NodeComponent
protected void duplicateNodeComponent(NodeComponent originalNodeComponent,
boolean forceDuplicate)
duplicateNodeComponent in class NodeComponentpublic Appearance 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 | |||||||||