All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.generic.geometry.PixelTexture

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.generic.geometry.Texture
                   |
                   +----vlc.vrml.generic.geometry.PixelTexture

public class PixelTexture
extends Texture
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 Anchor node please see the VRML 97 Anchor specification

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o PixelTexture()
Default Constructor.
 o PixelTexture(boolean, boolean)
Constructor used when you don't want to use the default settings for the texture repeating.

Method Index

 o cleanup()
Call when about to remove the node from the scenegraph.
 o clone()
Make a clone of this object
 o get_height()
Get the current height of the image
 o get_numComponents()
Get the number of components that this image is using
 o get_pixels()
Get the actual pixel values used in this image.
 o get_width()
Get the current width of the image
 o set_image(int, int, int, byte[])
Set the image with the given details
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o PixelTexture
 public PixelTexture()
Default Constructor. Creates a default PixelTexture

 o PixelTexture
 public PixelTexture(boolean rptS,
                     boolean rptT)
Constructor used when you don't want to use the default settings for the texture repeating.

Parameters:
rptS - true if to repeat in the S direction.
rptT - true if to repeat in the T direction.

Methods

 o cleanup
 public void cleanup()
Call when about to remove the node from the scenegraph.

Overrides:
cleanup in class VrmlObject
 o 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
 o set_image
 public void set_image(int width,
                       int height,
                       int num_components,
                       byte pixels[])
Set the image with the given details

Parameters:
width - Width of the image in pixels
height - Height of the image in pixels
num_components - The number of components in this image 1 is Intensity to 4 RGBA
pixels - The array of pixels to use. Format defined by the VRML 2.0 Java scripting appendix.
 o get_width
 public int get_width()
Get the current width of the image

Returns:
The width in pixels
 o get_height
 public int get_height()
Get the current height of the image

Returns:
The height in pixels
 o get_numComponents
 public int get_numComponents()
Get the number of components that this image is using

Returns:
a number between 1 and 4 indicating numbr of components.
 o get_pixels
 public byte[] get_pixels()
Get the actual pixel values used in this image.

Returns:
Array of pixel values. Order defined by VRMNL 2.0 spec.
 o clone
 public Object clone()
Make a clone of this object

Returns:
A deep clone copy of this object
Overrides:
clone in class Texture

All Packages  Class Hierarchy  This Package  Previous  Next  Index