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
-
PixelTexture()
- Default Constructor.
-
PixelTexture(boolean, boolean)
- Constructor used when you don't want to use the default settings for the
texture repeating.
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_height()
- Get the current height of the image
-
get_numComponents()
- Get the number of components that this image is using
-
get_pixels()
- Get the actual pixel values used in this image.
-
get_width()
- Get the current width of the image
-
set_image(int, int, int, byte[])
- Set the image with the given details
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
PixelTexture
public PixelTexture()
- Default Constructor. Creates a default PixelTexture
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.
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup 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_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.
get_width
public int get_width()
- Get the current width of the image
- Returns:
- The width in pixels
get_height
public int get_height()
- Get the current height of the image
- Returns:
- The height in pixels
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.
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.
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