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

Class anim.RotateYEffect

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

public class RotateYEffect
extends Effect
A Rotation about the Y axis. Takes its input and rotates it about the specified vertical Axis by the specified Angle. It may be used for example to do a perspective correct 3D horizontal 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 RotateYEffect(RotateYParam)
Creates a rotation by the specified angle on a 2D object about the specified vertical axis.

METHOD INDEX

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

CONSTRUCTORS

 O RotateYEffect
  public RotateYEffect(RotateYParam param)
Creates a rotation by the specified angle on a 2D object about the specified vertical axis.
Parameters:
RotateYParam - contains the parameters for this effect. The parameters for this effect are the vertical 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(RotateYParam param)
Sets parameters for a rotation about the y axis effect on a 2D object.
Parameters:
RotateYParam - contains the parameters for this effect. The parameters for this effect are the vertical 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 width of the sprite cause the near most edge of the sprite to pop out of the screen. e.g. for a sprite of width 200 and a rotation axis at its center, if the depth is less than 100 then a rotation of 90 degrees will cause this exception A false return also happens if 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:
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 current parameters cause a downstream effect to be out of range
Overrides:
setOutputView in class Effect
 O getParams
  public RotateYParam getParams()
Returns the parameters for the RotateY animation effect.
Returns:
current parameters for the RotateY 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