Lynkeos
Instance Methods | List of all members
MyImageView Class Reference

The custom image view. More...

#import <MyImageView.h>

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

Instance Methods

(NSSize) - imageSize
 Retrieve the displayed image size. More...
 
(void) - getSelectionAtIndex:rect:resizable:movable:
 Get all the details of a selection. More...
 
(void) - initCursors
 Initialize all the selection related cursors. More...
 
IBActions

Methods connected to Interface builder actions

(IBAction) - doZoom:
 Set the zoom according to the slider value. More...
 
(IBAction) - moreZoom:
 Zoom in. More...
 
(IBAction) - lessZoom:
 Zoom out. More...
 
(IBAction) - blackWhiteChange:
 Set the black and white levels for the image. More...
 
(IBAction) - gammaChange:
 Set the gamma correction exponent for the image. More...
 
- Instance Methods inherited from <LynkeosImageView>
(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

The custom image view.

Method Documentation

- (IBAction) blackWhiteChange: (id)  sender

Set the black and white levels for the image.

Parameters
senderthe control that was changed

References <LynkeosImageView>::updateImage.

- (IBAction) doZoom: (id)  sender

Set the zoom according to the slider value.

Parameters
senderThe slider.
- (IBAction) gammaChange: (id)  sender

Set the gamma correction exponent for the image.

Parameters
senderthe control that was changed

References <LynkeosImageView>::updateImage.

- (void) getSelectionAtIndex: (u_short)  index
rect: (LynkeosIntegerRect*)  rect
resizable: (BOOL*)  resize
movable: (BOOL*)  move 

Get all the details of a selection.

Parameters
indexThe index of the required selection
rect[out] the selection rectangle
resize[out] wether the selection is resizable
move[out] wether the selection is movable
Returns
None

Provided by category MyImageView(Selection).

References MyImageSelection::_movable, MyImageSelection::_rect, and MyImageSelection::_resizable.

- (NSSize) imageSize

Retrieve the displayed image size.

Returns
The image size
- (void) initCursors

Initialize all the selection related cursors.

Returns
None

Provided by category MyImageView(Selection).

- (IBAction) lessZoom: (id)  sender

Zoom out.

Parameters
senderThe button.
- (IBAction) moreZoom: (id)  sender

Zoom in.

Parameters
senderThe button.

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