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

Protocol implemented by the window image view for processing views. More...

#import <LynkeosProcessingView.h>

Inheritance diagram for <LynkeosImageView>:
Inheritance graph
[legend]

Instance Methods

(void) - displayItem:
 Set the item to display in the view. More...
 
(void) - updateImage
 Update the item's image. More...
 
(LynkeosIntegerRect- getSelection
 Retrieve the current selection. More...
 
(LynkeosIntegerRect- getSelectionAtIndex:
 Retrieve a selection at a given index. More...
 
(unsigned int) - getModifiers
 Get the modifiers associated with the selection. More...
 
(void) - setSelection:resizable:movable:
 Set the selection rectangle. More...
 
(void) - setSelection:atIndex:resizable:movable:
 Set a given selection rectangle. More...
 
(double) - getZoom
 Get the image zoom factor. More...
 
(void) - setZoom:
 Set the image view zoom factor. More...
 
(void) - setSelectionDelegate:
 Set the delegate. More...
 

Detailed Description

Protocol implemented by the window image view for processing views.

The image view provides the folowing notifications : LynkeosImageViewSelectionRectDidChangeNotification, LynkeosImageViewZoomDidChangeNotification, LynkeosImageViewRedrawNotification.

Method Documentation

- (void) displayItem: (id< LynkeosProcessableItem >)  item

Set the item to display in the view.

The align result is taken into account if present

Parameters
itemThe item to display
- (unsigned int) getModifiers

Get the modifiers associated with the selection.

Returns
The modifiers of the current selection
- (LynkeosIntegerRect) getSelection

Retrieve the current selection.

Returns
The current selection rectangle
- (LynkeosIntegerRect) getSelectionAtIndex: (u_short)  index

Retrieve a selection at a given index.

Parameters
indexThe index of the selection to retrieve
Returns
The current selection rectangle
- (double) getZoom

Get the image zoom factor.

Returns
The image zoom factor
- (void) setSelection: (LynkeosIntegerRect selection
atIndex: (u_short)  index
resizable: (BOOL)  resize
movable: (BOOL)  move 

Set a given selection rectangle.

The first unused index shall be used to create a new selection.

Parameters
selectionThe new selection rectangle.
indexThe index of the selection
resizeIs this new selection resizable.
moveWhether the selection can be moved
- (void) setSelection: (LynkeosIntegerRect selection
resizable: (BOOL)  resize
movable: (BOOL)  move 

Set the selection rectangle.

For compatibility reasons, all indexed selections are removed

Parameters
selectionThe new current selection rectangle.
resizeIs this new selection resizable.
moveWhether the selection can be moved
- (void) setSelectionDelegate: (id< LynkeosImageViewDelegate >)  delegate

Set the delegate.

Parameters
delegateThe delegate to set (may be nil)
- (void) setZoom: (double)  zoom

Set the image view zoom factor.

Parameters
zoomThe new zoom factor
- (void) updateImage

Update the item's image.

This method is used for redisplaying the image after a change of settings.
This method redisplays inconditionally the image, use it on purpose.

Referenced by MyImageView::blackWhiteChange:, and MyImageView::gammaChange:.


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