public class FileOctree
extends java.lang.Object
Constructor and Description |
---|
FileOctree() |
Modifier and Type | Method and Description |
---|---|
void |
debug_draw()
Prints the nodes to the console.
|
void |
generateNew2DChecker(java.lang.String filename,
int[] size)
Generates a 2d checker data-set.
|
void |
generateNew2DFile(java.lang.String filename,
java.lang.String source_filename,
int[] size)
Generates a new data-set from a png image.
|
void |
generateNewShort(java.lang.String filename,
int[] size,
boolean sphere)
Generates a random data-set.
|
Boundary |
getBoundary()
Returns the size of the data.
|
Boundary |
getBoundaryOfElement(int element)
Returns the boundary of a certain node.
|
float |
getLimit()
Returns the maximum of the value-range
|
java.util.ArrayList<java.lang.Float> |
getNextPointList()
Returns the float values of the image/volume as an ArrayList
Points - e.g.
|
float[] |
getPoints(int threshold)
Returns an array of points for rendering.
|
float[] |
getPointsOctree(int threshold,
int[] active_parts)
Returns an area selection of the octree as a list of points.
|
float[] |
getPointsOctree2D(int threshold,
int[] active_parts)
Most recent implementation to get a list of points from a 2D image.
|
java.lang.Short[] |
getValues(int element)
Gets the short values of a certain leaf node.
|
boolean |
initFile(int max_partition_size,
java.lang.String path)
Initializes the file and creates the octree.
|
int |
initPointListLoad(Boundary area)
Initializes the loading of data contained within a boundary.
|
void |
printTree()
Prints some of the nodes to the console.
|
int[] |
queryArea(Boundary area)
Finds the leaf nodes contained within a certain area.
|
static void |
setMaximumSize(int in) |
void |
writePointList(java.util.ArrayList<java.lang.Float> points)
Writes a list of points to the current node.
|
public static void setMaximumSize(int in)
public boolean initFile(int max_partition_size, java.lang.String path)
max_partition_size
- path
- public int[] queryArea(Boundary area)
area
- public Boundary getBoundaryOfElement(int element)
element
- public java.lang.Short[] getValues(int element)
element
- public void generateNewShort(java.lang.String filename, int[] size, boolean sphere)
filename
- size
- sphere
- public void generateNew2DChecker(java.lang.String filename, int[] size)
filename
- size
- public void generateNew2DFile(java.lang.String filename, java.lang.String source_filename, int[] size)
filename
- source_filename
- public float[] getPoints(int threshold)
threshold
- public float[] getPointsOctree(int threshold, int[] active_parts)
threshold
- active_parts
- public float[] getPointsOctree2D(int threshold, int[] active_parts)
threshold
- active_parts
- public int initPointListLoad(Boundary area)
area
- public java.util.ArrayList<java.lang.Float> getNextPointList()
public void writePointList(java.util.ArrayList<java.lang.Float> points)
points
- public Boundary getBoundary()
public float getLimit()
public void debug_draw()
public void printTree()