Class anim.RotateXEffect
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class anim.RotateXEffect

java.lang.Object
   |
   +----anim.Effect
           |
           +----anim.RotateXEffect

public class RotateXEffect
extends Effect
A Rotation about the X axis. Takes its input and rotates it about the specified horizontal Axis by the specified Angle. It may be used for example to do a perspective correct 3D vertical flip on a 2D sprite. It is perspective correct and uses the depth of the object to which it is applied to determine the amount of perspective correction assuming the viewer is at depth=0 (on the surface of the screen).

Copyright (c) 1996-1997 Intel Corporation


CONSTRUCTOR INDEX

 O RotateXEffect(RotateXParam)
Creates a rotation by the specified angle on a 2D object about the specified horizontal axis.

METHOD INDEX

 O getParams()
Returns the parameters for the RotateX animation effect.
 O setOutputView()
Not applet visible.
 O setParams(RotateXParam)
Sets parameters for a rotation about the x axis effect on a 2D object
 O toString()
Returns the String representation of this Effect's internal state.

CONSTRUCTORS

 O RotateXEffect
  public RotateXEffect(RotateXParam param)
Creates a rotation by the specified angle on a 2D object about the specified horizontal axis.
Parameters:
RotateXParam - contains the parameters for this effect. The parameters for this effect are the horizontal Axis about which to rotate and the Angle to rotate in degrees. This effect also uses the current depth of its parent object to determine the amount of perspective correction assuming the viewer is at depth=0 (on the surface of the screen)..

METHODS

 O setParams
  public synchronized boolean setParams(RotateXParam param)
Sets parameters for a rotation about the x axis effect on a 2D object
Parameters:
RotateXParam - contains the parameters for this effect. The parameters for this effect are the horizontal Axis about which to rotate and the Angle to rotate in degrees. This effect also uses the current depth of its parent object to determine the amount of perspective correction assuming the viewer is at depth=0 (on the surface of the screen).
Returns:
false if the depth of this sprite and the current angle of rotation coupled with the heigth of the sprite cause the near most edge of the sprite to pop out of the screen. e.g. for a sprite of height 200 and a rotation axis at its center, if the depth is less than 100 then a rotation of 90 degrees will cause a false return value. A false return may also indicates that the current parameters cause some downstream effect to be out of range
See Also:
getParams, prepare
 O setOutputView
  protected boolean setOutputView()
Not applet visible. Specifies the output view for this effect. This is a rectangle that defines a region on the output that this effect maps to
Returns:
false if the current parameters -- depth and degrees of rotation cause the closest edge of the sprite to be pop out of the screen or if they cause a downstream effect to be out of range
Overrides:
setOutputView in class Effect
 O getParams
  public RotateXParam getParams()
Returns the parameters for the RotateX animation effect.
Returns:
current parameters for the RotateX effect
See Also:
setParams
 O toString
  public String toString()
Returns the String representation of this Effect's internal state.
Overrides:
toString in class Effect

All Packages  Class Hierarchy  This Package  Previous  Next  Index
Free Web Hosting