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.
All Classes Namespaces Functions Variables Typedefs Enumerator Friends
Public Member Functions | List of all members
Core::DataBlockManager Class Reference
Inheritance diagram for Core::DataBlockManager:
Core::RecursiveLockable

Public Member Functions

void register_datablock (DataBlockHandle data_block, DataBlock::generation_type generation=-1)
 
void unregister_datablock (DataBlock::generation_type generation)
 Needed by DataBlock to remove its entry from the database.
 
bool find_datablock (DataBlock::generation_type generation, DataBlockHandle &datablock)
 Find a datablock with a specific generation number.
 
void clear ()
 Remove all the data blocks.
 
DataBlock::generation_type get_generation_count ()
 
void set_generation_count (DataBlock::generation_type generation)
 
DataBlock::generation_type increase_generation (DataBlock::generation_type old_generation)
 
- Public Member Functions inherited from Core::RecursiveLockable
mutex_type & get_mutex () const
 

Additional Inherited Members

- Public Types inherited from Core::RecursiveLockable
typedef boost::recursive_mutex mutex_type
 
typedef boost::unique_lock< mutex_type > lock_type
 

Member Function Documentation

DataBlock::generation_type Core::DataBlockManager::get_generation_count ( )

Get the most recent generation number NOTE: Needed by the project manager when storing the project updates to disk. As within a aproject for provenance and session reasons we cannot use an older generation. The last used number needs to be stored.

DataBlock::generation_type Core::DataBlockManager::increase_generation ( DataBlock::generation_type  old_generation)

Generate a new generation number for a datablock. This function is called through the DataBlock class whenever the data in a datablock is changed.

void Core::DataBlockManager::register_datablock ( DataBlockHandle  data_block,
DataBlock::generation_type  generation = -1 
)

This function needs to be called by the various datablock factories. So we can look up in this DataBlock manager whether a datablock has already been loaded (needed for the mask data)

void Core::DataBlockManager::set_generation_count ( DataBlock::generation_type  generation)

Set the current count in the generation counter NOTE: This is needed when loading an existing project, as each project has its own generation count.


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