Maintains a collection of vtkUndoElement that can be undone/redone in a single step.
More...
#include <vtkUndoSet.h>
Inherits vtkObject.
Maintains a collection of vtkUndoElement that can be undone/redone in a single step.
This is a concrete class that stores a collection of vtkUndoElement objects. A vtkUndoSet object represents an atomic undo-redoable operation. It can contain one or more vtkUndoElement objects. When added vtkUndoElement objects to a vtkUndoSet they must be added in the sequence of operation. When undoing the operations are performed in reverse order, while when redoing they are performed in forward order.
vtkUndoElement, vtkUndoSet and vtkUndoStack form the undo/redo framework core.
- See also
- vtkUndoStack vtkUndoElement
Definition at line 42 of file vtkUndoSet.h.
§ Superclass
§ vtkUndoSet()
vtkUndoSet::vtkUndoSet |
( |
| ) |
|
|
protected |
§ ~vtkUndoSet()
vtkUndoSet::~vtkUndoSet |
( |
| ) |
|
|
protected |
§ New()
§ GetClassName()
virtual const char* vtkUndoSet::GetClassName |
( |
| ) |
|
|
virtual |
§ IsTypeOf()
static int vtkUndoSet::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
§ IsA()
virtual int vtkUndoSet::IsA |
( |
const char * |
type | ) |
|
|
virtual |
§ SafeDownCast()
static vtkUndoSet* vtkUndoSet::SafeDownCast |
( |
vtkObject * |
o | ) |
|
|
static |
§ PrintSelf()
void vtkUndoSet::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
§ Undo()
virtual int vtkUndoSet::Undo |
( |
| ) |
|
|
virtual |
§ Redo()
virtual int vtkUndoSet::Redo |
( |
| ) |
|
|
virtual |
§ AddElement()
Add an element to this set.
If the newly added element, elem
, and the most recently added element are both Mergeable
, then an attempt is made to merge the new element with the previous one. On successful merging, the new element is discarded, otherwise it is appended to the set.
- Returns
- the index at which the element got added/merged.
§ RemoveElement()
void vtkUndoSet::RemoveElement |
( |
int |
index | ) |
|
Remove an element at a particular index.
§ GetElement()
Get an element at a particular index.
§ RemoveAllElements()
void vtkUndoSet::RemoveAllElements |
( |
| ) |
|
§ GetNumberOfElements()
int vtkUndoSet::GetNumberOfElements |
( |
| ) |
|
Get number of elements in the set.
§ Collection
vtkCollection* vtkUndoSet::Collection |
|
protected |
§ TmpWorkingCollection
vtkCollection* vtkUndoSet::TmpWorkingCollection |
|
protected |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/ParaView-v5.2.0/ParaViewCore/VTKExtensions/Core/vtkUndoSet.h