camera3d
Class TransformScope

java.lang.Object
  extended bycamera3d.TransformScope

public class TransformScope
extends java.lang.Object

Defines the scope (such as an axis or a plane) that transformations acts upon.

Version:
1.0
Author:
Fábio Roberto de Miranda, Carlos da Silva dos Santos

Field Summary
static TransformScope X
          X axis.
static TransformScope XY
          XY plane.
static TransformScope XYZ
          Specifies a transform that affects X, Y and Z axii simultaneously.
static TransformScope Y
          Y axis.
static TransformScope YZ
          YZ plane.
static TransformScope Z
          Z axis.
static TransformScope ZX
          ZX plane.
 
Method Summary
 boolean isAxis()
          Returns a flag indicating whether this scope is an single axis.
 boolean isPlane()
          Returns a flag indicating whether this scope is a plane axis.
static TransformScope scopeForString(java.lang.String name)
          Returns the TransformScope correspondent to the input name.
 java.lang.String toString()
          Returns a String describing this TransformScope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

X

public static final TransformScope X
X axis.


Y

public static final TransformScope Y
Y axis.


Z

public static final TransformScope Z
Z axis.


XY

public static final TransformScope XY
XY plane.


YZ

public static final TransformScope YZ
YZ plane.


ZX

public static final TransformScope ZX
ZX plane.


XYZ

public static final TransformScope XYZ
Specifies a transform that affects X, Y and Z axii simultaneously.

Method Detail

isAxis

public boolean isAxis()
Returns a flag indicating whether this scope is an single axis.

Returns:
true if scope is an axis, false otherwise.

isPlane

public boolean isPlane()
Returns a flag indicating whether this scope is a plane axis.

Returns:
true if scope is a plane, false otherwise.

scopeForString

public static TransformScope scopeForString(java.lang.String name)
Returns the TransformScope correspondent to the input name. The valid name of one TransformScope instance is retrieved by calling the toString() method on that instance.

Parameters:
name - Name of desired scope.
Throws:
java.lang.IllegalArgumentException - if name is not a valid name of any TransformScope.

toString

public java.lang.String toString()
Returns a String describing this TransformScope.



Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.