Class VisualHullCreator

java.lang.Object
  extended by VisualHullCreator
All Implemented Interfaces:
java.lang.Runnable

public class VisualHullCreator
extends java.lang.Object
implements java.lang.Runnable

This class takes care of all the steps of constructing a visual hull from a set of reference views and a desired view.


Field Summary
 java.lang.Thread thread
           
 
Constructor Summary
VisualHullCreator(java.util.Vector refs, Camera desired)
          Creates a VisualHullCreator with the supplied reference views and desired view.
 
Method Summary
 java.lang.String getNote()
          Returns a String that describes what phase the calculations are in.
 int getProgress()
          Returns how far the calculation of the visual hull has progressed.
 VisualHull getVisualHull()
          Returns the VisualHull object contained in the VisualHullCreator.
 boolean isFinished()
          Returns whether the calculation of the visual hull is finished.
 boolean isRunning()
          Returns whether the process is running.
 void run()
           
 void startProcess()
          Starts the calculation of the visual hull.
 void stopProcess()
          Interrupts the calculation of the visual hull at the next loop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thread

public java.lang.Thread thread
Constructor Detail

VisualHullCreator

public VisualHullCreator(java.util.Vector refs,
                         Camera desired)
Creates a VisualHullCreator with the supplied reference views and desired view.

Parameters:
refs - a Vector of Cameras representing the reference views of the scene.
desired - a Camera representing the desired view.
Method Detail

isRunning

public boolean isRunning()
Returns whether the process is running.

Returns:
true if the process is running, false otherwise.

startProcess

public void startProcess()
Starts the calculation of the visual hull.


stopProcess

public void stopProcess()
Interrupts the calculation of the visual hull at the next loop.


getProgress

public int getProgress()
Returns how far the calculation of the visual hull has progressed. This is indicated as a nuber between 0 and 100.

Returns:
the progress of the calculation (number between 0 and 100).

getNote

public java.lang.String getNote()
Returns a String that describes what phase the calculations are in.

Returns:
a String describing the state of the calculations.

isFinished

public boolean isFinished()
Returns whether the calculation of the visual hull is finished.

Returns:
true if the calculation is finished, false otherwise.

getVisualHull

public VisualHull getVisualHull()
Returns the VisualHull object contained in the VisualHullCreator.

Returns:
the visual hull.

run

public void run()
Specified by:
run in interface java.lang.Runnable