Class FramePlane
java.lang.Object
|
+--net.fractalkiss.util.Util
|
+--FramePlane
- public class FramePlane
- extends Util
Plane alignment application and tools for working with text and other input.
Constructor Summary |
FramePlane()
Creates new FramePlane |
Method Summary |
static void |
alignFrames(char[][] plane,
int res,
int frame,
java.io.InputStream in,
java.lang.String name)
Performs frame fragmentation |
static void |
main(java.lang.String[] args)
java FramePlane -h |
static boolean |
readPlane(char[][] plane,
java.lang.String name,
int res)
Reads a char plane of size res*res*res from the name file |
static void |
writePlane(char[][] plane,
java.lang.String name,
int res)
writes plane to name file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FramePlane
public FramePlane()
- Creates new FramePlane
main
public static void main(java.lang.String[] args)
- java FramePlane -h
- Parameters:
args
- java FrameCube -h
alignFrames
public static void alignFrames(char[][] plane,
int res,
int frame,
java.io.InputStream in,
java.lang.String name)
throws java.lang.Exception
- Performs frame fragmentation
- Parameters:
plane
- 2D char arrayres
- resolution 128 or 256frame
- bytes per framein
- stream of framed inputname
- stored cube if present- Throws:
java.lang.Exception
- file I/O exceptions
readPlane
public static boolean readPlane(char[][] plane,
java.lang.String name,
int res)
- Reads a char
plane
of size res*res*res
from the name
file
- Parameters:
plane
- 2D char arrayname
- file to readres
- size of cube sides- Returns:
- returns false if file can't be opened
writePlane
public static void writePlane(char[][] plane,
java.lang.String name,
int res)
- writes
plane
to name
file
- Parameters:
plane
- 2D char arrayname
- file nameres
- size of cube sides