21 #ifndef __vtkSegmentationHistory_h 22 #define __vtkSegmentationHistory_h 25 #include <vtkObject.h> 26 #include <vtkSmartPointer.h> 33 #include "vtkSegmentationCoreConfigure.h" 35 class vtkCallbackCommand;
46 void PrintSelf(ostream& os, vtkIndent indent)
override;
62 bool RestorePreviousState();
66 bool IsRestorePreviousStateAvailable();
70 bool RestoreNextState();
74 bool IsRestoreNextStateAvailable();
77 void RemoveAllStates();
81 void SetMaximumNumberOfStates(
unsigned int maximumNumberOfStates);
84 vtkGetMacro(MaximumNumberOfStates,
unsigned int);
87 int GetNumberOfStates();
92 static void OnSegmentationModified(vtkObject* caller,
unsigned long eid,
void* clientData,
void* callData);
95 void RemoveAllNextStates();
98 void RemoveAllObsoleteStates();
101 bool RestoreState(
unsigned int stateIndex);
107 typedef std::map<std::string, vtkSmartPointer<vtkSegment> >
SegmentsMap;
132 #endif // __vtkSegmentation_h This class encapsulates a segment that is part of a segmentation.
std::map< std::string, vtkSmartPointer< vtkSegment > > SegmentsMap
unsigned int LastRestoredState
unsigned int MaximumNumberOfStates
vtkCallbackCommand * SegmentationModifiedCallbackCommand
std::deque< SegmentationState > SegmentationStates
vtkSegmentation * Segmentation
bool RestoreStateInProgress
This class encapsulates a segmentation that can contain multiple segments and multiple representation...
std::vector< std::string > SegmentIds