forked from jlamarche/Tile-Cutter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
TileCutterCore.h
52 lines (39 loc) · 1.49 KB
/
TileCutterCore.h
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
//
// TileCutterCore.h
// Tile Cutter
//
// Created by Stepan Generalov on 28.04.11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "TileOperation.h"
@interface TileCutterCore : NSObject <TileOperationDelegate>
{}
#pragma mark Public Properties
// Properties of Tiling Operation
@property(readwrite) BOOL POTTiles;
@property(readwrite) BOOL rigidTiles;
@property(readwrite) BOOL keepAllTiles;
@property(readwrite) NSUInteger tileWidth;
@property(readwrite) NSUInteger tileHeight;
@property(readwrite) float_t contentScaleFactor;
@property(readwrite) TileCutterOutputPrefs outputFormat;
@property(readwrite, copy) NSString *inputFilename;
@property(readwrite, copy) NSString *outputBaseFilename;
@property(readwrite, copy) NSString *outputSuffix;
// Properties of Global Tiling Operation Status
@property(readwrite) int tileRowCount;
@property(readwrite) int tileColCount;
@property(readwrite) int progressCol;
@property(readwrite) int progressRow;
// TileOperationDelegate messages will be forwarded after processing to this delegate
@property(readwrite, assign) NSObject<TileOperationDelegate> *operationsDelegate;
#pragma mark Public Methods
- (void) startSavingTiles;
#pragma mark Private Properties
// Queue of Operations - used internally
@property(nonatomic, retain) NSOperationQueue *queue;
// Info, prepared for output.plist - used internally
@property(readwrite, retain) NSArray *allTilesInfo;
@property(readwrite, retain) NSDictionary *imageInfo;
@end