All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.Appearance
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.Appearance
- public class Appearance
- extends VrmlObject
JVerge
- Version:
- 0.8 (beta 4)
Copyright 1997
The Virtual Light Company
under the
GNU LGPL
The latest information and bugs in JVerge can be found at
http://www.vlc.com.au/JVerge
For definition of the Appearance node please see the
VRML 97 Appearance specification
- Author:
- Justin Couch justin@vlc.com.au
-
Appearance()
- Default Constructor.
-
Appearance(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_material()
- Get the current Material node in used by this node
-
get_texture()
- Get the currently loaded texture for this node.
-
get_textureTransform()
- Get the currently loaded TextureTransform for this node.
-
hasMaterial()
- Test to see if the node has a Material set.
Deprecated.
-
hasTexture()
- Test to see if the node has a Texture set.
Deprecated.
-
hasTextureTransform()
- Test to see if the node has a TextureTransform set.
Deprecated.
-
set_material(Material)
- Set the material node of this string
-
set_texture(Texture)
- Set a texture to be used in this appearance.
-
set_textureTransform(TextureTransform)
- Set the TextureTransform to be used in this appearance.
-
writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Appearance
public Appearance()
- Default Constructor. Creates a default Appearance
Appearance
public Appearance(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default Appearance
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup in class VrmlObject
writeReset
public void writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
- Overrides:
- writeReset in class VrmlObject
writeToStream
public void writeToStream(int indent)
- Prints the formatted contents of this node to the given stream.
- Parameters:
- indent - The number of spaces to indent this node in the string
- Overrides:
- writeToStream in class VrmlObject
set_material
public void set_material(Material mat)
- Set the material node of this string
- Parameters:
- mat - A JVerge material node to be used or null to delete
the current node.
get_material
public Material get_material()
- Get the current Material node in used by this node
- Returns:
- The material node being used. If none is set then null is
returned.
set_texture
public void set_texture(Texture tex)
- Set a texture to be used in this appearance. The texture can be any
one of the valid texture nodes for VRML 2.0
- Parameters:
- tex - A texture to be used or null to remove the current texture.
get_texture
public Texture get_texture()
- Get the currently loaded texture for this node.
- Returns:
- The currently used texture or null if none is set.
set_textureTransform
public void set_textureTransform(TextureTransform tex)
- Set the TextureTransform to be used in this appearance.
- Parameters:
- tex - A TextureTransform to be used or null to remove the
current one.
get_textureTransform
public TextureTransform get_textureTransform()
- Get the currently loaded TextureTransform for this node.
- Returns:
- The currently used texture or null if none is set.
hasMaterial
public boolean hasMaterial()
- Note: hasMaterial() is deprecated.
- Test to see if the node has a Material set.
- See Also:
- get_material
hasTexture
public boolean hasTexture()
- Note: hasTexture() is deprecated.
- Test to see if the node has a Texture set.
- See Also:
- get_texture
hasTextureTransform
public boolean hasTextureTransform()
- Note: hasTextureTransform() is deprecated.
- Test to see if the node has a TextureTransform set.
- See Also:
- get_textureTransform
clone
public Object clone()
- Make a clone of this object
- Returns:
- A deep clone copy of this object
- Overrides:
- clone in class VrmlObject
All Packages Class Hierarchy This Package Previous Next Index