File: MyImageAlignerPrefs.h

package info (click to toggle)
lynkeos.app 3.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,740 kB
  • sloc: objc: 36,412; ansic: 684; cpp: 148; sh: 68; makefile: 21
file content (113 lines) | stat: -rw-r--r-- 4,045 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// 
//  Lynkeos
//  $Id: MyImageAlignerPrefs.h 527 2013-08-08 22:13:56Z j-etienne $
//
//  Created by Jean-Etienne LAMIAUD on Wed May 16 2007.
//  Copyright (c) 2007-2013. Jean-Etienne LAMIAUD
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//

#ifndef __MYIMAGEALIGNERPREFS_H
#define __MYIMAGEALIGNERPREFS_H

#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>

#include "LynkeosProcessing.h"
#include "LynkeosPreferences.h"

//! Frequency above which the spectrum is cleared before alignment
extern NSString * const K_PREF_ALIGN_FREQUENCY_CUTOFF;
//! Maximum standard deviation for succesful alignment
extern NSString * const K_PREF_ALIGN_PRECISION_THRESHOLD;
//! Wether to redisplay the images once aligned
extern NSString * const K_PREF_ALIGN_IMAGE_UPDATING;
//! Wether to check the alignment result
extern NSString * const K_PREF_ALIGN_CHECK;
//! What kind of multiprocessor optimization to use for alignment
extern NSString * const K_PREF_ALIGN_MULTIPROC;

/*!
 * @abstract Preferences for the alignment process
 */
@interface MyImageAlignerPrefs : NSObject <LynkeosPreferences>
{
   //! The view inside the preferences window
   IBOutlet NSView*           _prefsView;
   //! Slider for the cutoff frequency
   IBOutlet NSSlider*         _alignFrequencyCutoffSlider;
   //! Text field for the cutoff frequency
   IBOutlet NSTextField*      _alignFrequencyCutoffText;
   //! Slider for the standard deviation threshold
   IBOutlet NSSlider*         _alignThresholdSlider;
   //! Text field for the standard deviation threshold
   IBOutlet NSTextField*      _alignThresholdText;
   //! Checkbox for the image updating
   IBOutlet NSButton*         _alignImageUpdatingButton;
   //! Checkbox for the image alignment checking
   IBOutlet NSButton*         _alignCheckButton;
   //! Popup for the multiprocessor opimization strategy
   IBOutlet NSPopUpButton*    _alignMultiProcPopup;

   //! Frequency above which the spectrum is cleared before alignment
   double                     _alignFrequencyCutoff;
   //! Maximum standard deviation for succesful alignment
   double                     _alignThreshold;
   //! Wether to redisplay the images once aligned
   BOOL                       _alignImageUpdating;
   //! Wether to check the alignment result
   BOOL                       _alignCheck;
   //! What kind of multiprocessor optimization to use for alignment
   ParallelOptimization_t     _alignMultiProc;
}

/*!
 * @method changeAlignFrequencyCutoff:
 * @abstract Set the frequency cutoff for alignment.
 * @param sender The slider or the text field
 */
- (IBAction)changeAlignFrequencyCutoff:(id)sender;

/*!
 * @method changeAlignThreshold:
 * @abstract Change the alignment success threshold
 * @param sender The slider or the text field
 */
- (IBAction)changeAlignThreshold:(id)sender;

/*!
 * @method changeAlignImageUpdating:
 * @abstract Set wether to redisplay the image when aligned.
 * @param sender The checkbox
 */
- (IBAction)changeAlignImageUpdating:(id)sender;

/*!
 * @method changeAlignImageUpdating:
 * @abstract Set wether to redisplay the image when aligned.
 * @param sender The checkbox
 */
- (IBAction)changeAlignCheck:(id)sender;

/*!
 * @method changeAlignMultiProc:
 * @abstract Set the multiprocessor optimization to use for alignment.
 * @param sender The popup
 */
- (IBAction)changeAlignMultiProc:(id)sender;
@end

#endif