Lynkeos
Protected Attributes | List of all members
MyImageList Class Reference

Base model of a list of images to process. More...

#import <MyImageList.h>

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

Instance Methods

Actions
(BOOL) - addItem:
 Add a new item to the list. More...
 
(BOOL) - deleteItem:
 Deletes the given item from the list. More...
 
(BOOL) - changeItemSelection:value:
 Change the selection state of the given item. More...
 
(void) - setParametersParent:
 Set the parent object for parameters chain. More...
 
- Instance Methods inherited from LynkeosProcessableImage
(u_long) - originalImageSequence
 Get the seqence number of the original image. More...
 
(id< LynkeosImageBuffer >) - getResult
 Get the current image or processed spectrum.
 
(void) - setResult:
 Save the result as the processed image or spectrum.
 
- Instance Methods inherited from <LynkeosProcessableItem>
(u_short) - numberOfPlanes
 Get the number of color planes. More...
 
(LynkeosIntegerSize- imageSize
 Read the image size. More...
 
(id< LynkeosImageBuffer >) - getImage
 Access to the processed image. More...
 
(id< LynkeosImageBuffer >) - getOriginalImage
 Access to the unprocessed image. More...
 
(u_long) - getSequenceNumber
 Gives the item's image "sequence number". More...
 
(NSImage *) - getNSImage
 Returns an NSImage for displaying. More...
 
(void) - getImageSample:inRect:
 Read a calibrated sample from an image. More...
 
(void) - getFourierTransform:forRect:prepareInverse:
 Access to the Fourier transform of the image. More...
 
(void) - setFourierTransform:
 Set the fourier transform after processing. More...
 
(void) - setImage:
 Save the resulting image. More...
 
(void) - setOriginalImage:
 Save the resulting image as the original image. More...
 
(void) - revertToOriginal
 Delete any processing result and go back to using the "original" image. More...
 
(BOOL) - isOriginal
 Wether the image is the original or has been processed. More...
 
(BOOL) - isProcessed
 Whether the image (even if original) comes from some process. More...
 
(void) - setBlackLevel:whiteLevel:gamma:
 Sets the levels for image visualization. More...
 
(BOOL) - getBlackLevel:whiteLevel:gamma:
 Retrieves the global levels for image visualization. More...
 
(BOOL) - getMinLevel:maxLevel:
 Retrieves the minimum and maximum levels of an image. More...
 
(void) - setBlackLevel:whiteLevel:gamma:forPlane:
 Sets the levels for one color plane. More...
 
(BOOL) - getBlackLevel:whiteLevel:gamma:forPlane:
 Retrieves the levels for image visualization. More...
 
(BOOL) - getMinLevel:maxLevel:forPlane:
 Retrieves the minimum and maximum levels of an image. More...
 
- Instance Methods inherited from <LynkeosProcessable>
(id< LynkeosProcessingParameter >) - getProcessingParameterWithRef:forProcessing:
 Returns the required processing parameter. More...
 
(id< LynkeosProcessingParameter >) - getProcessingParameterWithRef:forProcessing:goUp:
 Returns the required processing parameter. More...
 
(void) - setProcessingParameter:withRef:forProcessing:
 Updates the required processing parameter. More...
 
- Instance Methods inherited from <LynkeosImageList>
(NSMutableArray *) - imageArray
 Get direct access to the array of images. More...
 
(id< LynkeosProcessableItem >) - firstItem
 Get the first item selected for processing in the list. More...
 
(id< LynkeosProcessableItem >) - lastItem
 Get the last item selected for processing in the list. More...
 
(NSEnumerator *) - imageEnumerator
 Get an enumerator over all the images in the list. More...
 
(NSEnumerator *) - imageEnumeratorStartAt:directSense:skipUnselected:
 Get an enumerator in the given direction over the list's images starting at the given item. More...
 

Protected Attributes

NSMutableArray_list
 The list of images.
 
- Protected Attributes inherited from LynkeosProcessableImage
LynkeosStandardImageBuffer_originalImage
 
LynkeosStandardImageBuffer_intermediateImage
 Intermediate result, input of the current processing.
 
LynkeosStandardImageBuffer_processedImage
 Stored processed image.
 
LynkeosFourierBuffer_processedSpectrum
 Processed spectrum if any.
 
u_long _imageSequenceNumber
 Sequence number of the image.
 
u_long _originalSequenceNumber
 
LynkeosProcessingParameterMgr_parameters
 Aggregate class for parameters.
 
LynkeosIntegerSize _size
 Cached image size.
 
u_short _nPlanes
 Cached number of planes.
 
BOOL _planeLevelsAreSet
 Whether the user has chaged them.
 
double * _black
 Black level for displaying the processed image.
 
double * _white
 White level for displaying the processed image.
 
double * _gamma
 Gamma correction for displaying.
 

Initializers and constructors

(id) - initWithArray:
 Initialize an instance with a given initial image list. More...
 
(id) + imageListWithArray:
 Convenience creator with a given initial image list. More...
 

Detailed Description

Base model of a list of images to process.

The images in the list share a common goal (dark frame, flat field or object images).

Method Documentation

- (BOOL) addItem: (MyImageListItem*)  item

Add a new item to the list.

Parameters
itemA new image or movie
Returns
Wether the document content has changed

References _list, and MyImageListItem::setParametersParent:.

Referenced by MyDocument::addEntry:.

- (BOOL) changeItemSelection: (MyImageListItem*)  item
value: (BOOL)  v 

Change the selection state of the given item.

Parameters
itemThe item for which to change the selection state
vThe new selection state
Returns
Wether the document content has changed

References MyImageListItem::setSelected:.

- (BOOL) deleteItem: (MyImageListItem*)  item

Deletes the given item from the list.

Parameters
itemThe item to delete
Returns
Wether the document content has changed

References _list, MyImageListItem::getParent, and <LynkeosProcessableItem>::setOriginalImage:.

Referenced by MyDocument::deleteEntry:.

+ (id) imageListWithArray: (NSArray*)  list

Convenience creator with a given initial image list.

Parameters
listAn existing image list
Returns
The allocated and initialized instance
- (id) initWithArray: (NSArray*)  list

Initialize an instance with a given initial image list.

Parameters
listAn existing image list
Returns
The initialized instance

References _list.

- (void) setParametersParent: (LynkeosProcessingParameterMgr*)  parent

Set the parent object for parameters chain.

Parameters
parentThe parent of this item in the parameter chain

References LynkeosProcessableImage::_parameters, and LynkeosProcessingParameterMgr::_parent.


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