File: MyDocumentData.h

package info (click to toggle)
lynkeos.app 1.2-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,264 kB
  • ctags: 440
  • sloc: objc: 7,121; ansic: 709; sh: 50; makefile: 34
file content (82 lines) | stat: -rw-r--r-- 2,624 bytes parent folder | download | duplicates (6)
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
//
//  Lynkeos 
//  $Id: MyDocumentData.h,v 1.8 2005/01/27 23:03:05 j-etienne Exp $
//
//  Created by Jean-Etienne LAMIAUD on Thu Jul 29 2004.
//  Copyright (c) 2003-2004. 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.
//

/*!
 * @header
 * @abstract Document contents wrapper classes
 * @discussion The load and save use these classes as a root object to feed the
 *    archiver or extract from the unarchiver.
 *
 *    The V0 document format is handled by a compatibility class
 */
#ifndef __MYDOCUMENTDATA_H
#define __MYDOCUMENTDATA_H

#include "MyObjectImageList.h"

/*!
 * @class MyDocumentDataV1
 * @abstract Wrapper class for version 1 document content
 * @discussion The document attributes to be saved are copied in an instance of
 *    this class which feed the archiver
 * @ingroup Models
 */
@interface MyDocumentDataV1 : NSObject <NSCoding>
{
@public
   MyObjectImageList*	_imageList;
   MyImageList*		_darkFrameList;
   MyImageList*		_flatFieldList;
   BOOL                 _monochromeFlat;
   int                  _analysisMethod;  // Enum converted
   NSString*            _windowFrame;
}
@end

/*!
 * @class MyImageListData
 * @abstract Compatibility wrapper class for version 0 document format
 * @discussion It contains the attributes of the image list and is send to 
 *    MyObjectImageList for initalization when the unarchiver creates an 
 *    instance of this class.
 * @ingroup Models
 */
@interface MyImageListData : NSObject <NSCoding>
{
   @public
   NSArray*	     _imageList;
   MyImageListItem*  _referenceItem;
   NSPoint	     _searchSquareOrigin;
   double	     _searchSquareSide;
   NSPoint	     _analyzeSquareOrigin;
   double	     _analyzeSquareSide;
   double	     _selectThreshold;
   NSRect	     _cropRectangle;
   BOOL		     _doubleSize;
   NSData*	     _rawStack;
   double	     _uRadius, _uGain;
   double	     _dRadius, _dThreshold;
   double	     _blackLevel, _whiteLevel;
}
@end

#endif