00001 #import <Cocoa/Cocoa.h> 00002 00003 @class TFPointModel; 00004 00012 @interface TFModel : NSObject { 00013 00014 NSString * _name; 00015 BOOL _isModified; 00016 NSMutableArray * _points; 00018 GLuint _textureLayer; 00019 } 00020 00021 @property (retain) NSString * name; 00022 @property (readonly) GLuint textureLayer; 00023 00024 - (void) markAsModified; 00025 - (void) hintCreateTexturePointer; 00026 00027 00031 + (TFModel*) create; 00035 - (id) init; 00036 00040 - (void) addPoint:(TFPointModel*) point; 00044 - (void) removePoint:(TFPointModel*) point; 00045 00046 - (void) removeAllPoints; 00047 00051 - (void) sortPoints; 00055 - (NSMutableArray*) points; 00056 00057 00058 @end