Class vrml.Shape
Class vrml.Shape
java.lang.Object
|
+----vrml.Shape
- public class Shape
- extends Object
- implements Node
This class correspond the Shape node in Moving World.
Variable Index
- o
diffuse
- whichcolor arg for set/getColor() method.
- o
emissive
- whichcolor arg for set/getColor() method.
- o
specular
- whichcolor arg for set/getColor() method.
Method Index
- o
get3DMovieFrame()
- Get current frame of video on object's surface.
- o
get3DMovieFrameNum()
- Get frame number of video on object's surface.
- o
get3DMovieSpeed()
- Get video speed on object's surface.
- o
getAmbientIntensity()
-
- o
getColor(int)
- Get material color of this VRML node.
- o
getComment()
-
- o
getName()
-
- o
getShininess()
- Get shininess of this VRML node.
- o
getTextureFilename()
-
- o
getTextureFraction()
-
- o
getTransparency()
- Get transparency of this VRML node.
- o
getValue(String)
- Node interface.
- o
pause3DMovie()
- Pause Video on objec't surface.
- o
play3DMovie()
- Play Video on objec't surface.
- o
postEventIn(String, Field)
-
- o
set3DMovieFrame(int)
- Set video object's frame.
- o
set3DMovieNextFrame()
- Set video object's frame to next.
- o
set3DMoviePrevFrame()
- Set video object's frame to prev.
- o
set3DMovieSpeed(float)
- Set video speed on object's surface.
- o
setAmbientIntensity(float)
-
- o
setColor(int, float[])
- Set material color of this VRML node.
- o
setComment(String)
-
- o
setShininess(float)
- Set shininess of this VRML node.
- o
setTextureFilename(String[])
-
- o
setTextureFraction(float)
-
- o
setTransparency(float)
- Set transparency of this VRML node.
Variables
o
diffuse
public final static int diffuse
- whichcolor arg for set/getColor() method.
o
specular
public final static int specular
- whichcolor arg for set/getColor() method.
o
emissive
public final static int emissive
- whichcolor arg for set/getColor() method.
Methods
o
getValue
public ConstField getValue(String fieldName)
- Node interface.
o
postEventIn
public void postEventIn(String eventName,
Field eventValue)
o
getColor
public float[] getColor(int whichcolor)
- Get material color of this VRML node.
- Parameters:
- whichcolor - one of diffuse, specular and emissive.
- Returns:
- color of this node.
ret[0] -> red (0.0 - 1.0)
ret[1] -> green (0.0 - 1.0)
ret[2] -> blue (0.0 - 1.0)
o
getShininess
public float getShininess()
- Get shininess of this VRML node.
- Returns:
- shininess of this node.(0.0 - 1.0)
o
getTransparency
public float getTransparency()
- Get transparency of this VRML node.
- Returns:
- transparency of this node.(0.0 - 1.0)
o
setColor
public void setColor(int whichcolor,
float color[])
- Set material color of this VRML node.
- Parameters:
- whichcolor - one of diffuse, specular and emissive.
- color -
color[0] -> red (0.0 - 1.0)
color[1] -> green (0.0 - 1.0)
color[2] -> blue (0.0 - 1.0)
- Returns:
- none.
o
setShininess
public void setShininess(float shininess)
- Set shininess of this VRML node.
- Parameters:
- shininess - shininess of this node.(0.0 - 1.0)
o
setTransparency
public void setTransparency(float transparency)
- Set transparency of this VRML node.
- Parameters:
- transparency - of this node.(0.0 - 1.0)
o
play3DMovie
public void play3DMovie()
- Play Video on objec't surface.
o
pause3DMovie
public void pause3DMovie()
- Pause Video on objec't surface.
o
set3DMovieSpeed
public void set3DMovieSpeed(float speed)
- Set video speed on object's surface.
- Parameters:
- speed - 1.0f for normal speed. -1.0 for revers play.
2.0f for double speed.
o
get3DMovieSpeed
public float get3DMovieSpeed()
- Get video speed on object's surface.
- Returns:
- Current speed.
o
get3DMovieFrame
public int get3DMovieFrame()
- Get current frame of video on object's surface.
- Returns:
- Current frame no.
o
get3DMovieFrameNum
public int get3DMovieFrameNum()
- Get frame number of video on object's surface.
- Returns:
- number of frame.
o
set3DMovieFrame
public void set3DMovieFrame(int f)
- Set video object's frame.
- Parameters:
- f - frame no.(0- (number of frame-1))
- Returns:
- frame number.
o
set3DMovieNextFrame
public void set3DMovieNextFrame()
- Set video object's frame to next.
- Returns:
- none.
o
set3DMoviePrevFrame
public void set3DMoviePrevFrame()
- Set video object's frame to prev.
- Returns:
- none.
o
getTextureFilename
public String[] getTextureFilename()
o
getTextureFraction
public float getTextureFraction()
o
setTextureFilename
public void setTextureFilename(String filename[])
o
setTextureFraction
public float setTextureFraction(float fraction)
o
setAmbientIntensity
public void setAmbientIntensity(float intensity)
o
getAmbientIntensity
public float getAmbientIntensity()
o
setComment
public void setComment(String objectname)
o
getName
public String getName()
o
getComment
public String getComment()