Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
Public Member Functions | List of all members
Seg3D::LayerRecreationUndoBufferItem Class Reference

Class that describes all the steps that need to be undertaken to undo a layer action. More...

#include <LayerRecreationUndoBufferItem.h>

Inheritance diagram for Seg3D::LayerRecreationUndoBufferItem:
Seg3D::UndoBufferItem

Public Member Functions

 LayerRecreationUndoBufferItem (const ProvenanceIDList &prov_ids, SandboxID sandbox)
 
void add_id_count_to_restore (LayerManager::id_count_type id_count)
 
virtual bool apply_and_clear_undo ()
 
virtual size_t get_byte_size () const
 
virtual void compute_size ()
 
- Public Member Functions inherited from Seg3D::UndoBufferItem
 UndoBufferItem (const std::string &tag)
 
void set_redo_action (Core::ActionHandle action)
 
bool apply_redo (Core::ActionContextHandle &context)
 
std::string get_tag () const
 

Detailed Description

Class that describes all the steps that need to be undertaken to undo a layer action.

Member Function Documentation

void Seg3D::LayerRecreationUndoBufferItem::add_id_count_to_restore ( LayerManager::id_count_type  id_count)

ADD_ID_COUNT_TO_RESTORE: Cache the count of layer and group ids, so they can be rolled back to the original ones NOTE: If they are set to -1, the function will query the current ones.

bool Seg3D::LayerRecreationUndoBufferItem::apply_and_clear_undo ( )
virtual

APPLY_AND_CLEAR_UNDO: Apply the undo information

Implements Seg3D::UndoBufferItem.

void Seg3D::LayerRecreationUndoBufferItem::compute_size ( )
virtual

COMPUTE_SIZE: Compute the size of the item

Implements Seg3D::UndoBufferItem.

size_t Seg3D::LayerRecreationUndoBufferItem::get_byte_size ( ) const
virtual

GET_BYTE_SIZE: The size of the item in memory ( approximately )

Implements Seg3D::UndoBufferItem.


The documentation for this class was generated from the following files: