MyImageListItem Class Reference
[Model classes]

Common class for all image list items. More...

#import <MyImageListItem.h>

Inheritance diagram for MyImageListItem:

Inheritance graph
[legend]
Collaboration diagram for MyImageListItem:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithURL:
 Initialization.
Read
Read accessors to the class attributes

(NSURL *) - getURL
 Read the URL of the associated file.
(int) - getSelectionState
 Read the item current selection state.
(NSNumber *) - selectionState
 Get the item current selection state as a NSNumber.
(NSString *) - name
 Read the name of the associated file.
(NSNumber *) - index
 Read the movie image index (nil if not in a movie).
(MyImageListItem *) - getParent
 Get the parent item if there is one.
(u_long) - numberOfChildren
 Return the number of children, 0 for leaf items.
(MyImageListItem *) - getChildAtIndex:
 Get the asked item.
(unsigned) - indexOfItem:
 Get the index of the given item in the child list (different from the item index which is the index of its frame in the movie).
(id< LynkeosFileReader >) - getReader
 Get the file reader for that item.
Write
Write accessors to the class attributes

(void) - addChild:
 Add the given child in the children list.
(void) - deleteChild:
 Delete the given child from the children list.
(void) - setSelected:
 Set the selection state (no tristate).
(void) - setParametersParent:
 Set the parent object for parameters chain.

Static Public Member Functions

(id) + imageListItemWithURL:
 Creator.
(NSArray *) + imageListItemFileTypes
 File types and subclasses registering.

Protected Attributes

id< LynkeosImageFileReader,
LynkeosMovieFileReader
_reader
 < The associated file reader
NSURL_itemURL
 Image or movie URL.
NSString * _itemName
 To be displayed to user.
NSMutableArray_childList
 Array of childs, if any.
MyImageListItem_parent
 Parent item, if any.
u_long _index
int _selection_state
 Current selection state, can be tri state.
id< LynkeosImageBuffer_flat
 Cached flat field.
id< LynkeosImageBuffer_dark
 Cached dark frame.


Detailed Description

Common class for all image list items.

It provides a unique interface to the outline view, and the common data and methods for the image list items.


Member Function Documentation

- (id) initWithURL: (NSURL*)  url  

Initialization.

Parameters:
url Image or movie associated with this item.

- (NSURL *) getURL  

Read the URL of the associated file.

Returns:
The URL

- (int) getSelectionState  

Read the item current selection state.

Returns:
Tristate selection state.

- (NSNumber *) selectionState  

Get the item current selection state as a NSNumber.

Returns:
Tristate selection state in a NSNumber

- (NSString *) name  

Read the name of the associated file.

Returns:
The name

- (NSNumber *) index  

Read the movie image index (nil if not in a movie).

Returns:
The index or nil

- (MyImageListItem *) getParent  

Get the parent item if there is one.

Returns:
The parent item or nil

- (u_long) numberOfChildren  

Return the number of children, 0 for leaf items.

Returns:
Number of children.

- (MyImageListItem *) getChildAtIndex: (u_long)  index  

Get the asked item.

Parameters:
index The index of item to get.
Returns:
The child item.

- (unsigned) indexOfItem: (MyImageListItem*)  item  

Get the index of the given item in the child list (different from the item index which is the index of its frame in the movie).

Parameters:
item The item which index we need
Returns:
The index

- (id< LynkeosFileReader >) getReader  

Get the file reader for that item.

Returns:
The file reader associated with this item.

- (void) addChild: (MyImageListItem*)  item  

Add the given child in the children list.

Parameters:
item The item to add

- (void) deleteChild: (MyImageListItem*)  item  

Delete the given child from the children list.

Parameters:
item The item to delete

- (void) setSelected: (BOOL)  value  

Set the selection state (no tristate).

Parameters:
value The new selection state

- (void) setParametersParent: (MyProcessingParameter*)  parent  

Set the parent object for parameters chain.

Parameters:
parent The parent of this item in the parameter chain

+ (id) imageListItemWithURL: (NSURL*)  url  

Creator.

Parameters:
url The URL from which the item shall be created.
Returns:
The allocated and intialized item.

+ (NSArray *) imageListItemFileTypes  

File types and subclasses registering.

Returns:
The file types array.


Member Data Documentation

- (u_long) _index [protected]

Our index, if any


The documentation for this class was generated from the following files:
Generated on Sat Mar 22 17:44:51 2008 for Lynkeos by  doxygen 1.5.4