Lynkeos
Instance Methods | List of all members
<LynkeosWindowController> Protocol Reference

This protocol is provided by the document window controller. More...

#import <LynkeosProcessingView.h>

Inheritance diagram for <LynkeosWindowController>:
Inheritance graph
[legend]
Collaboration diagram for <LynkeosWindowController>:
Collaboration graph
[legend]

Instance Methods

(NSDictionary *) - windowSizes
 Get the sizes of the window elements. More...
 
(NSOutlineView *) - getTextView
 Access to the "list" view. More...
 
(id< LynkeosImageView >) - getImageView
 Access to the image view. More...
 
(id< LynkeosImageView >) - getRealImageView
 Access to the real image view. More...
 
(id< LynkeosProcessableItem >) - highlightedItem
 Access to the currently hilighted item. More...
 
(void) - highlightItem:
 Change the hilighted item. More...
 
(void) - setListSelectionAuthorization:
 Authorize (or not) the selection of the working list. More...
 
(void) - setDataModeSelectionAuthorization:
 Authorize (or not) the selection of the list/result mode. More...
 
(void) - setItemSelectionAuthorization:
 Authorize (or not) the selection of items in the list. More...
 
(void) - setItemEditionAuthorization:
 Authorize (or not) the modification of items in the list. More...
 
(void) - setProcessing:andIdent:authorization:
 Enable (or not) all the GUI items that launch one process. More...
 
(void) - getItemToProcess:andParameter:forView:
 Get the item selected for image processing. More...
 
(void) - saveImage:withBlack:white:gamma:
 Saves an image, using the registered writers. More...
 
(LynkeosStandardImageBuffer *) - loadImage
 Load an image, using the registered image readers. More...
 

Detailed Description

This protocol is provided by the document window controller.

The window controller provides the following notifications LynkeosDocumentDidOpenNotification, LynkeosDocumentWillCloseNotification, LynkeosOutlineViewWillDisplayCellNotification,

Method Documentation

- (id <LynkeosImageView>) getImageView

Access to the image view.

This method may return a proxy for the image view. Processing should use this method in most cases ; if for a specific and good reason it needs to access the real image view, it shall use getRealImageView.

Returns
The main window image view
- (void) getItemToProcess: (LynkeosProcessableImage **)  item
andParameter: (LynkeosImageProcessingParameter **)  param
forView: (id< LynkeosProcessingView >)  sender 

Get the item selected for image processing.

Parameters
itemThe item currently selected for processing
paramThe parameter currently selected for processing (nil if none)
senderThe processing view requiring the item and parameter
- (id <LynkeosImageView>) getRealImageView

Access to the real image view.

Returns
The main window image view, not the proxy, if any
- (NSOutlineView*) getTextView

Access to the "list" view.

Mainly to register for notifications.

Returns
The list view
- (id <LynkeosProcessableItem>) highlightedItem

Access to the currently hilighted item.

Returns
The hilighted item
- (void) highlightItem: (id< LynkeosProcessableItem >)  item

Change the hilighted item.

Parameters
itemThe new item to hilight

Load an image, using the registered image readers.

Returns
The loaded image
- (void) saveImage: (LynkeosStandardImageBuffer *)  image
withBlack: (double *)  black
white: (double *)  white
gamma: (double *)  gamma 

Saves an image, using the registered writers.

The levels and gamma array contain a value for each plane plus a value for the global levels and gamma

Parameters
imageThe image to save
blackBlack level for each plane
whiteWhite level for each plane
gammaGamma correction exponent for each plane
- (void) setDataModeSelectionAuthorization: (BOOL)  auth

Authorize (or not) the selection of the list/result mode.

Parameters
authWhether to authorize or not
- (void) setItemEditionAuthorization: (BOOL)  auth

Authorize (or not) the modification of items in the list.

Parameters
authWhether to authorize or not
- (void) setItemSelectionAuthorization: (BOOL)  auth

Authorize (or not) the selection of items in the list.

Parameters
authWhether to authorize or not
- (void) setListSelectionAuthorization: (BOOL)  auth

Authorize (or not) the selection of the working list.

Parameters
authWhether to authorize or not
- (void) setProcessing: (Class)  c
andIdent: (NSString *)  ident
authorization: (BOOL)  auth 

Enable (or not) all the GUI items that launch one process.

Parameters
cThe class of the processing
identIdentifier for the processing instance
authWhether to authorize or not
- (NSDictionary*) windowSizes

Get the sizes of the window elements.

Returns
A dictionary containing the sizes ; usable only by the controller itself

The documentation for this protocol was generated from the following file: