Class vrml.Transform
Class vrml.Transform
java.lang.Object
|
+----vrml.Transform
- public class Transform
- extends Object
- implements Node
This class correspond the Transform node in Moving World.
Variable Index
- o
modeAbsolute
-
Translation mode.
- o
modeRelative
-
Translation mode.
Constructor Index
- o
Transform(int)
-
Do not call this constructor.
Method Index
- o
getRotation()
- Get local rotaion of this VRML node.
- o
getTranslation()
- Get local translation of this VRML node.
- o
getValue(String)
- Node interface.
- o
getWorldRotation()
- Get world rotaion of this VRML node.
- o
getWorldTranslation()
- Get world translation of this VRML node.
- o
postEventIn(String, Field)
-
- o
rotate(float[], int)
- Rotate this VRML node in local coordiate.
- o
rotateAroundBBoxCenter(float[], int)
- Rotate this VRML node around bounding box center in local coordiate.
- o
rotateAroundBBoxCenterDegree(float[], int)
- Rotate this VRML node around bounding box center in local coordiate.
- o
rotateAroundLine(float[], float[], int)
- Rotate this VRML node around specified line as P in local coordinate.
- o
rotateAroundLineDegree(float[], float[], int)
- Rotate this VRML node around specified line as P in local coordinate.
- o
rotateDegree(float[], int)
- Rotate this VRML node in local coordiate.
- o
translate(float[], int)
- Translate this VRML node in local coordiate.
- o
worldRotate(float[], int)
- Rotate this VRML node in world coordiate.
- o
worldRotateAroundBBoxCenter(float[], int)
- Rotate this VRML node around bounding box center in world coordiate.
- o
worldRotateAroundBBoxCenterDegree(float[], int)
- Rotate this VRML node around bounding box center in world coordiate.
- o
worldRotateAroundLine(float[], float[], int)
- Rotate this VRML node around specified line as P in world coordinate.
- o
worldRotateAroundLineDegree(float[], float[], int)
- Rotate this VRML node around specified line as P in world coordinate.
- o
worldRotateDegree(float[], int)
- Rotate this VRML node in world coordiate.
- o
worldTranslate(float[], int)
- Translate this VRML node in world coordiate.
Variables
o
modeRelative
public final static int modeRelative
- Translation mode.
o
modeAbsolute
public final static int modeAbsolute
- Translation mode.
Constructors
o
Transform
public Transform(int obj)
- Do not call this constructor. this must be called by browser program.
Methods
o
getValue
public ConstField getValue(String fieldName)
- Node interface.
o
postEventIn
public void postEventIn(String eventName,
Field eventValue)
o
getTranslation
public float[] getTranslation()
- Get local translation of this VRML node.
- Returns:
- local translation(SFVec3f).
ret[0] -> x
ret[1] -> y
ret[2] -> z
o
getRotation
public float[] getRotation()
- Get local rotaion of this VRML node.
- Returns:
- local rotaion.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> radian
o
translate
public void translate(float T[],
int mode)
- Translate this VRML node in local coordiate.
- Parameters:
- T - Translation.
ret[0] -> x
ret[1] -> y
ret[2] -> z
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
rotate
public void rotate(float R[],
int mode)
- Rotate this VRML node in local coordiate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> radian
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
rotateAroundLine
public void rotateAroundLine(float R[],
float P[],
int mode)
- Rotate this VRML node around specified line as P in local coordinate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> radian
- P - Axis.
ret[0] -> x
ret[1] -> y
ret[2] -> z
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
rotateAroundBBoxCenter
public void rotateAroundBBoxCenter(float R[],
int mode)
- Rotate this VRML node around bounding box center in local coordiate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> radian
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
rotateDegree
public void rotateDegree(float R[],
int mode)
- Rotate this VRML node in local coordiate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> degree
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
rotateAroundLineDegree
public void rotateAroundLineDegree(float R[],
float P[],
int mode)
- Rotate this VRML node around specified line as P in local coordinate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> degree
- P - Axis.
ret[0] -> x
ret[1] -> y
ret[2] -> z
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
rotateAroundBBoxCenterDegree
public void rotateAroundBBoxCenterDegree(float R[],
int mode)
- Rotate this VRML node around bounding box center in local coordiate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> degree
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
getWorldTranslation
public float[] getWorldTranslation()
- Get world translation of this VRML node.
- Returns:
- local translation(SFVec3f).
ret[0] -> x
ret[1] -> y
ret[2] -> z
o
getWorldRotation
public float[] getWorldRotation()
- Get world rotaion of this VRML node.
- Returns:
- local rotaion.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> radian
o
worldTranslate
public void worldTranslate(float T[],
int mode)
- Translate this VRML node in world coordiate.
- Parameters:
- T - Translation.
ret[0] -> x
ret[1] -> y
ret[2] -> z
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
worldRotate
public void worldRotate(float R[],
int mode)
- Rotate this VRML node in world coordiate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> radian
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
worldRotateAroundLine
public void worldRotateAroundLine(float R[],
float P[],
int mode)
- Rotate this VRML node around specified line as P in world coordinate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> radian
- P - Axis.
ret[0] -> x
ret[1] -> y
ret[2] -> z
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
worldRotateAroundBBoxCenter
public void worldRotateAroundBBoxCenter(float R[],
int mode)
- Rotate this VRML node around bounding box center in world coordiate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> radian
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
worldRotateDegree
public void worldRotateDegree(float R[],
int mode)
- Rotate this VRML node in world coordiate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> degree
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
worldRotateAroundLineDegree
public void worldRotateAroundLineDegree(float R[],
float P[],
int mode)
- Rotate this VRML node around specified line as P in world coordinate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> degree
- P - Axis.
ret[0] -> x
ret[1] -> y
ret[2] -> z
- mode - modeRelative or modeAbsolute.
- Returns:
- none.
o
worldRotateAroundBBoxCenterDegree
public void worldRotateAroundBBoxCenterDegree(float R[],
int mode)
- Rotate this VRML node around bounding box center in world coordiate.
- Parameters:
- R - Rotation.
ret[0] -> x axis
ret[1] -> y axis
ret[2] -> z axis
ret[3] -> degree
- mode - modeRelative or modeAbsolute.
- Returns:
- none.