| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.usp.ime.klava.segmentit.util.HierarchyState
public class HierarchyState
Stores the state of a BasinsHierarchy for undo/redo purposes.
| Nested Class Summary | |
|---|---|
static class | 
HierarchyState.Type
Represents the type of a hierarchy state.  | 
| Constructor Summary | |
|---|---|
HierarchyState(HierarchyCriterion hierarchyCriterion)
State representing a hierarchy constructed using the hierarchyCriterion and with the hierarchy root selected
 (only one ROI). | 
|
HierarchyState(int[] labels,
               HierarchyCriterion hierarchyCriterion)
State representing a hierarchy constructed using the hierarchyCriterion and that contains the partition derived
 from labels. | 
|
HierarchyState(int threshold,
               HierarchyCriterion hierarchyCriterion)
State representing a hierarchy constructed using the hierarchyCriterion and with a partition selected by the
 given threshold. | 
|
| Method Summary | |
|---|---|
 HierarchyCriterion | 
getHierarchyCriterion()
Returns the criterion from with the hierarchy was derived.  | 
 int[] | 
getLabels()
Returns a labeling function that determines the selected partition.  | 
 int | 
getThreshold()
Returns the threshold used to select a partition from the hierarchy.  | 
 HierarchyState.Type | 
getType()
Return the type of this state.  | 
 java.lang.String | 
toString()
Returns a string representation of this state.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public HierarchyState(HierarchyCriterion hierarchyCriterion)
hierarchyCriterion and with the hierarchy root selected
 (only one ROI).
hierarchyCriterion - the criterion from with the hierarchy was derived
public HierarchyState(int threshold,
                      HierarchyCriterion hierarchyCriterion)
hierarchyCriterion and with a partition selected by the
 given threshold.
threshold - the threshold used to select a partition from the hierarchyhierarchyCriterion - the criterion from with the hierarchy was derived
public HierarchyState(int[] labels,
                      HierarchyCriterion hierarchyCriterion)
hierarchyCriterion and that contains the partition derived
 from labels.
labels - a labeling function that determines a partitionhierarchyCriterion - the criterion from with the hierarchy was derived| Method Detail | 
|---|
public HierarchyState.Type getType()
public HierarchyCriterion getHierarchyCriterion()
public int getThreshold()
public int[] getLabels()
public java.lang.String toString()
toString in class java.lang.Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||