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 net.fractalkiss.util.Util
and, fill02, fill03, nand, or, writeBytes, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FramePlane

public FramePlane()
Creates new FramePlane
Method Detail

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 array
res - resolution 128 or 256
frame - bytes per frame
in - stream of framed input
name - 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 array
name - file to read
res - 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 array
name - file name
res - size of cube sides