|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.vecmath.geom.Variables
public class Variables
This class contains a set of temporary variables which may be used
freely in methods which receive an instance of Variables
as argument. The sole requirement is that the size of the
int
-stack is restored to its value before method invocation.
Field Summary | |
---|---|
java.util.HashMap<java.lang.Object,java.lang.Object> |
cache
This map may be used by methods which have an instance of Variables as parameter in order to store
some information which should be available in following
invocations of the method. |
int[] |
istack
This field contains an int -stack. |
Line |
tmpLine
This line may be used freely. |
Matrix3d |
tmpMatrix3
This matrix may be used freely. |
Point3d |
tmpPoint0
This point may be used freely. |
Point3d |
tmpPoint1
This point may be used freely. |
Point3d |
tmpPoint2
This point may be used freely. |
Point3d |
tmpPoint3
This point may be used freely. |
Vector3d |
tmpVector0
This vector may be used freely. |
Vector3d |
tmpVector1
This vector may be used freely. |
Vector3d |
tmpVector2
This vector may be used freely. |
Vector3d |
tmpVector3
This vector may be used freely. |
Constructor Summary | |
---|---|
Variables()
|
Method Summary | |
---|---|
int |
getISize()
|
int |
ienter(int size)
This method increases the size of the int -stack istack by size
and returns the previous size of the stack. |
int |
ipop()
This method pops the topmost element off the int -stack istack and returns
its value. |
void |
ipush(int value)
This method pushs a new value
on the int -stack istack . |
void |
setISize(int isize)
This method sets the size of the int -stack
istack to isize . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.util.HashMap<java.lang.Object,java.lang.Object> cache
Variables
as parameter in order to store
some information which should be available in following
invocations of the method.
public int[] istack
int
-stack. Its size
is defined by isize
.
ipush(int)
public final Line tmpLine
public final Matrix3d tmpMatrix3
public final Point3d tmpPoint0
public final Point3d tmpPoint1
public final Point3d tmpPoint2
public final Point3d tmpPoint3
public final Vector3d tmpVector0
public final Vector3d tmpVector1
public final Vector3d tmpVector2
public final Vector3d tmpVector3
Constructor Detail |
---|
public Variables()
Method Detail |
---|
public int getISize()
public int ienter(int size)
int
-stack istack
by size
and returns the previous size of the stack.
size
- size increment
getISize()
public int ipop()
int
-stack istack
and returns
its value.
public void ipush(int value)
value
on the int
-stack istack
.
value
- value to pushpublic void setISize(int isize)
int
-stack
istack
to isize
. The array is enlarged
if necessary.
isize
- new size of stack
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |