java.lang.Object
org.modama.ModelStates
org.modama.Model
org.modama.framework.AbstractFrameworkModel
org.modama.framework.operations.AbstractOperation
org.modama.framework.operations.OpSlice
- All Implemented Interfaces:
- java.util.EventListener, java.beans.PropertyChangeListener
- public class OpSlice
- extends AbstractOperation
SLICE
makes a slice (a cut) with a given thickness at a given position through the image
accepts exactly one ImageEntity as input, maybe it also should accept a list, and make
produce an NumberLists as output, but at the moment multiple outputs are not allowed
-> later
|
Nested Class Summary |
class |
OpSlice.Slicer
makes a slice through an image |
| Fields inherited from class org.modama.framework.operations.AbstractOperation |
active, availabeCalculators, calculator, EVENT_CONNECT, EVENT_DISCONNECT, EVENT_EXECUTION_FINISHED, EVENT_EXECUTION_STARTED, input, logger, output, resultingClass |
| Methods inherited from class org.modama.framework.operations.AbstractOperation |
calculate, create, createOutputEntity, delete, execute, getInputCount, getInputs, getOutput, isActive, load, Output, propertyChange, put, remove, removeAll, removeAllInput, save, searchCalculator, setActive, setOutput, toString |
PROP_POS
public static final java.lang.String PROP_POS
- See Also:
- Constant Field Values
PROP_THICKNESS
public static final java.lang.String PROP_THICKNESS
- See Also:
- Constant Field Values
PROP_TYPE
public static final java.lang.String PROP_TYPE
- See Also:
- Constant Field Values
HORIZONTAL
public static final int HORIZONTAL
- See Also:
- Constant Field Values
VERTICAL
public static final int VERTICAL
- See Also:
- Constant Field Values
pos
protected int pos
- position of the slice
thickness
protected int thickness
- thickness of the slice (in pixel)
type
protected int type
- horizontal or vertical
OpSlice
public OpSlice()
fillAvailabeCalculatorsArray
protected void fillAvailabeCalculatorsArray()
- Description copied from class:
AbstractOperation
- this has to be implemented, all the available calculators have to be inserted here
- Specified by:
fillAvailabeCalculatorsArray in class AbstractOperation
getPos
public int getPos()
setPos
public void setPos(int pos)
getThickness
public int getThickness()
setThickness
public void setThickness(int thickness)
getType
public int getType()
setType
public void setType(int type)
accept
public boolean accept(org.modama.framework.entities.AbstractEntity entity)
- Description copied from class:
AbstractOperation
- returns true if the entity will be accepted if put to the operation
- Specified by:
accept in class AbstractOperation
canExecute
public boolean canExecute()
- Specified by:
canExecute in class AbstractOperation