Lynkeos
Instance Methods | Protected Attributes | List of all members
ProcessStackManager Class Reference

This class ensures the processing of the whole stack. More...

#import <ProcessStackManager.h>

Inheritance diagram for ProcessStackManager:
Inheritance graph
[legend]
Collaboration diagram for ProcessStackManager:
Collaboration graph
[legend]

Instance Methods

(LynkeosImageProcessingParameter *) - getParameterForItem:andParam:
 Get the starting parameter in an item's stack. More...
 
(LynkeosImageProcessingParameter *) - nextParameterToProcess:
 Get the next parameter to process. More...
 

Protected Attributes

LynkeosProcessableImage_item
 Item being processed.
 
NSUInteger _intermediateRank
 Intermediate result rank.
 
NSUInteger _currentRank
 Rank of last applied process.
 
NSMutableArray_stack
 Process stack for this item.
 

Detailed Description

This class ensures the processing of the whole stack.

Method Documentation

- (LynkeosImageProcessingParameter *) getParameterForItem: (LynkeosProcessableImage*)  item
andParam: (LynkeosImageProcessingParameter*)  inParam 

Get the starting parameter in an item's stack.

Given a parameter, get the parameter at which the process shall restart to yield the correct item's final result for the whole stack.

Parameters
itemThe item to process
inParamThe parameters for which the item needs to be re-processed. If nil, the first applicable parameter is returned.
Returns
The parameter at which the processing shall start

References _currentRank, _intermediateRank, _item, _stack, LynkeosProcessableImage::getResult, LynkeosObjectCache::imageProcessingCache, K_PROCESS_STACK_REF, <LynkeosProcessableItem>::revertToOriginal, LynkeosImageProcessingParameter::setExcluded:, <LynkeosProcessable>::setProcessingParameter:withRef:forProcessing:, and LynkeosProcessableImage::setResult:.

Referenced by MyDocument::processEnded:.

- (LynkeosImageProcessingParameter *) nextParameterToProcess: (LynkeosProcessableImage*)  item

Get the next parameter to process.

This method is called when one process (with given parameters) has been processed.

Parameters
itemThe item being processed
Returns
The next parameter to process

References _currentRank, _intermediateRank, _item, _stack, LynkeosProcessableImage::getResult, LynkeosObjectCache::imageProcessingCache, and LynkeosObjectCache::setObject:forKey:.

Referenced by MyDocument::processEnded:.


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