#include <Libs/vtkSegmentationCore/vtkSegmentationHistory.h>
|
typedef std::map< std::string, vtkSmartPointer< vtkSegment > > | SegmentsMap |
| Container type for segments. Maps segment IDs to segment objects. More...
|
|
Definition at line 40 of file vtkSegmentationHistory.h.
◆ SegmentsMap
◆ Superclass
◆ vtkSegmentationHistory()
vtkSegmentationHistory::vtkSegmentationHistory |
( |
| ) |
|
|
protected |
◆ ~vtkSegmentationHistory()
vtkSegmentationHistory::~vtkSegmentationHistory |
( |
| ) |
|
|
protected |
◆ CopySegment()
Deep copies source segment to destination segment. If the same representation is found in baseline with up-to-date timestamp then the representation is reused from baseline.
◆ GetClassName()
virtual const char* vtkSegmentationHistory::GetClassName |
( |
| ) |
|
|
virtual |
◆ GetMaximumNumberOfStates()
virtual unsigned int vtkSegmentationHistory::GetMaximumNumberOfStates |
( |
| ) |
|
|
virtual |
Get the limit of how many states may be stored.
◆ GetSegmentation()
Get segmentation that the states will be stored of.
◆ IsA()
virtual int vtkSegmentationHistory::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ IsRestoreNextStateAvailable()
bool vtkSegmentationHistory::IsRestoreNextStateAvailable |
( |
| ) |
|
Check if it is possible to go restore the next state (redo).
- Returns
- True if the operation is allowed
◆ IsRestorePreviousStateAvailable()
bool vtkSegmentationHistory::IsRestorePreviousStateAvailable |
( |
| ) |
|
Check if it is possible to go back to a previous state (undo).
- Returns
- True if the operation is allowed
◆ IsTypeOf()
static int vtkSegmentationHistory::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ New()
◆ OnSegmentationModified()
static void vtkSegmentationHistory::OnSegmentationModified |
( |
vtkObject * |
caller, |
|
|
unsigned long |
eid, |
|
|
void * |
clientData, |
|
|
void * |
callData |
|
) |
| |
|
staticprotected |
Callback function called when the segmentation has been modified. It clears all states that are more recent than the last restored state.
◆ operator=()
◆ PrintSelf()
void vtkSegmentationHistory::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
◆ RemoveAllNextStates()
void vtkSegmentationHistory::RemoveAllNextStates |
( |
| ) |
|
|
protected |
Delete all states that are more recent than the last restored state.
◆ RemoveAllObsoleteStates()
void vtkSegmentationHistory::RemoveAllObsoleteStates |
( |
| ) |
|
|
protected |
Delete all old states so that we keep only up to MaximumNumberOfStates states.
◆ RemoveAllStates()
void vtkSegmentationHistory::RemoveAllStates |
( |
| ) |
|
Delete all states from memory.
◆ RestoreNextState()
bool vtkSegmentationHistory::RestoreNextState |
( |
| ) |
|
Restores next state of the segmentation.
- Returns
- Success flag
◆ RestorePreviousState()
bool vtkSegmentationHistory::RestorePreviousState |
( |
| ) |
|
Restores previous state of the segmentation.
- Returns
- Success flag
◆ RestoreState()
bool vtkSegmentationHistory::RestoreState |
( |
unsigned int |
stateIndex | ) |
|
|
protected |
Restores a state defined by stateIndex.
◆ SafeDownCast()
◆ SaveState()
bool vtkSegmentationHistory::SaveState |
( |
| ) |
|
Saves all master representations of the segmentation in its current state. States more recent than the last restored state are removed.
- Returns
- Success flag
◆ SetMaximumNumberOfStates()
void vtkSegmentationHistory::SetMaximumNumberOfStates |
( |
unsigned int |
maximumNumberOfStates | ) |
|
Limits how many states may be stored. If the number of stored states exceed the limit then the oldest state is removed.
◆ SetSegmentation()
void vtkSegmentationHistory::SetSegmentation |
( |
vtkSegmentation * |
segmentation | ) |
|
Selects a segmentation that the states will be stored of. Current state of the segmentation is not stored.
- Parameters
-
segmentation | Segmentation to store. Deletes all stored states of the previously set segmentation. |
◆ LastRestoredState
unsigned int vtkSegmentationHistory::LastRestoredState |
|
protected |
◆ MaximumNumberOfStates
unsigned int vtkSegmentationHistory::MaximumNumberOfStates |
|
protected |
◆ RestoreStateInProgress
bool vtkSegmentationHistory::RestoreStateInProgress |
|
protected |
◆ Segmentation
◆ SegmentationModifiedCallbackCommand
vtkCallbackCommand* vtkSegmentationHistory::SegmentationModifiedCallbackCommand |
|
protected |
◆ SegmentationStates
The documentation for this class was generated from the following file: